Home › Guide › XRechnung or ZUGFeRD
XRechnung or ZUGFeRD – the difference
XRechnung and ZUGFeRD are often mentioned in the same breath, but they are not the same thing. Both comply with the European standard EN 16931 – they just package the invoice data differently. Which format you need depends mainly on who receives your invoice.
The common basis: EN 16931
EN 16931 specifies which details an electronic invoice must contain and how they are structured – invoice number, addresses, line items, VAT rates, amounts, and more. XRechnung and ZUGFeRD implement this standard in two different ways. An invoice that complies with the standard can be processed automatically by the recipient's system.
XRechnung: the pure XML invoice
The XRechnung is a pure data file (XML, in the CII or UBL syntaxes) with no visible invoice image. It is the German standard for invoices to public administration: anyone supplying the federal government, states, or municipalities must generally send an XRechnung – addressed via the recipient's Leitweg-ID. It is checked with the official KoSIT validator.
ZUGFeRD: PDF with an embedded XML file
ZUGFeRD combines both: a PDF (PDF/A-3) that humans can read and print as usual, with an embedded XML file that machines process. The profiles matter: only the profiles that fully implement EN 16931 (especially the EN 16931 profile, also called "Comfort") count as standard-compliant e-invoices. The simpler Minimum and Basic profiles contain less data and do not fully meet the standard.
Compared
| XRechnung | ZUGFeRD | |
|---|---|---|
| File | Pure XML file | PDF with an embedded XML file |
| Readable by humans | No – display only via a program | Yes – the PDF shows the invoice as usual |
| Typical use | Invoices to government agencies (B2G) | Invoices between businesses (B2B) |
| Addressing | Via the recipient's Leitweg-ID | Sent like a normal PDF, e.g. by email |
| Checking | Both are checked against EN 16931 – the XRechnung with the KoSIT validator. | |
Which format do you need?
- Your customer is a government agency: XRechnung – and ask for the Leitweg-ID; without it the invoice is invalid (Error BR-DE-15).
- Your customer is a business: Both are possible. ZUGFeRD is often more practical because the recipient can read the invoice without additional software. When in doubt, ask which format the recipient processes.
- You're unsure: Generate the XRechnung as XML – it is the reference format, and a ZUGFeRD PDF can be derived from it.
With us, you get both
Our converter generates from your PDF invoice the XRechnung as XML and a ZUGFeRD PDF with the same XML embedded in it. Before downloading, the file is checked with the KoSIT validator.
