ZUGFeRD: the hybrid PDF e-invoice, explained for developers
A ZUGFeRD invoice looks like any PDF invoice, but it carries the full invoice data as XML inside the file. People read the PDF, software reads the XML. This page covers what is in the file, which profile to pick, and how to check one.
Updated 20 October 2026 · Last reviewed 20 October 2026
In brief
ZUGFeRD is a hybrid e-invoice: a PDF/A-3 that people read, with the complete invoice data embedded as CII XML (factur-x.xml) that software reads. The current version is ZUGFeRD 2.5.2, technically identical to Factur-X 1.09.2. In Germany it counts as an e-invoice from version 2.0.1 in every profile except MINIMUM and BASIC WL.
What a ZUGFeRD file is
- A PDF/A-3 document (ISO 19005-3), the archival PDF flavour that allows embedded files.
- An XML attachment in the UN/CEFACT Cross Industry Invoice (CII) syntax, named
factur-x.xmlin current versions (ZUGFeRD 2.0 usedzugferd-invoice.xml, ZUGFeRD 1.0ZUGFeRD-invoice.xml). - XMP metadata in the PDF that declares the attachment's file name, the format version and the profile (conformance level).
ZUGFeRD is published by FeRD, the Forum elektronische Rechnung Deutschland, together with the French FNFE-MPE, which publishes the same format as Factur-X. The two are technically identical: a valid Factur-X file is a valid ZUGFeRD file of the same profile.
For invoices between German businesses the XML is the part that counts. The German Federal Ministry of Finance (BMF) states that if the PDF and the XML of a hybrid invoice differ, the data in the XML prevails (BMF FAQ, question 12a). A pretty PDF with a sloppy XML is a wrong invoice.
Versions
| ZUGFeRD | Factur-X | Status |
|---|---|---|
| 2.5.2 | 1.09.2 | Current. Published 4 August 2026, in use since 1 September 2026 (FeRD). |
| 2.5 | 1.09 | Published 10 June 2026, in the FeRD version archive. |
| 2.4 | 1.08 | Published 4 December 2025, in the FeRD version archive. |
| 2.0.1 – 2.3.3 | older 1.x releases | Older 2.x releases; minor versions are backward compatible. |
| 1.0 | – | 2014, different XML. Not accepted as an e-invoice under German VAT law. |
The BMF accepts ZUGFeRD from version 2.0.1 as an e-invoice. New releases mostly follow the EN 16931 code-list updates, which the European Commission publishes twice a year, so plan for a version bump every six months or so.
Profiles
The profile decides how much data the XML carries. It is declared in the XML's guideline identifier and repeated in the PDF metadata.
| Profile | What it carries | E-invoice in Germany? |
|---|---|---|
| MINIMUM | Header totals and parties, no invoice lines. Guideline ID urn:factur-x.eu:1p0:minimum. | No |
| BASIC WL | Document-level data, no invoice lines ("without lines"). urn:factur-x.eu:1p0:basicwl. | No |
| BASIC | Invoice lines, a subset of EN 16931. urn:cen.eu:en16931:2017#compliant#urn:factur-x.eu:1p0:basic. | Yes |
| EN 16931 | The full EN 16931 core invoice (formerly called COMFORT). urn:cen.eu:en16931:2017. | Yes |
| EXTENDED | EN 16931 plus extra fields, such as sub-lines for kits and bundles. urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended. | Yes |
| XRECHNUNG | A ZUGFeRD PDF whose XML follows the XRechnung rules. | Yes |
The "No" entries come straight from the BMF: XRechnung and ZUGFeRD from 2.0.1 meet the requirements, "with the exception of the profiles MINIMUM and BASIC-WL" (BMF FAQ, question 7). A validator will still say a MINIMUM file is valid, because it is valid for its profile; it just isn't an e-invoice in the legal sense.
Which profile to use: EN 16931. It carries everything the European standard defines, every receiving system understands it, and it is accepted in Germany and France. Use EXTENDED only when you need a field EN 16931 does not have, and XRECHNUNG when a German public-sector customer asks for it.
ZUGFeRD and the German mandate
Since 1 January 2025 every German business must be able to receive e-invoices; issuing them becomes mandatory in 2027 and 2028, depending on turnover. ZUGFeRD and XRechnung are both accepted for invoices between businesses. Dates, exceptions and sources are on the German e-invoicing mandate page, and the format choice is on ZUGFeRD vs XRechnung vs Factur-X vs Peppol BIS.
Checking a ZUGFeRD file
A complete check has four layers, and an error in any of them makes the file invalid:
- PDF/A-3: the PDF itself conforms (fonts embedded, colour profile present, no forbidden features). Checked with veraPDF.
- Metadata: the XMP block declares the attachment and the profile, and they match the XML.
- Schema: the XML matches the XSD of its profile.
- Business rules: the Schematron rules of the profile and of EN 16931, such as
BR-CO-15(total with VAT = total without VAT + VAT).
The typical failures and their fixes are on Validate a ZUGFeRD or Factur-X file. To see the XML inside a PDF, use the embedded XML viewer.
ZUGFeRD API
Invoir's validation API is live: POST the PDF and get a JSON report with every finding, its rule ID and its location in the XML.
curl https://validate.invoir.dev/api/v1/validate \
-H "Authorization: Bearer inv_YOUR_KEY" \
-F file=@invoice.pdf
POST /api/v1/extract returns the embedded XML. Both are in the API docs with examples in Node, Python, PHP and Go.
To create ZUGFeRD invoices, send the invoice as JSON to POST /api/v1/invoices with "profile": "zugferd" (or "factur-x"; it is the same format). You get a PDF/A-3 in your template with your logo and the XML embedded, at the EN 16931 profile unless you ask for another, plus the validation report. Totals and VAT are computed from the lines, and a document that would fail the official rules is never returned (generation docs, pricing).
curl https://validate.invoir.dev/api/v1/invoices \
-H "Authorization: Bearer inv_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"profile": "zugferd", "number": "RE-2026-0042", "issueDate": "2026-10-19",
"seller": {…}, "buyer": {…}, "lines": [ … ]}'
If you'd rather build it yourself, the open-source libraries are good: Mustang (Java), horstoeko/zugferd (PHP) and factur-x (Python). Invoir runs Mustang and veraPDF itself. What you take on is keeping the rule sets current and making the PDF/A-3 part pass.
Frequently asked questions
- What is the difference between ZUGFeRD and Factur-X?
- None in the file. FeRD in Germany and FNFE-MPE in France publish the same format under two names: a valid Factur-X file is a valid ZUGFeRD file of the same profile, and ZUGFeRD 2.5.2 is Factur-X 1.09.2.
- Which ZUGFeRD profile should I use?
- EN 16931. It carries the full European core invoice, every receiving system understands it, and it is accepted in Germany and France. Use EXTENDED only for fields EN 16931 does not have, and XRECHNUNG when a German public authority asks for it.
- Does a ZUGFeRD invoice meet the German e-invoicing mandate?
- Yes, from version 2.0.1, except the profiles MINIMUM and BASIC WL (BMF FAQ, question 7). ZUGFeRD 1.0 uses a different XML and is not accepted.
- If the PDF and the XML differ, which one counts?
- The XML. The German Federal Ministry of Finance states that the data in the XML prevails (BMF FAQ, question 12a), so render the PDF and the XML from the same data.
- How do I check a ZUGFeRD file?
- Four layers: PDF/A-3 conformance (veraPDF), the XMP metadata, the XML schema of the profile and the Schematron business rules. The free validator runs all four in the browser;
POST /api/v1/validatedoes the same over the API.
The free validator runs the official rules (KoSIT, CEN and Peppol Schematron, Mustang, veraPDF) and lists every error with its rule ID. Nothing is stored. The same check is one HTTP call with a free API key: 25 documents a month, no credit card.
Sources
- FeRD: ZUGFeRD 2.5.2 (English), release and effective dates.
- Bundesministerium der Finanzen: FAQ on the mandatory e-invoice, as of March 2026 (questions 7 and 12a).
- FNFE-MPE: Factur-X, profiles and the link to ZUGFeRD.