Compare · XRechnung vs ZUGFeRD

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

XRechnung is a pure XML format required for German government invoicing, while ZUGFeRD is a hybrid format combining PDF and XML that works for both business and government transactions. Both comply with the European standard EN 16931, but they serve different purposes.

TL;DR

XRechnung: pure XML (UBL or CII), mandatory for German B2G, no visual layer. ZUGFeRD: PDF/A-3 with embedded CII XML, serves both human and machine readers. Use ZUGFeRD with the XRechnung profile to cover both B2G and B2B from a single output.

Side by side
FeatureXRechnungZUGFeRD
FormatPure XMLHybrid (PDF + embedded XML)
File Extension.xml.pdf
Human ReadableNo (requires viewer)Yes (standard PDF reader)
Machine ReadableYesYes (XML embedded in PDF)
Required ForGerman B2GGerman B2B (recommended)
Syntax OptionsUBL or CIICII only
EN 16931 CompliantYesYes (version 2.0+)
Peppol CompatibleYesRequires conversion
XRechnung

XRechnung is Germany's mandatory B2G e-invoice format — a pure XML file (UBL or CII) implementing EN 16931 plus 21 German-specific business rules. No visual layer: it requires a viewer or ERP import to read.

ZUGFeRD

ZUGFeRD is a hybrid PDF/A-3 format with embedded CII XML. Recipients open it as a normal PDF; accounting systems extract the structured data automatically. Profiles range from Basic to Extended, with a dedicated XRechnung profile for B2G compliance.

Key differences

File Format and Readability

XRechnung produces a pure XML file. If you open it in a text editor, you'll see code. To view it as a formatted invoice, you need an XRechnung viewer or accounting software.

ZUGFeRD produces a PDF that looks like a normal invoice. The XML data is embedded as an invisible attachment. Open it in Adobe Reader, and you see a professional invoice. Import it into your ERP, and the system extracts the XML.

Winner: ZUGFeRD for ease of use; XRechnung for pure automation.

Syntax (UBL vs CII)

The EU standard EN 16931 allows two syntaxes: UBL (Universal Business Language) and CII (Cross-Industry Invoice, UN/CEFACT).

XRechnung supports both. Most implementations use UBL because it's more common internationally and is the basis for Peppol BIS.

ZUGFeRD uses CII only. This is the same syntax as Factur-X (the French equivalent), making Franco-German trade easier.

Winner: XRechnung for flexibility; ZUGFeRD for Franco-German compatibility.

Target Use Case

XRechnung was designed specifically for B2G (Business-to-Government) transactions. It's mandatory for invoicing German federal authorities and most state governments.

ZUGFeRD was designed for B2B (Business-to-Business) but expanded to cover B2G with the XRechnung profile. It's the most common format for German private sector e-invoicing.

Winner: XRechnung for government; ZUGFeRD for everything else.

When to use which

XRechnung

  • Invoicing federal German government — It's mandatory
  • Invoicing state governments — Most require it (check specific state)
  • Your customers require it — Some large enterprises mandate XRechnung
  • Sending via Peppol — XRechnung (UBL) integrates seamlessly
  • Full automation is the goal — No PDF overhead

ZUGFeRD

  • You need human-readable invoices — Customers can open in any PDF reader
  • Diverse customer base — Works for B2B and B2G
  • Gradual transition from PDF — Familiar format for recipients
  • Trading with France — ZUGFeRD = Factur-X (same format)
  • Internal archiving — PDF is easy to store and retrieve
Can you use both?

Yes—and this is the recommended approach.

ZUGFeRD version 2.1.1 and later includes an "XRechnung" profile. When you create a ZUGFeRD invoice with this profile, it's fully compliant with XRechnung requirements.

This means:

  • Create one invoice format
  • Send to government as XRechnung-compliant
  • Send to businesses as ZUGFeRD
  • Keep human-readable PDF archive

Pro tip: Many accounting packages (Exact, DATEV, Lexware) can generate ZUGFeRD invoices with XRechnung profile automatically.

Upload your invoice and we'll detect the format automatically.

Checking is free. The first verified download every 30 days is free. After that €1.90 per invoice, or €9 a month for all of them.

Frequently Asked Questions

Can I convert XRechnung to ZUGFeRD?
Which format do I need for the 2025 mandate?
Is ZUGFeRD accepted by German government?
What's the relationship with Factur-X?
Do I need both for different customers?
Related