This guide is general information, not tax or legal advice. For your specific situation, talk to your tax adviser (Steuerberater).
Both formats answer the same question — how to send an invoice as structured, machine-readable data — but they solve it differently. The two words get used interchangeably in German offices, which creates real confusion when you have to decide what to send or what you can receive. Here is the difference, and when each one is the right choice.
The short version
| XRechnung | ZUGFeRD | |
|---|---|---|
| What it is | Pure XML file, built for German public administration | XML embedded inside a PDF/A-3 — looks like a PDF, reads like data |
| Human-readable? | No — open it and you see tags | Yes — the PDF view is the invoice |
| Typical use | B2G (public sector), large corporates | B2B between companies |
| Transport | Email, portals, Peppol, APIs | Usually email attachment |
XRechnung: the public-sector standard
XRechnung is Germany's XML standard, originally developed so public authorities could process invoices automatically. If you invoice the federal government (or most Länder), XRechnung is not optional — it is required, and many buyers additionally require a Leitweg-ID (a routing number) in the invoice. That history is why XRechnung is strict and precise: it was built for a world where no human opens the file at all.
For private-sector use, XRechnung works fine too — but the recipient needs software that can read XML. A bookkeeper opening it in a text editor sees tags, not an invoice.
ZUGFeRD: the hybrid
ZUGFeRD (the name comes from the Forum für elektronische Rechnung Deutschland) takes the pragmatic path: the structured XML is embedded in a PDF/A-3 file. The recipient sees a normal-looking PDF — someone can read it without special software — while accounting systems extract the embedded XML automatically. Version 2.3 is current. For the German mandate, use a compliant profile (EN 16931 or the XRechnung profile).
Which one should you use?
- Invoicing public authorities? XRechnung, per their requirements — check the buyer's specifications and Leitweg-ID.
- Invoicing private businesses? Either is compliant under the mandate. ZUGFeRD is often friendlier for recipients still working with PDFs; XRechnung is leaner when both sides are automated.
- Receiving invoices? Support both — your suppliers will not coordinate with each other, so your inbound process must handle whichever arrives.
What matters more than the choice
Businesses often spend weeks debating formats and forget that the format is the easy part. What actually breaks invoice processing is everything around it: capture, checking supplier data, duplicate detection, approvals, and clean handoff to the books. A perfectly formatted ZUGFeRD invoice that sits unprocessed in someone's inbox has solved nothing.
Where Ledgr fits
Ledgr handles both formats on the way in: supplier invoices arrive as XRechnung or ZUGFeRD, get extracted, checked against your master data, routed for approval, and delivered to your ERP as accounting-ready data. If you want to see it early, join the waitlist.