XRechnung vs ZUGFeRD vs Factur-X: what is the difference?

Germany’s e-invoicing rules put three names in front of everyone who receives an invoice: XRechnung, ZUGFeRD and Factur-X. They are related, but a file in one format looks very different from a file in another.

Updated

On this page
  1. From difficult file to readable document.
  2. The three formats side by side
  3. How they relate
  4. Which one will you receive?
  5. What to check after opening
  6. How to recognise each format at a glance
  7. Choosing a format when you issue invoices
  8. Common mistakes to avoid
  9. If the document does not display as expected
  10. Questions about this file type.

From difficult file to readable document.

  1. Look at the file type

    A .xml file is a pure XML invoice such as XRechnung. A .pdf may be an ordinary PDF or a ZUGFeRD / Factur-X hybrid with XML embedded in it.

  2. Open the file in an invoice-aware reader

    In EU Docs the format is detected locally. For a hybrid PDF the app reads the embedded XML alongside the PDF preview; for XRechnung it presents parties, dates, lines, tax and totals.

  3. Keep what you received

    Store the original XML, or the original PDF for hybrids. Do not print and rescan a hybrid invoice, because that discards the embedded data.

The three formats side by side

The table summarises how they differ in practice.

XRechnungZUGFeRD / Factur-X
Looks likeXML only, no page layoutA PDF you can read and print
Structured dataThe file itselfXML embedded inside the PDF
Typical useGerman public-sector invoicing and structured B2B exchangeB2B invoices where people still want a readable PDF
Underlying standardGerman usage specification of the European norm EN 16931Hybrid profiles built on UN/CEFACT CII XML, aligned with EN 16931
Plain PDF viewer showsNothing usefulThe visual invoice

How they relate

All three express the same kind of business data: seller, buyer, invoice lines, tax and totals. XRechnung can use the UBL or CII XML syntax. ZUGFeRD and Factur-X are closely aligned Franco-German hybrid specifications that pair a PDF representation with CII-based XML, which is why many tools handle them together.

A filename alone cannot prove that an invoice conforms to a given profile. EU Docs reports the declarations it detects but does not certify conformity with every business rule.

Which one will you receive?

That depends on your supplier’s software and on the portal or network used. Public-sector buyers in Germany are the classic XRechnung recipients. Small suppliers often send a hybrid PDF because it works with ordinary mail. Whichever arrives, the mandate to be able to receive EN 16931 e-invoices in Germany has applied since 1 January 2025 according to the European Commission’s country factsheet.

What to check after opening

Compare supplier, invoice number, currency, VAT and the payable total with your order. EU Docs also checks EN 16931 arithmetic, required fields and identifier check digits, which helps catch typing errors, but these are not an official validation.

Export a readable PDF if you need to circulate the invoice internally. The original XML remains the authoritative record.

How to recognise each format at a glance

Open the file’s details. An XRechnung ends in .xml and is usually a few dozen kilobytes. A ZUGFeRD or Factur-X file ends in .pdf and is larger because it contains the rendered pages. If a supplier sends both a PDF and an XML with the same invoice number, the XML is typically the structured original and the PDF is the human-readable companion.

If you only have the PDF, check for an embedded attachment. A hybrid contains one, while a plain PDF does not. Our guide on seeing the XML inside a ZUGFeRD or Factur-X PDF walks through that.

Choosing a format when you issue invoices

If you are the sender, your recipient’s requirements decide. Public-sector buyers in Germany expect structured XML. Business customers often prefer a document they can open on any device. Ask which profile they can import before you choose, and test with one real invoice.

On the receiving side you do not choose: you need a way to read whatever arrives. That is the job of an invoice reader.

Common mistakes to avoid

Do not rename an XRechnung XML to .pdf. Do not print a hybrid PDF and send the scan, since the embedded XML disappears and the invoice is no longer a structured one. Do not assume that two files with the same invoice number are identical; compare totals.

Finally, remember that reading and checking an invoice is not the same as filing it. Follow your adviser’s guidance on archiving the original electronic invoice.

If the document does not display as expected

Keep the original filename and check that the download is complete. Renaming XML, P7M or ASiC files to PDF does not convert them. If a signed container opens, check the type of its extracted payload: it may be an invoice, PDF or another format requiring its own reader.

For an invoice, compare the document identifier, supplier, currency, tax and total with the original fields. Report an unsupported format with its non-sensitive format/version details; avoid sending private documents unless you choose an appropriate support channel.

Authoritative references

Official specifications and public-sector documentation used to check the terminology in this guide.

Questions about this file type.

Is ZUGFeRD the same as Factur-X?

They are closely aligned hybrid invoice specifications from Germany and France that pair a PDF with embedded XML. Tools commonly treat them together, but check your supplier’s declared profile when it matters.

Can I read an XRechnung in a PDF reader?

No. XRechnung is delivered as XML, so a normal PDF reader shows nothing. Use an invoice-aware viewer to see it as an invoice.

Do I have to open the XML inside a ZUGFeRD PDF?

For reading, the PDF is enough. For accounting systems the embedded XML is the structured source, which EU Docs shows next to the PDF preview.