Electronic invoice formats in Germany: XRechnung and ZUGFeRD

E-invoice formats (invoices with structured data that software can process automatically) such as XRechnung and ZUGFeRD contain structured invoice data; according to the European Commission, EN 16931 defines its meaning and rules. XRechnung is a German specification, while ZUGFeRD usually combines PDF and XML (a technical language for structured data). This overview helps you place the names in context and distinguish structured XML data from a hybrid invoice and an ordinary PDF invoice.
Which e-invoice formats are there in Germany?
XRechnung and ZUGFeRD are examples of e-invoice formats; EN 16931 describes the meaning of invoice data and its rules, while UBL and CII describe its technical representation in XML.
| Term | Layer | What it helps you identify |
|---|---|---|
| EN 16931 | Meaning and business rules | What invoice details mean and which rules they follow |
| UBL / UN/CEFACT CII | XML syntax | How invoice data is represented technically; CII stands for Cross Industry Invoice |
| XRechnung | German specification of EN 16931 | A national implementation, expressed in structured XML |
| ZUGFeRD | Usually a hybrid combination | A PDF/A-3 (an archival PDF format) file with embedded structured XML invoice data |
The European Commission distinguishes the semantic data model of EN 16931-1 from the syntaxes that represent this model technically. It names UBL 2.1 and UN/CEFACT Cross Industry Invoice (CII) as syntaxes. “Semantic” here means the meaning of the data: it concerns what information an invoice detail expresses.
The Federal e-Invoicing Service portal’s FAQ describes XRechnung as a national implementation of the European standard and an XML-based standard. FeRD explains ZUGFeRD’s hybrid form: structured invoice data in XML format is embedded in a PDF/A-3 document. “Hybrid” describes this combination of two representations in one file.
The four table rows are therefore not a list of equivalent file extensions. Some names describe rules for the content, others its technical representation or the combination of a view and data. This means an invoice can fit several of these terms at once. The question “EN 16931 or XML?” compares two different layers. Read the table by its middle column: the layer makes clear which question each term answers.
This classification is useful whether you work in a liberal profession as a Freiberufler (a person practising an independent liberal profession covered by § 18 EStG, with no Gewerbe to register) or run a Gewerbe (a registered trade). The term Kleinunternehmer (a business under the small-business VAT exemption) is not another format category either: VAT status is a different question from how an invoice file is structured. The overview of invoices places the other invoice topics in context. The legal format routes are set out below, where the files are compared.
How do EN 16931, XML and invoice formats fit together?
EN 16931 describes what invoice details mean and which rules they must meet; an XML syntax specifies how those details are represented technically.
You can read the relationship like this:
EN 16931: meaning and rules → XML syntax: technical representation
XRechnung sits alongside these as a German specification of the standard. In its usual hybrid form, ZUGFeRD combines structured XML data with a PDF view. The line therefore does not describe a conversion from XRechnung to ZUGFeRD. It separates the meaning of a detail from the form in which software processes it.
A simple example is the name of the person or company issuing the invoice. The information stays the same: who issued the invoice? Its technical representation can differ. The European Commission explains that the semantic model is combined with a syntax to create structured, interchangeable and automatically processable messages. The technical notation therefore carries the information whose meaning the model defines.
The name does not have to appear as a visible line of text in a particular place on a PDF page. In a structured data set, the concern is the technical assignment of that information. A readable view and a structured data set therefore answer different questions: what can you see when reading it, and how are the same invoice details stored for processing?
If EN 16931, XML and ZUGFeRD appear together in a description, that is no contradiction. The description may refer at once to content rules, technical representation and a hybrid container. Conversely, any one of these terms alone does not tell you everything about the other layers. This distinction is enough to orient yourself; the names do not describe a sequence of work steps.
How do the files differ?
An XRechnung contains structured XML data, and a usual hybrid ZUGFeRD invoice also has a PDF view; an ordinary PDF invoice without structured invoice data does not offer this combination.
| File | Readable view | Structured invoice data |
|---|---|---|
| XRechnung as XML | No PDF view as part of this XML file | Invoice details in XML |
| Usual hybrid ZUGFeRD invoice | PDF view in the PDF/A-3 document | Embedded XML invoice data |
| Ordinary PDF invoice without a structured data set | Visual representation of the invoice | No structured invoice data set |
The Federal e-Invoicing Service portal on the difference between invoice types explains that, with an ordinary PDF invoice, the information must be transferred to accounting software manually or through additional systems such as text recognition before it can be processed further. Readable text is therefore different from an existing structured invoice data set. Even when both show the same details, the information is stored technically in different ways.
§ 14 Abs. 1 UStG distinguishes an e-invoice in the statutory sense from an “other invoice”. An ordinary PDF invoice without the required structured data belongs to the second category. “Other invoice” is a statutory classification; it does not automatically declare an invoice invalid. The category alone also does not answer which format may be used in a particular case.
The
.xmlfile extension alone does not prove conformity. This follows from the structural and format requirements in § 14 UStG: what matters is the invoice data contained in the file and whether it meets the rules, not just its file name.
According to the BMF statement reproduced in the FeRD FAQ, ZUGFeRD has been among the permitted e-invoice formats since version 2.0.1, except for MINIMUM and BASIC WL; the guide to ZUGFeRD profiles explains the details.
§ 14 Abs. 1 Satz 6 UStG provides two format routes: compliance with the European standard and its accompanying list of syntaxes, or an agreed format from which the statutory details can be extracted correctly and completely into a format that conforms to the standard or is interoperable with it. XRechnung and suitable ZUGFeRD variants are therefore examples, not an exhaustive list.
The ZUGFeRD overview explains how the PDF and XML parts work together. When classifying a file, the key question remains whether it contains structured invoice data and how that data is connected to a possible readable view.
Frequently asked questions
Which e-invoice formats are there in Germany?
XRechnung and ZUGFeRD are examples. EN 16931 defines the meaning of invoice data and its rules; Universal Business Language (UBL) and UN/CEFACT Cross Industry Invoice (CII) are XML syntaxes. XRechnung is a German specification; ZUGFeRD usually combines PDF and XML. German law permits other formats too: § 14 UStG also allows an agreed interoperable route.
Is EN 16931 an invoice format?
EN 16931 is the European standard for the meaning of invoice data and the rules that apply to it, not a file extension. The European Commission distinguishes this semantic model from its technical representation. UBL and CII are XML syntaxes for it. The name of the standard therefore describes a different layer from the visible container of an invoice file.
What is the difference between XML and ZUGFeRD?
XML describes the technical representation of structured data; ZUGFeRD is an invoice format that, in its usual hybrid form, combines PDF/A-3 and embedded XML invoice data. The PDF provides a readable view, while the XML part provides structured data. The terms can therefore describe the same invoice without XML and ZUGFeRD being interchangeable names.
Is a PDF invoice an e-invoice format?
Under § 14 UStG, an ordinary PDF invoice without structured invoice data is an “other invoice”. That does not automatically mean it is invalid. A PDF can also contain structured XML data, as in a typical hybrid ZUGFeRD invoice. The classification therefore depends on the data it contains and the format rules, not only on the PDF view.