XRechnung vs. ZUGFeRD: The Difference, Simply Explained

XRechnung and ZUGFeRD are the two e-invoice formats common in Germany. Both satisfy the European standard EN 16931 — the difference is in the packaging.

What they have in common

Both are valid e-invoices under EN 16931: they carry the same structured mandatory fields and can be processed automatically. A compliant recipient can read both — the difference is only the outer shell.

The core difference

Which format when?

Situation Recommendation
Invoice to public authorities (B2G) XRechnung
Recipient should also “see” the invoice ZUGFeRD
Fully automated processing XRechnung (UBL/CII)

When in doubt: choose XRechnung for pure data exchange (especially B2G) and ZUGFeRD when a readable PDF is also expected. Step-by-step guides are at Create an e-invoice and Create an XRechnung.

Check and create both

Whichever format reaches you — you can open and validate an e-invoice directly in your browser. A ZUGFeRD PDF is read automatically and its embedded XML is checked against EN 16931.

For the legal background, see E-Invoicing Obligation in Germany.

Frequently asked questions

What is the difference between XRechnung and ZUGFeRD?

XRechnung is a pure XML file; ZUGFeRD is a PDF with embedded XML. Both satisfy EN 16931; XRechnung is the standard for public authorities, while ZUGFeRD suits cases where the recipient should also see the invoice.

Is ZUGFeRD the same as Factur-X?

Technically yes. ZUGFeRD (Germany) and Factur-X (France) use the same hybrid format of a PDF with embedded CII XML.

Which format should I use for public authorities?

For invoices to public authorities (B2G), XRechnung is the standard — including the Leitweg-ID.

Are both formats validated the same way?

Yes. Both are validated against EN 16931 and the German business rules; for ZUGFeRD the embedded XML is extracted first.