Glossary · Updated June 2026

ZUGFeRD vs XRechnung: hybrid PDF or pure XML

The difference fits in one sentence: XRechnung is pure XML, ZUGFeRD is a PDF with embedded XML. Both are valid e-invoices under EN 16931. The question is not which is better, but who receives the invoice and whether a human should be able to see it.

TL;DR

XRechnung = pure XML, no visible rendering, the governing format for B2G with the Leitweg-ID. ZUGFeRD = hybrid of PDF plus embedded XML, popular in B2B because the recipient gets a readable PDF. Both meet EN 16931. The ZUGFeRD XRECHNUNG profile also follows the XRechnung rules and is B2G ready. Vera produces both, validated before download.

The core difference

XRechnung is a pure XML file. It is made for machine processing, and without a viewer a person sees only code. ZUGFeRD, by contrast, is a PDF/A-3 that carries a complete, valid XML in the document. The recipient opens a normal PDF, the system reads the embedded XML in parallel. For the legal effect as an e-invoice the XML counts in both cases.

Side by side

AspectXRechnungZUGFeRD
Structurepure XML (UBL or CII)hybrid PDF/A-3 plus CII XML
Human-readableonly with a vieweryes, as a PDF
Typical useB2G, pure data handoverB2B, where a PDF is expected
Leitweg-IDmandatory for B2Gmandatory only in the XRECHNUNG profile
NormEN 16931EN 16931

When to use which

The XRECHNUNG profile in ZUGFeRD

ZUGFeRD from version 2.x has several profiles. The XRECHNUNG profile follows exactly the mandatory rules of the German XRechnung. A ZUGFeRD file in that profile is therefore also a compliant XRechnung in a PDF wrapper and suitable for B2G. Other profiles are EN 16931 compliant but do not automatically meet the B2G requirements.

Note: If you know Factur-X: ZUGFeRD and Factur-X are technically the same hybrid format, just with different origins (Germany and France). The Factur-X vs ZUGFeRD comparison has its own guide.

FAQ

What is the difference between ZUGFeRD and XRechnung?

XRechnung is pure XML, ZUGFeRD is a PDF with embedded XML. Both meet EN 16931, a human reads the PDF, a system the XML.

Which format do I need for German public bodies?

XRechnung with the Leitweg-ID. Many bodies also accept ZUGFeRD in the XRECHNUNG profile.

Which format is better for B2B?

Often ZUGFeRD, because the recipient gets a readable PDF plus the data. Pure data exchange also works with XRechnung.

Is ZUGFeRD an XRechnung?

Only in the XRECHNUNG profile. Other ZUGFeRD profiles are EN 16931 compliant but not necessarily B2G ready.

Does Vera produce both formats?

Yes, XRechnung as pure XML and ZUGFeRD or Factur-X as a hybrid PDF, each to EN 16931, validated before download.

XRechnung and ZUGFeRD from one tool

Vera produces pure XML and hybrid PDF to EN 16931, validated before download. You choose the format your recipient needs.

Create one now

Free for 5 invoices / month · Pro 29 € / month · 27 EU countries