Factur-X vs ZUGFeRD vs XRechnung Explained
By DocoPDF Team · 2026-12-04 · 1388 words
Factur-X, ZUGFeRD and XRechnung are all European e-invoicing standards built around the EN 16931 data model. ZUGFeRD (Germany) and Factur-X (France) are hybrids: a CII XML file embedded inside a PDF/A-3, so one document serves human readers and accounting software. XRechnung is pure structured XML, built for machine delivery to public-sector portals, with no PDF layer at all.
What each standard is
ZUGFeRD — the German hybrid
ZUGFeRD is the German hybrid standard: a visually normal PDF invoice with the machine-readable XML attached, typically named zugferd-invoice.xml, inside a PDF/A-3 container. ZUGFeRD 2.x uses the same basic EN 16931 dataset as Factur-X, with profiles from MINIMUM through BASIC up to EN 16931 and EXTENDED.
Factur-X — the French counterpart
Factur-X is the French counterpart, built on the same technical basis, so files flow between both systems. The embedded file is named factur-x.xml, and an XMP metadata block in the PDF declares what readers look for: document type INVOICE, the file name, version 1.0 and the conformance level you choose (MINIMUM, BASIC or EN 16931). The attachment is marked /AFRelationship /Alternative: an alternative representation of the same document.
XRechnung — pure XML for machine delivery
XRechnung is the German federal standard for invoicing public-sector bodies. It is not a PDF at all: an XRechnung invoice is a structured XML document in UBL 2.1 or CII, aligned with the EN 16931 data model. You submit the XML itself through the receiving administration's portal; a PDF rendering, if you make one, is only for humans.
How the three standards compare
| ZUGFeRD | Factur-X | XRechnung | |
|---|---|---|---|
| Origin | Germany | France | German public sector |
| Container | PDF/A-3 | PDF/A-3 | None, plain XML |
| Data | CII XML attachment | CII XML attachment | UBL 2.1 or CII XML |
| Human readable | Yes, the pages | Yes, the pages | No, needs rendering |
| Machine readable | Yes, the XML | Yes, the XML | Yes, the whole file |
| Typical use | B2B PDF workflows | B2B PDF workflows | Public-sector portals |
The short version: ZUGFeRD and Factur-X are one idea under two names, and XRechnung is a different delivery model built on the same core data standard.
How to create each kind on your device
For ZUGFeRD and Factur-X the workflow is identical, because the embedded structure is the same:
- Start with your invoice as a PDF — for full compliance, one that is already PDF/A-3.
- Open the create electronic invoice tool and add the PDF plus your CII XML. No XML? A small form generates a sample EN 16931 document, totals computed.
- Pick the conformance level that matches your XML — MINIMUM, BASIC or EN 16931 — and run. The XML is embedded as factur-x.xml with the /AF entry, /AFRelationship /Alternative and the XMP block, the way Factur-X and ZUGFeRD 2.x readers expect.
- Check the result: PDF to e-invoice extracts the embedded XML byte-exact, and validate e-invoice runs structural and arithmetic checks, including a cross-check of the XMP conformance claim against the XML's actual completeness.
For XRechnung there is no PDF step — the XML is the deliverable. If you receive an XRechnung, or any CII or UBL 2.1 file, and need a readable copy, XML invoice to PDF renders it as a clean A4 document with parties, line items, tax rows and totals.
Every step runs entirely in your browser; the files never leave your device.
What these tools do — and what they don't
- The create tool embeds the CII XML as the Factur-X attachment and writes the XMP metadata. It does not convert your PDF to PDF/A-3 — no ICC profile or output intent is added. For a fully compliant file, start from a PDF/A-3.
- The stamp is your choice: a wrong conformance stamp gets a file rejected as quickly as missing data. Validate before you send.
- The validator checks the CII structure — root element, guideline, invoice number, date, type code, parties, line items — plus the three totals cross-checks (line nets, grand total and payable amount). It is not a full XSD schema validation, and it does not verify signatures.
- Nothing is submitted anywhere. Portals and transmission are your side; these tools prepare, render and check files locally.
Common mistakes to avoid
Assuming any PDF invoice is an e-invoice. A normal PDF is a picture of an invoice. In Germany, since January 1, 2025, VAT law only calls an invoice an e-invoice when it is issued in a structured electronic format following EN 16931 — a PDF without embedded XML does not qualify.
Confusing the visual PDF with the embedded XML. In a hybrid file, the pages you see and the XML attachment are separate objects. The XML is the authoritative payload — what portals and validators read. If the two disagree, the data layer wins.
Assuming ZUGFeRD and Factur-X are different formats. They share the same CII structure, the same profile ladder and the same PDF/A-3 attachment approach — two labels for one interoperable format. A reader built for one reads the other.
Treating a rendered PDF as an XRechnung submission. A rendered PDF is fine for archives and humans, but the portal needs the XML itself.
When you need which
- B2B invoicing in Germany and the EU: ZUGFeRD or Factur-X. Your customer's staff reads the PDF pages; their accounting system reads the embedded CII data. One file, both audiences.
- Invoicing German federal or public-sector bodies: XRechnung. The submission route expects structured XML aligned with EN 16931, delivered through the administration's portal rather than wrapped in a PDF.
- Unsure what arrived? Run the PDF through pdf-to-e-invoice: an embedded XML is extracted and summarized; a plain PDF gets an honest best-effort read of the layout, clearly labelled.
Frequently asked questions
Is a normal PDF invoice an e-invoice?
No. A normal PDF is human-readable only. An e-invoice carries structured data — embedded CII XML with ZUGFeRD and Factur-X, a standalone XML file with XRechnung. Without that data layer, a PDF is just a document.
Are ZUGFeRD and Factur-X the same?
Effectively, yes. Same hybrid idea — CII XML embedded in a PDF/A-3 — under two names, with profiles aligned to EN 16931. The attachment name differs (factur-x.xml versus zugferd-invoice.xml); readers accept both.
Can I check that my PDF really contains the XML?
Yes. The pdf-to-e-invoice tool reads the attachments inside your PDF on your device and downloads the embedded XML byte-exact. The validate-e-invoice tool extracts the XML from the PDF and runs its checks, including the conformance-claim cross-check.
Which conformance level should I pick?
Whichever level your XML actually matches. MINIMUM carries the core header and totals; higher profiles carry more of the EN 16931 core model. The XMP stamp must match the data — overstamping thinner content gets the file rejected.
Does XRechnung work inside a PDF?
No. XRechnung is built on UBL or CII XML and is not a hybrid — there is no PDF container in the format. You can render an XRechnung to PDF for reading, but the XML is what gets submitted.
Can I turn e-invoice XML into a readable PDF?
Yes. The xml-invoice-to-pdf tool parses both dialects — CII (the format of Factur-X, ZUGFeRD 1.0 and 2.x, and XRechnung-style CII) and UBL 2.1 — and paints a clean A4 PDF with selectable text. It is a visual rendering, not a validated e-invoice.
Build a hybrid e-invoice now
You don't need a server, an account or an upload to produce a Factur-X or ZUGFeRD-shaped file. Open the create electronic invoice tool, add your PDF and CII XML — or generate a sample EN 16931 document in the form — and embed the attachment with its XMP stamp, all in your browser. Then read it back and validate it before sending. Start with your invoice.