# Leitweg-ID checker: structure and check digits

> Check a German Leitweg-ID free in your browser: coarse part, fine part and the ISO 7064 mod 97-10 check digits, with a clear message for each fault.

Canonical page: https://finray.tech/tools/leitweg-id-checker/
Publisher: Finray Technologies Ltd (finray.tech), unrelated to finray.io
Markets: European Union
Sources last verified: 2026-11-26

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.

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.

| Check | Rule | Where 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.

## 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.

## 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

- Leitweg-ID: `04011000-1234512345-06`
- Result: Well formed: coarse part 04011000 (Bremen), fine part 1234512345, check digits 06, which are the ones the calculation gives.
- Published in: The example in chapter 2.4 of the specification

### A wrong check digit

- Leitweg-ID: `04011000-1234512345-07`
- Result: The shape is right, but the check digits do not fit: the calculation gives 06.
- Published in: The specification's example with the last digit changed

### No fine part

- Leitweg-ID: `99101234-38`
- Result: Well formed without a fine part: coarse part 99101234 (Bund), check digits 38.
- Published in: Made up for this page; check digits calculated as in chapter 2.4

### Letters in the fine part

- Leitweg-ID: `04011000-abc-08`
- Result: Well formed: the fine part may use letters in either case; A is read as 10, B as 11 and so on.
- Published in: Made up for this page; check digits calculated as in chapter 2.4

### One check digit instead of two

- Leitweg-ID: `04011000-1234512345-6`
- Result: Not the shape of a Leitweg-ID: the check digits must be two digits.
- Published in: Made up for this page

## Where Finray does this for you

[Corebanq Accounting](https://finray.tech/platforms/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.

[Corebanq Accounting](https://finray.tech/platforms/corebanq-accounting/) · [Invoicing and bank](https://finray.tech/platforms/corebanq-accounting/invoicing-and-bank/)

## Related

- [E-invoice viewer and checker](https://finray.tech/tools/e-invoice-viewer/): Open an XRechnung or a ZUGFeRD PDF, read it as an invoice and check its sums and required fields.
- [XRechnung vs ZUGFeRD](https://finray.tech/notes/xrechnung-vs-zugferd/): Which German e-invoice format to send, current versions and the Leitweg-ID.
- [Germany e-invoicing mandate timeline](https://finray.tech/notes/germany-e-invoicing-mandate-timeline/): Receiving since 2025, issuing from 2027 and 2028, who is covered and what counts as an e-invoice.
- [All Finray tools](https://finray.tech/tools/)

## Sources

Last verified 2026-11-26.

- [KoSIT: Leitweg-ID, format specification version 2.0.2 (28 July 2021, in German)](https://e-rechnung.service.rlp.de/fileadmin/zre-upload.rlp.de/allgemeine_Dokumente/Leitweg-ID-Formatspezifikation-v2-0-2.pdf)
- [FeRD: Datasheet Leitweg-ID (in German)](https://ferd-net.de/fileadmin/user_upload/FeRD/Downloads/Leitweg_ID/Datenblatt_Leitweg-ID.pdf)
- [BMF letter of 15 October 2025, Rn. 6b and 35a (in German)](https://www.bundesfinanzministerium.de/Content/DE/Downloads/BMF_Schreiben/Steuerarten/Umsatzsteuer/Umsatzsteuer-Anwendungserlass/2025-10-15-einfuehrung-obligatorische-e-rechnung.html)

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.
