← Germany ToolsFree · No signup · Client-side only

Leitweg-ID
Generator

Generate valid Leitweg-IDs with correct ISO 7064 Mod 97,10 check digits for testing German public procurement and XRechnung e-invoicing integrations — entirely in your browser.

Want to validate a Leitweg-ID? Try the validator →

About XRechnung and Leitweg-ID (Germany)

XRechnung is the mandatory German electronic invoicing standard (XML UBL/CII) regulated by KoSIT for B2G and B2B procurement.

The Leitweg-ID is the routing identifier, in the format [jurisdiction prefix]-[sub-entity ID]-[2-digit checksum], that routes an invoice to the correct recipient authority.

Anatomy & Structure of Leitweg-ID (XRechnung / KoSIT)

PositionFieldLengthMeaning & RuleExample
1 to 4Jurisdiction / Bundesland2-4 charsFederal state code ('04011000' for the federal Bund administration, '09' for Bavaria, etc.)04011000
MiddleSub-entity IDup to 10 charsPublic administration department or municipality receiving the invoice1234512345
EndChecksum Digits2 digitsCheck digits computed per ISO 7064 Modulo 97,1006

ISO 7064 Modulo 97,10 Checksum Algorithm

StepDescription
1. Concatenate the two blocksCombine the jurisdiction prefix with the sub-entity ID, with any hyphens removed.
2. Transliterate lettersConvert any letters to their numeric equivalents (A=10 through Z=35); numeric-only IDs are used as-is.
3. Append the paddingAppend '00' to the end of the resulting numeric string.
4. Reduce modulo 97Compute the remainder of dividing the resulting integer by 97.
5. Complement from 98Subtract the remainder from 98. The 2-digit, zero-padded result is the checksum.

Frequently Asked Questions (FAQ)

How is the Leitweg-ID check digit calculated?

KoSIT's official Leitweg-ID Format-Spezifikation defines it as an ISO 7064 Mod 97,10 checksum: strip any hyphens from the jurisdiction prefix and sub-entity ID, transliterate any letters to numbers (A=10…Z=35), append "00", take the result modulo 97, and subtract that remainder from 98 to get the 2-digit check digit.

What are the ZRE and OZG-RE platforms?

ZRE (Zentrale Rechnungseingangsplattform des Bundes) and OZG-RE (the states' shared e-invoicing receipt platform) are the official government portals that receive and route XRechnung invoices to public-sector recipients using their Leitweg-ID — most German B2G e-invoicing software submits through one of the two.

Send your first invoice today.

No credit card. Just sign up and send your first invoice.

Get it onGoogle PlayComing soonDownload on theApp Store

Works in your browser too · iOS available now, Android coming soon

Fair use policy applies. →