ZUGFeRD vs XRechnung: Which German E-Invoice Format Do You Need?
Germany's e-invoicing mandate under Section 14 of the German VAT Act (UStG) recognizes structured formats based on the European norm EN 16931 — and in practice that means two names: XRechnung and ZUGFeRD. Both are legally valid e-invoices; the difference is form. XRechnung is a pure XML data set with no visual layer, designed for fully automated processing and mandatory for invoicing most German public authorities. ZUGFeRD is a hybrid: a normal, human-readable PDF with the same structured XML embedded inside, so people and machines each get the version they can read.
For international companies invoicing German customers, the choice is rarely ideological. Public-sector buyers ('B2G') generally demand XRechnung, often delivered through specific portals with a buyer reference ('Leitweg-ID'). Private-sector B2B customers mostly accept either, and many prefer ZUGFeRD because it drops into existing PDF-based workflows on both sides. If you already generate PDF invoices today, tools like Taxlayer can convert PDF invoices to ZUGFeRD automatically, which is usually the lowest-friction route to compliance.
The wrong question is 'which format is better' — the right one is 'what does each receiving system require'. A non-compliant format is not a formality: where the mandate applies, a plain PDF no longer counts as an invoice, which endangers your customer's input VAT deduction and gets the document bounced back. Our overview of German e-invoicing penalties explains what non-compliance costs in practice.
Your checklist
- 1Segment your German invoice recipients: split them into public-sector bodies (usually XRechnung required) and private B2B customers (ZUGFeRD or XRechnung accepted).
- 2Ask key customers for their format preference: many large German enterprises publish supplier e-invoicing requirements including format, profile and delivery channel.
- 3Choose ZUGFeRD for PDF-centric workflows: if your billing produces PDFs today, embedding EN 16931 XML via ZUGFeRD (profile COMFORT or higher) preserves your layout — convert PDF invoices to ZUGFeRD automatically instead of rebuilding the billing stack.
- 4Use XRechnung for public-sector invoices: obtain the buyer's Leitweg-ID routing reference and submit through the required portal or transmission channel.
- 5Check the profile, not just the format: ZUGFeRD's MINIMUM and BASIC-WL profiles do not satisfy the e-invoice requirements — use COMFORT (EN 16931) or higher.
- 6Validate every generated invoice against EN 16931 before sending, so schema and business-rule errors surface on your side rather than in the customer's rejection queue.
- 7Archive the XML as the original: for both formats, the structured data is the legally relevant invoice and must be retained unchanged under German bookkeeping rules (GoBD).
- 8Prepare to receive both formats too: German suppliers will send you XRechnung and ZUGFeRD invoices, and reception capability has been mandatory since 2025 — see our e-invoicing compliance checklist.
Frequently asked questions
What is the difference between ZUGFeRD and XRechnung?
Both implement the European e-invoicing norm EN 16931. XRechnung is a pure XML file with no visual representation, standard for invoicing German public authorities. ZUGFeRD is a hybrid format: a regular PDF/A document with the same structured XML embedded inside, so the invoice stays human-readable while systems process the data automatically. Legally, a compliant invoice in either format satisfies the German mandate.
Which format do German public authorities require?
Federal authorities and most state bodies require XRechnung, typically submitted via designated portals with a routing identifier called the Leitweg-ID. Some accept ZUGFeRD from profile version 2.x in the XRechnung-compatible profile, but XRechnung is the safe default for any business-to-government invoice in Germany.
Is a ZUGFeRD invoice legally equivalent to an XRechnung?
Yes, for B2B purposes. The German VAT Act requires a structured electronic invoice conforming to EN 16931; ZUGFeRD from profile COMFORT and XRechnung both meet that standard. Note that lower ZUGFeRD profiles such as MINIMUM do not contain the full data set and do not qualify as compliant e-invoices under the mandate.
Can foreign companies issue ZUGFeRD or XRechnung invoices without German software?
Yes. Both are open, documented formats, and conversion services can generate them from existing PDF or ERP output without replacing the billing system. What matters is that the embedded structured data is complete and valid against EN 16931 — which is why validating invoices before dispatch is standard practice.