XRechnung is Germany's standard for electronic invoices. Technically, it is a Core Invoice Usage Specification (CIUS) of the European standard EN 16931: it adopts the standard's semantic data model with its Business Terms (BT) and Business Groups (BG) and adds national business rules. It is published by KoSIT, the Coordination Office for IT Standards, on behalf of Germany's IT Planning Council.
An XRechnung is a pure XML file with no human-readable layer. It comes in one of two syntaxes, UBL 2.1 or UN/CEFACT CII, which are legally equivalent. For invoices to public-sector buyers the Leitweg-ID is mandatory as the buyer reference (BT-10), and submission runs through the federal and state invoice portals such as ZRE and OZG-RE or through the Peppol network. In B2B, XRechnung is one of the formats businesses can use to meet the e-invoicing mandate.
In this category we walk through how an XRechnung is structured, which fields are mandatory, how to state a Leitweg-ID correctly and how to create, read and check a file. Our examples use the real field names and XML paths. The free XRechnung viewer turns any file into a readable invoice, the e-invoice generator creates compliant invoices, and the Leitweg-ID validator checks the check digits.
Tools for this topic
- XRechnung ViewerParse, validate & repair German e-invoices with GoBD-compliant audit trail.Open tool →
- E-Invoice GeneratorCreate compliant XRechnung XML and ZUGFeRD hybrid PDF invoices instantly.Open tool →
- Leitweg-ID Validator & Check-Digit CalculatorValidate Leitweg-IDs and calculate ISO 7064 Mod 97-10 check digits.Open tool →
All articles on this topic
How to Find or Get a Leitweg-ID for Invoicing German Authorities
How to get a Leitweg-ID: where suppliers find it, how public bodies apply for one, where to enter it (BT-10) and what to do when the portal rejects it.
How to Create an XRechnung: Step-by-Step Guide
How to create an XRechnung in six steps: required fields with BT numbers, a validated UBL example, KoSIT validation, sending and archiving the invoice.
What Is XRechnung? Format, Structure and Requirements (2026)
What is XRechnung? Germany's XML e-invoice format under EN 16931 explained: how it is structured, when it is mandatory and how to validate and create one.
What Is a Leitweg-ID? Structure, Examples and Who Needs One
What is a Leitweg-ID? Its structure, a worked check-digit example, where it goes in BT-10 and why only public authorities need one, not their suppliers.