Skip to main content
E-Rechnung · checked on 17 November 2026

XRechnung vs ZUGFeRD: how Germany's two e-invoice formats differ and which one to send

XRechnung and ZUGFeRD are both e-invoices under the European standard EN 16931, and both meet Germany's B2B e-invoicing rules; for ZUGFeRD, from version 2.0.1 and except the MINIMUM and BASIC-WL profiles. The main difference is the file type: an XRechnung is plain XML that needs a viewer to be read, while a ZUGFeRD is a PDF/A-3 that anyone can open, with the same invoice data embedded as XML. In both cases the XML is what counts legally.

FlexigoTech · Editor in charge: Víctor Gómez · Updated 17 November 2026

Key facts

Versions
Odoo 17, 18, 19 and 20
Checked
in the module's source code, version 20.0 · against the sources linked at the end
Reading time
4 min

The two formats side by side

XRechnungZUGFeRD
Published byKoSIT, for the public sectorFeRD, part of the AWV, with support from the Federal Ministry for Economic Affairs and Energy
Fileplain XMLPDF/A-3 with embedded XML
SyntaxUBL 2.1 or UN/CEFACT CIIUN/CEFACT CII
Readable without softwareno, it needs a vieweryes, as a PDF
If PDF and XML differthere is no PDFthe XML prevails
Valid as a German e-invoiceyesfrom version 2.0.1, except MINIMUM and BASIC-WL
Current releaseversion 3.0, specification 3.0.2; 4.0 in draftversion 2.5.2 of 4 August 2026
Federal OZG-RE platformyesonly ZUGFeRD 2.2.0 in its XRECHNUNG profile, as a plain XML file

XRechnung, the public-sector standard

XRechnung is developed by KoSIT, the German coordination office for IT standards, as the standard for invoices to public contracting authorities. It implements Directive 2014/55/EU and narrows EN 16931 with German business rules: for example, field BT-10 (Buyer reference) is mandatory, and an XRechnung without it fails with error BR-DE-15. For federal authorities that field holds their Leitweg-ID. An XRechnung has no PDF, so the buyer needs software to display it; the German tax administration offers a free viewer at e-rechnung.elster.de.

ZUGFeRD, a PDF that carries the data

FeRD, the German e-invoicing forum, publishes ZUGFeRD under the name "ZUGFeRD/Factur-X". It is free and works across industries: a PDF/A-3 for people to read, with the invoice data as CII XML for the buyer's software. FeRD says it can be used between businesses, with public bodies and with consumers. Under the German rules the XML is the leading part: if it differs from the PDF, the XML counts, and the BMF recommends displaying the XML part itself.

Which one to send to a German customer

German law does not prefer either: both qualify, and you may agree the format and the channel with your customer, or use another structured format such as EDIFACT if every mandatory detail can be read from it. If your company has no establishment in Germany, you are not obliged to send e-invoices at all, but every German business must be able to receive both. In practice:

  • A customer that still reads invoices by eye can open a ZUGFeRD as a normal PDF, while its software reads the XML later.
  • A customer that imports invoices automatically will usually tell you which of the two its system expects: ask.
  • For federal public bodies, XRechnung is the standard and the Leitweg-ID goes in BT-10. The OZG-RE platform takes another standard only if it meets EN 16931, the federal E-Invoicing Ordinance (E-RechV) and the platform's terms of use; the federal FAQ names ZUGFeRD 2.2.0 in its XRECHNUNG profile, sent as a plain XML file. Whether your public client uses OZG-RE comes with the order, or you ask the client.

Both formats in Odoo

Odoo Community 18, 19 and 20 offers the partner formats "Germany (XRechnung)" and "Germany (ZUGFeRD)"; when you send the invoice, Odoo generates the XML and attaches it, and for ZUGFeRD it embeds the XML in the PDF. Our module XRechnung & ZUGFeRD Odoo generates XRechnung 3.0 in CII and UBL and ZUGFeRD EN16931 or EXTENDED as PDF/A-3, in the format set on each customer or on the company. FlexigoTech Cloud validates XRechnung and ZUGFeRD EN16931 against KoSIT's official rules; the EXTENDED profile is generated but not validated.

Customer invoice in ZUGFeRD 2.x EN16931 in Odoo, validated and ready to send
Screenshot with demo data from Odoo 20 in German: the invoice in ZUGFeRD EN16931, validated against KoSIT's rules and marked "Ready to send".
A customer in Odoo with the XRechnung CII 3.x format and its Buyer Reference BT-10
Screenshot with demo data from Odoo 20 in German: on each customer you choose XRechnung or ZUGFeRD; this one gets XRechnung CII 3.x with its Buyer Reference (BT-10).

The module runs on Odoo 17, 18, 19 and 20 and costs €9 per version on Odoo Apps, plus FlexigoTech Cloud from €29 a month or €290 a year, VAT excluded. You start the 14-day free trial in Odoo under Settings › FlexigoTech Cloud, and it does not ask for a card.

Frequently asked questions

Can I send a ZUGFeRD invoice to a German public body?

The rule is XRechnung. Another standard is allowed if it meets EN 16931, the E-RechV and the platform's terms; the federal FAQ names ZUGFeRD 2.2.0 in its XRECHNUNG profile, as a plain XML file without the PDF. Your public client tells you with the order whether it uses OZG-RE, and you can ask it which format it takes.

Is a ZUGFeRD invoice just a PDF?

No. It is a PDF/A-3 with embedded XML. If the XML is missing or has a format error, the file is not an e-invoice.

Do I need XRechnung if my company is outside Germany?

You are not obliged to issue e-invoices if you have no establishment in Germany. If your German customer asks for one, either format meets the rules.

Keep reading

Germany's B2B e-invoicing mandate: who must send and receive e-invoices, and from whenEvery German business must accept e-invoices since 1 January 2025. Issuing them is mandatory from 2027 above €800,000 turnover and from 2028 for all.
Checked in the module's source code (version 20.0) and the linked sources

Sources