Learn · formats

What is XRechnung?

XRechnung is Germany's national implementation (CIUS) of the EN 16931 European e-invoicing standard, mandatory for all public sector invoicing in Germany.

TL;DR

XRechnung is Germany's mandatory e-invoice format for B2G transactions, built on EN 16931 with additional German-specific validation rules. B2B e-invoicing becomes mandatory from January 2025.
Quick facts
Full NameXRechnung (German for "X-Invoice")
TypeE-invoice format specification
Maintained ByKoSIT (Germany)
RegionGermany
StatusMandatory for B2G
SyntaxUBL 2.1 or UN/CEFACT CII
How XRechnung works

XRechnung defines a strict XML structure based on the European standard EN 16931. It supports two syntaxes:

  • UBL 2.1 (Universal Business Language) — Most common, used by Peppol
  • UN/CEFACT CII (Cross-Industry Invoice) — Used by ZUGFeRD/Factur-X

German-Specific Rules

XRechnung adds 21 business rules beyond EN 16931, including:

  • Leitweg-ID: Required routing identifier for German government invoices
  • Payment terms: Specific format requirements
  • VAT categories: Mapping to German tax codes

Submission Methods

XRechnung invoices can be submitted via:

  • ZRE (Zentrale Rechnungseingangsplattform): Federal government portal
  • OZG-RE: State government portals
  • Peppol: Via certified Access Point
  • Email: To specific submission addresses (varies by authority)
Why XRechnung matters

B2G: Already Mandatory

Since November 2020, all invoices to German federal authorities must be XRechnung-compliant. Most state governments have similar requirements. Non-compliant invoices may be rejected.

B2B: Coming 2025-2028

Germany's B2B e-invoicing mandate phases in:

  • January 2025: All businesses must receive EN 16931 invoices
  • January 2027: Businesses >€800K must send e-invoices
  • January 2028: All businesses must send e-invoices

XRechnung or ZUGFeRD are both accepted for the B2B mandate.

Invoice Navigator supports all XRechnung versions and automatically validates against the latest KoSIT rule set, catching format-specific errors that generic validators miss.

How to get started

Step 1: Check Your Requirements

Are you invoicing government (B2G) or only businesses (B2B)? Government requires XRechnung; B2B can use XRechnung or ZUGFeRD.

Step 2: Get Your Leitweg-ID

For government invoices, you need the recipient's Leitweg-ID routing number. This is usually provided on purchase orders or contracts.

Step 3: Generate or Convert

Use your accounting software's XRechnung export, or convert existing invoices using our generator.

Related

Frequently Asked Questions

Is XRechnung mandatory for all German businesses?
What's the difference between XRechnung and ZUGFeRD?
What is a Leitweg-ID?
Can I view XRechnung files?
Which syntax should I use—UBL or CII?
Related

Have an e-invoice that came back rejected? Check it here.

Checking is free. The first verified download every 30 days is free. After that €1.90 per invoice, or €9 a month for all of them.