E-Invoicing

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

June 14, 2026 · 5 min · zrapp.group · Updated September 30, 2026

ZUGFeRD combines a readable PDF view with structured XML data. XRechnung specifies German requirements based on the European EN 16931 standard and is transmitted as XML. Choosing a format depends on version, profile and recipient requirements as well as file type and readability.

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.
  • XRechnung and suitable ZUGFeRD profiles meet structured e-invoice requirements. For ZUGFeRD, version and profile matter: MINIMUM and BASIC-WL are insufficient.
  • 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.

The difference goes beyond the file container. XRechnung implements EN 16931 as a German Core Invoice Usage Specification (CIUS) with additional business rules. ZUGFeRD offers profiles of different scope. Not every profile contains the complete compliant invoice dataset.

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 automatic invoicing with belegio, it's a practical middle ground between readability and automation.

According to German Ministry of Finance guidance, ZUGFeRD versions from 2.0.1 generally qualify, except the MINIMUM and BASIC-WL profiles. Attaching arbitrary XML to a PDF does not create a compliant e-invoice. Check the exported profile and validate its dataset.

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 widely used for German public-sector recipients. B2G also requires checking the particular recipient’s routing ID (Leitweg-ID), transmission channel and accepted version. A compliant ZUGFeRD document can also be accepted depending on the recipient; a public authority does not automatically mean XRechnung exclusively.

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: XRechnung specifies EN 16931; ZUGFeRD must use a suitable compliant version and profile.
  • File extension: ZUGFeRD = .pdf · XRechnung = .xml.
FeatureZUGFeRDXRechnung
FormatHybrid: PDF with embedded XMLPure XML
Human-readableYes (PDF view)Using an XML viewer
Typical useGeneral B2BInvoices to public authorities (B2G)
StandardSuitable EN 16931 versions and profilesEN 16931 with German CIUS rules
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.

Sources and review basis

The following sources explain the requirements and features discussed in this article. When setting up your store, also check the requirements of your specific use case.

Frequently asked questions

Is ZUGFeRD or XRechnung better?

It depends on the recipient. ZUGFeRD provides a PDF view but needs a suitable version and profile. XRechnung includes German additional rules and is commonly required by public authorities. Check their routing ID and transmission channel too.

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. You need a suitable structured dataset. The MINIMUM and BASIC-WL ZUGFeRD profiles are excluded. Arbitrary XML embedded in a PDF is insufficient too.

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
E-Invoicing
Shopify E-Invoice Mandate: Phased Timeline 2025-2028
E-Invoicing
Receiving and Sending E-Invoices in Shopify B2B
E-Invoicing
Creating Credit Notes and Cancellations Correctly in Shopify
Start a project →