Skip to content
In the news TRM Labs × Finray: audit-ready crypto transaction monitoring for banking
Finray

Leitweg-ID checker: structure and check digits

Type or paste a Leitweg-ID. The page splits it into coarse address, fine address and check digits, names the German state or the federal level in the first two digits, and tells you what is wrong if it does not fit. It checks the form and the check digits only, not whether an authority was given this ID.

Hyphens as in the ID, for example 04011000-1234512345-06. Letters in either case.

Type or paste a Leitweg-ID to start.

This checks the form and the check digits only. It does not know whether an authority was given this ID.

Parts of the ID
Coarse part
2 to 12 digits
Fine part
optional
Check digits
00
State or federal level
first 2 digits
Check digits expected
00

Checks

  1. Not checked yet: Length 5 to 46 characters in all.
  2. Not checked yet: Shape Coarse part, optional fine part, two check digits, joined by hyphens.
  3. Not checked yet: Coarse part 2, 3, 5, 8, 9 or 12 digits.
  4. Not checked yet: State or federal level The first two digits are 01 to 16 or 99.
  5. Not checked yet: Check digits ISO/IEC 7064 mod 97-10: the whole number leaves remainder 1.

Checked in your browser. Nothing you type is sent, stored or put in the address bar.

How it works

A Leitweg-ID has three parts: a coarse address that is required, an optional fine address, and two check digits that are required. The rules below are the ones in the KoSIT format specification, version 2.0.2. The page applies them in this order and stops at the first fault.

CheckRuleWhere it is written
Length 5 to 46 characters in all, hyphens included. Leitweg-ID spec, chapter 2.1
Shape Coarse part of digits, then optionally a hyphen and the fine part, then a hyphen and exactly two digits. The hyphen is the plain hyphen-minus (U+002D). Leitweg-ID spec, chapters 2.1 and 2.5
Coarse part 2 to 12 digits, made of the Land or Bund code (2), the Regierungsbezirk (1), the Landkreis (2) and the Gemeindeverband or Gemeinde (3, 4 or 7). Each part needs the one before it, so the coarse part has 2, 3, 5, 8, 9 or 12 digits. Leitweg-ID spec, chapters 2.1 and 2.2
Land or Bund The first two digits are 01 to 16 for the 16 German states or 99 for the federal level. Leitweg-ID spec, chapter 2.2.1
Fine part Up to 30 letters A to Z (either case) or digits. The specification recommends starting it with a letter, because a misplaced hyphen next to digits is not detected. Leitweg-ID spec, chapter 2.3
Check digits Coarse and fine part joined without hyphens, letters replaced by their place in the alphabet from A = 10 to Z = 35, two zeros added: the remainder after dividing by 97, taken from 98, gives the two digits. Checked the other way, the number with the check digits has remainder 1. Leitweg-ID spec, chapter 2.4

Where the Leitweg-ID goes

In an XRechnung the Leitweg-ID is written in the buyer reference, field BT-10. The contracting authority usually gives it to the supplier in the order. The federal government and some states require it; other states use their own identifiers in BT-10, so ask the authority if you are unsure. It can also be used for Peppol addressing, in field BT-49.

The ID has the ICD code 0204 in the ISO/IEC 6523 list. The federal government and the states assign the IDs to their authorities; the specification only describes the format.

What this page cannot tell you

A result of "well formed" means the form and the check digits fit. It does not mean the ID exists, belongs to the authority you invoice or is the one it asked for. The check digits catch typing errors; with a fine part that starts with a digit they cannot tell where the hyphen belongs.

Examples

The first example is in the specification itself; the others are made up for this page. Each one fills the field.

  • The specification's own example

    The example in chapter 2.4 of the specification

    Leitweg-ID
    04011000-1234512345-06

    Well formed: coarse part 04011000 (Bremen), fine part 1234512345, check digits 06, which are the ones the calculation gives.

  • A wrong check digit

    The specification's example with the last digit changed

    Leitweg-ID
    04011000-1234512345-07

    The shape is right, but the check digits do not fit: the calculation gives 06.

  • No fine part

    Made up for this page; check digits calculated as in chapter 2.4

    Leitweg-ID
    99101234-38

    Well formed without a fine part: coarse part 99101234 (Bund), check digits 38.

  • Letters in the fine part

    Made up for this page; check digits calculated as in chapter 2.4

    Leitweg-ID
    04011000-abc-08

    Well formed: the fine part may use letters in either case; A is read as 10, B as 11 and so on.

  • One check digit instead of two

    Made up for this page

    Leitweg-ID
    04011000-1234512345-6

    Not the shape of a Leitweg-ID: the check digits must be two digits.

Where Finray does this for you

Corebanq Accounting

Corebanq Accounting is accounting software for Swiss SMEs (KMU): Swiss VAT, QR-bill invoicing, bank statement import and payroll, on a journal you can drill back from a statement figure.

Questions and answers

What is a Leitweg-ID?
The routing ID of a German public authority for e-invoices. It has three parts: a numeric coarse address that is required, an optional fine address of up to 30 letters or digits, and two check digits, 5 to 46 characters in all (KoSIT specification 2.0.2).
Where does the Leitweg-ID go in an XRechnung?
In the buyer reference, field BT-10. For delivery over Peppol it can also be used in field BT-49. The contracting authority usually gives you the ID in the order.
How are the check digits of a Leitweg-ID calculated?
Join the coarse and fine part without hyphens, replace letters by A = 10 to Z = 35, add two zeros, divide by 97 and subtract the remainder from 98. The result, with a leading zero if needed, is the two check digits. It is the ISO/IEC 7064 mod 97-10 method that IBANs use.
Does this checker know whether my Leitweg-ID exists?
No. It checks the form and the check digits only. Whether an ID is assigned to an authority is decided by the federal government and the states, so ask the authority if you are unsure.
Is the Leitweg-ID I type sent anywhere?
No. The check runs in your browser. Nothing you type is sent, stored or put in the address bar.

Sources

Last verified

  1. KoSIT: Leitweg-ID, format specification version 2.0.2 (28 July 2021, in German)
  2. FeRD: Datasheet Leitweg-ID (in German)
  3. BMF letter of 15 October 2025, Rn. 6b and 35a (in German)

The rules were read from the text of the specification on 26 November 2026. The specification describes the format, not how IDs are assigned or whether a given ID exists.

In the demo we walk through how documents are prepared, approved and posted, and how a VAT return is reviewed and exported.

Book a demo
Certificate of Registration NQA · UKAS Management Systems
ISO/IEC 27001:2022 Certificate of Registration issued by NQA to Finray Technologies Ltd, certificate number 215646, valid 21 October 2025 to 21 October 2028
Search
Type to search across Finray, products, company, and journal.

    Press Esc to close · ↵ to open the highlighted result.

    Book a briefing Step 1 of 3

    What you need

    Which platforms are in scope.

    For example a licence application, an audit or a ledger build-out.

    Prefer email? Write to partnership@finray.tech

    What happens after you book

    • A team member will respond within one business day with availability windows.
    • Corebanq runs as Cloud SaaS, Private SaaS or an Enterprise Licence.
    • After the briefing, the full Corebanq and XZiel API references are issued with test-environment access.
    • Due-diligence documents, such as a summary of the April 2026 independent penetration test, are available under NDA.