Get Started

XRechnung vs ZUGFeRD: Which Format Should You Use?

Both are compliant. The right choice depends on who you invoice — and what your software can process.

Guide · Updated October 2026 · ~5 min read

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

XRechnungZUGFeRD
What it isPure XML file, built for German public administrationXML embedded inside a PDF/A-3 — looks like a PDF, reads like data
Human-readable?No — open it and you see tagsYes — the PDF view is the invoice
Typical useB2G (public sector), large corporatesB2B between companies
TransportEmail, portals, Peppol, APIsUsually 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?

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.

More guides