E-Invoicing

ZUGFeRD vs XRechnung: Which E-Invoice Format Do You Need?

June 14, 2026 · 6 min · zrapp.group

ZUGFeRD vs XRechnung is the core question the moment you deal with e-invoices. Both are valid e-invoice formats under the EN 16931 standard, but they differ fundamentally in structure: ZUGFeRD is a PDF with embedded XML, XRechnung is pure XML. This article explains only the difference between the formats, not the mandate and not how to receive them.

Key takeaways
  • ZUGFeRD is a hybrid format: a human-readable PDF with an embedded XML dataset. XRechnung is pure XML with no visible PDF view.
  • Both comply with the European standard EN 16931 and therefore count as a structured e-invoice under the law.
  • XRechnung is the standard for public sector buyers (B2G). ZUGFeRD is popular in B2B because people can still read the PDF.
  • For pure B2B sending you can choose freely; what matters is that your recipient can process the format.

What actually is an e-invoice?

An e-invoice is not simply a PDF you send by email. A true e-invoice contains the invoice data in a structured, machine-readable format that software can read and post automatically. The relevant benchmark is the European standard EN 16931, which defines which fields must exist and in what structure.

ZUGFeRD and XRechnung are both implementations of exactly this standard. They define the same semantic data core: invoice number, delivery date, tax rates and the mandatory details required under § 14 UStG. The difference lies only in the container that transports this data.

ZUGFeRD: the hybrid format (PDF + XML)

ZUGFeRD stands for the central user guide of Germany's electronic invoicing forum. It is a hybrid format: the file is an ordinary PDF/A-3 with an XML dataset invisibly embedded inside it. When you open it, you see the familiar invoice as a PDF, while accounting software reads the XML in the background.

This dual nature is exactly what makes ZUGFeRD popular in B2B: people can still read or print the invoice on screen, while machines process the structured data automatically. When you create your Shopify invoices automatically, it's a practical middle ground between readability and automation.

XRechnung: the pure XML format

XRechnung is a pure XML format with no visible PDF layer. Open the file directly and you only see structured code, not a visually formatted invoice. To view it you need a viewer that translates the XML into a readable layout.

XRechnung is the national standard for invoices to public sector buyers (B2G) in Germany. So if you invoice authorities, agencies or other public bodies, you generally cannot avoid XRechnung. In purely private B2B it is also permitted, but less often requested, because the human-facing view is missing.

ZUGFeRD vs XRechnung: the differences at a glance

Both formats are technically equivalent under the EN 16931 standard; the choice depends on the recipient and the use case. The following points sum up the most important differences:

  • Structure: ZUGFeRD = PDF with embedded XML (hybrid) · XRechnung = pure XML.
  • Readability: ZUGFeRD is human-readable without a tool · XRechnung needs a viewer.
  • Typical use: ZUGFeRD mainly in B2B · XRechnung as the standard for public sector buyers (B2G).
  • Standard: both comply with EN 16931 and count as a structured e-invoice.
  • File extension: ZUGFeRD = .pdf · XRechnung = .xml.
FeatureZUGFeRDXRechnung
FormatHybrid: PDF with embedded XMLPure XML
Human-readableYes (PDF view)No (machine only)
Typical useGeneral B2BInvoices to public authorities (B2G)
StandardEN 16931EN 16931
ProcessingPDF + structured dataFully automatable

Which format should you choose as a Shopify merchant?

For the typical Shopify store with a B2B share, ZUGFeRD is usually the more pragmatic choice: your business customers receive a readable PDF, their software reads the structured data, both sides are served. XRechnung becomes relevant the moment you specifically supply public sector buyers.

The good news: whether your bookkeeping ends up in sevdesk or in Lexware Office changes nothing about the format principle. What matters is that your recipient can process the chosen format. When in doubt, just ask, or use a tool that handles both formats and lets you choose per invoice.

Frequently asked questions

Is ZUGFeRD or XRechnung better?

Neither is better in general; both comply with EN 16931. ZUGFeRD is a hybrid PDF that is human-readable and popular in B2B, XRechnung is pure XML and the standard for public sector buyers. It depends on the recipient.

Can I open an XRechnung as a PDF?

Not directly. An XRechnung is pure XML and shows only structured code when opened. To view it you need a viewer that translates the XML into a readable invoice.

Is a normal PDF already an e-invoice?

No. A plain PDF contains no structured, machine-readable data and does not count as an e-invoice under the standard. Only an embedded XML dataset (ZUGFeRD) or pure XML (XRechnung) turns it into an e-invoice.

belegio Logo

ZUGFeRD and XRechnung from Shopify

belegio creates your Shopify invoices automatically in the right e-invoice format—ZUGFeRD or XRechnung, you decide.

Discover belegio
Related articles
Invoicing
Create Shopify invoices automatically: legally compliant
Accounting
Connect Shopify to sevdesk: book orders automatically
Start a project