ZUGFeRD and XRechnung are both e-invoices (E-Rechnung) according to the European standard EN 16931 and contain the same invoice data as XML. The difference lies in the packaging: an XRechnung is a pure XML file in the CII or UBL syntax, a ZUGFeRD invoice is a PDF containing the XML file (CII syntax). Between businesses, you may use both; which format, you agree with your customer. For invoices to federal bodies, the E-Invoicing Ordinance (E-Rechnungsverordnung, ERechV) in principle provides for the XRechnung with a Leitweg-ID.
As of: Dec. 2, 2026
This guide is a machine translation of the German original as of Dec. 2, 2026. Only the German version is authoritative: read the German version. If you contact us, please write in German or English.
The question behind the question
A customer writes “e-invoices only from now on, please”, and you come across two names: ZUGFeRD and XRechnung. Do you need both? Is one of them better? The short answer: both are e-invoices, both contain the same data. They differ in how the data is packaged and who usually requires them.
What both have in common
Both formats are based on the European standard EN 16931. It specifies which details an invoice contains (the semantic data model) and in which two XML notations, the syntaxes UN/CEFACT CII and OASIS UBL 2.1, these details may be written (KoSIT, XRechnung standard). Each detail has a fixed number there, for example BT-1 for the invoice number; the glossary of invoice fields explains them one by one.
The BMF names both formats explicitly: invoices according to the XRechnung standard and, under certain conditions, in the ZUGFeRD format meet the requirements for an e-invoice according to EN 16931 (section 14.1 para. 12 sentence 2 UStAE). Other formats according to EN 16931 are also permitted (section 14.1 para. 12 sentence 3 UStAE).
The difference: pure XML or PDF with XML
| XRechnung | ZUGFeRD | |
|---|---|---|
| Type of format | purely structured: XML file only | hybrid: PDF with embedded XML file |
| Syntax of the XML file | CII or UBL | CII |
| Readable for people | only with a program that prepares the data | PDF part directly, like any PDF |
| Publisher | KoSIT (Koordinierungsstelle für IT-Standards, Coordination Office for IT Standards) | FeRD (Forum elektronische Rechnung Deutschland, Forum for Electronic Invoicing Germany) |
| E-invoice within the meaning of the UStG | yes | from version 2.0.1, except profiles MINIMUM and BASIC-WL |
XRechnung is a purely structured format. The file contains only data and is intended primarily for machine processing; for the human eye, it only becomes readable with a visualisation application (section 14.1 para. 13 sentences 4 to 6 UStAE). How this works is shown in the article Opening and reading an XRechnung.
ZUGFeRD is a hybrid format: a PDF document (PDF/A-3) as the visual part and an XML file in the CII syntax as the data part are combined in one file (section 14.1 para. 14 sentences 2 and 3 UStAE; FeRD). ZUGFeRD comes in several profiles, which specify how many details the XML file contains. ZUGFeRD counts as an e-invoice from version 2.0.1, except for the profiles MINIMUM and BASIC-WL (section 14.1 para. 14 sentence 4 UStAE). Which profile a file has is stated in the specification identifier (BT-24); if it is missing, the validation rule (Prüfregel) BR-01 reports an error.
Important with ZUGFeRD: the XML file is what counts
In a hybrid format, the data in the structured part takes precedence. If the PDF image and the XML file differ, the data of the XML file prevails (section 14.4 para. 3 UStAE). Input tax deduction (Vorsteuerabzug) is only available from the structured part (section 14c.1 para. 4a sentence 4 UStAE). A look at the PDF is therefore not enough to check a ZUGFeRD invoice. More on this in the article E-invoices and input tax deduction.
ZUGFeRD with an XRechnung inside
The two formats can be combined: besides its profiles, ZUGFeRD has the reference profile XRECHNUNG. The PDF then contains an XRechnung, and only in the CII syntax (FeRD, frequently asked questions on ZUGFeRD). This way, the recipient receives an XRechnung and at the same time a PDF to view.
Which format when?
Invoices to businesses (B2B)
Formats according to EN 16931 are always permitted (section 14.1 para. 11 sentence 3 UStAE). Between domestic businesses, you may therefore send XRechnung as well as ZUGFeRD. Which permitted format you use is a question of civil law that only you and your customer decide (section 14.1 para. 12 sentence 5 UStAE). You do not need the customer's consent to the e-invoice itself (section 14.1 para. 4 sentence 4 UStAE).
In practice, a simple consideration helps: if your customer still processes invoices by hand, they can view the PDF part of a ZUGFeRD invoice as usual, even without a program for XML. If they process them automatically, what counts for them is the XML part, and both formats contain it. If in doubt, ask what your customer accepts. From when you have to issue e-invoices is shown by the E-invoicing mandate check.
Invoices to public authorities (B2G)
For invoices to federal bodies, the E-Invoicing Ordinance in principle prescribes the XRechnung standard; another standard is permitted if it complies with the European standard (§ 4 para. 1 ERechV). The invoice must additionally contain, among others, a Leitweg-ID, the address of the invoicing office within the public authority (§ 5 para. 1 no. 1 ERechV). In the XRechnung, it is stated in the buyer reference (BT-10); if it is missing, the validation rule BR-DE-15 reports an error. What the identifier is about is explained in the article Leitweg-ID: what is it?.
The federal states have their own rules. Which formats and transmission channels the federal government and the federal states provide for is set out, with sources, on the pages XRechnung to public authorities. E-Rechnungsfreund does not transmit anything to public authority portals; you submit the file yourself.
Opening and validating both formats
- Recognising the format: The quick check “Is this an e-invoice?” recognises without an account whether a PDF or XML file is an e-invoice, and names the format and profile, for example ZUGFeRD PDF or XRechnung in CII or UBL.
- Opening ZUGFeRD: You open the PDF part with any PDF program. What is decisive, however, is the embedded XML file.
- Opening XRechnung: In a browser or text editor, you only see XML source code. The file becomes readable with a program that prepares the data.
- Validating and reading: On the page Validate an e-invoice or in the validator, you upload an XML file or a PDF with an embedded XML file without an account. It is validated against the official KoSIT validation rules; afterwards, you see a readable summary with invoice issuer, number, amount, due date and IBAN. Without an account, that is 3 validations per day.
A passed validation means that the format and the business rules (Geschäftsregeln) of EN 16931 are complied with (section 14.1 para. 11 sentence 11 UStAE). Whether each detail is correct in terms of content, for example the tax rate, is not checked by it.
Viewing examples and creating your own
What both formats look like is shown by the e-invoice examples: valid ZUGFeRD PDFs with an embedded XML file and an XRechnung to a public authority with a Leitweg-ID, to download and try out in the validator.
You create both formats yourself in the invoice form of E-Rechnungsfreund: a ZUGFeRD PDF (version 2.4, profile EN 16931) or an XRechnung as an XML file in the CII syntax, validated against the KoSIT validation rules before download. All ways to a ZUGFeRD PDF are brought together on the page Create a ZUGFeRD invoice. To download, you need a free account; with it, that is 5 invoices per month.
How to proceed
- Agree with the customer which format they accept: between businesses, ZUGFeRD and XRechnung are permitted, federal bodies in principle provide for the XRechnung with a Leitweg-ID, the federal states have their own rules.
- Validate and read incoming invoices, whether ZUGFeRD or XRechnung, in the validator without an account.
- With a free account, create your own invoices as a ZUGFeRD PDF or XRechnung.
Frequently asked questions
What is the difference between ZUGFeRD and XRechnung?
An XRechnung is a pure XML file without a page view, in the UN/CEFACT CII or OASIS UBL syntax. A ZUGFeRD invoice is a PDF/A-3 document in which the invoice data is embedded as an XML file in the CII syntax. Both are based on EN 16931 (section 14.1 paras. 12 to 14 UStAE).
Is a ZUGFeRD invoice an e-invoice?
Yes, from version 2.0.1, except for the profiles MINIMUM and BASIC-WL (section 14.1 para. 14 sentence 4 UStAE). Under German law, these two profiles do not count as an invoice (FeRD).
Do I have to send an XRechnung to businesses?
No. Between businesses, all formats that comply with EN 16931 are permitted, among others XRechnung and ZUGFeRD. Which one you use is a question of civil law that you settle with your customer (section 14.1 para. 12 sentence 5 UStAE).
How do I open a ZUGFeRD invoice?
You open the PDF part with any PDF program. The invoice data is contained in the PDF as an embedded XML file; in case of discrepancies, the data of the XML file applies, not the image (section 14.4 para. 3 UStAE). In the validator, you upload the PDF and see the XML data validated and prepared in readable form.
Can a ZUGFeRD invoice contain an XRechnung?
Yes. Besides its profiles, ZUGFeRD has the reference profile XRECHNUNG. The PDF then contains an XRechnung in the CII syntax. Whether a public authority accepts such a file is stated in its requirements.
Sources
- BMF-Schreiben zur Einführung der obligatorischen E-Rechnung zwischen inländischen Unternehmern (BMF letter on the introduction of mandatory e-invoicing between domestic businesses) (Oct. 15, 2025, III C 2 - S 7287-a/00019/007/243)
- § 14 UStG (Ausstellung von Rechnungen) (issuing invoices)
- E-Rechnungsverordnung (ERechV) des Bundes, §§ 4 und 5 (Federal E-Invoicing Ordinance)
- KoSIT: Standard XRechnung (XStandards Einkauf) (XRechnung standard)
- FeRD: ZUGFeRD/Factur-X
- FeRD: Häufige Fragen zu ZUGFeRD (Profile, Referenzprofil XRECHNUNG) (frequently asked questions on ZUGFeRD: profiles, reference profile XRECHNUNG)
This article summarises the sources listed in general terms and is not tax or legal advice. For your individual case, please consult a tax advisor.