Comparison

XRechnung vs. ZUGFeRD

Which e-invoice format is right for your business?

With Germany's e-invoicing mandate, businesses face a key question: XRechnung or ZUGFeRD? Both formats are EN 16931-compliant and legally approved — yet they differ significantly in their technical implementation, use cases and practicality.

This article compares both formats based on concrete criteria, explains when each format is appropriate and provides a clear recommendation for the B2B sector.

Side-by-Side Comparison

Technical and practical differences at a glance

CriterionXRechnungZUGFeRD
Data formatPure XMLHybrid: PDF/A-3 + embedded XML
European standardEN 16931 (CII or UBL)EN 16931 (CII profile, from v2.0.1)
Human-readableNo — requires viewerYes — PDF view included
Machine-readableYes — fullyYes — via embedded XML
Primary audiencePublic sector (B2G)B2B invoicing
Leitweg-IDRequired (for B2G)Optional
AttachmentsReferenced only (external files)Can be embedded in PDF
File sizeVery small (XML data only)Larger (PDF + XML)
ArchivingXML must be archivedPDF/A-3 is already archive-ready
Adoption in GermanyPublic sector, government contractorsBroad B2B adoption

XRechnung in Detail

The mandatory format for public sector invoicing

XRechnung was developed on behalf of Germany's IT Planning Council and has been the mandatory format for invoices to federal public administration since 2020. Most federal states have followed suit.

Advantages

  • Lean format: Pure XML without visual component — efficient and fast to process
  • Maximum machine-readability: No ambiguity between visual display and data
  • Standardised: Clear specifications with regular updates
  • Validation: Can be validated against the schema before sending

Disadvantages

  • No human-readable view: Without a viewer or ERP system, the XML file is unreadable for non-technical users
  • Leitweg-ID required: For B2G invoices, the recipient's routing ID must be known
  • Limited attachments: Additional documents can only be referenced, not embedded

When to use XRechnung: When invoicing public authorities, municipalities or government contractors where a Leitweg-ID is available. For pure B2B transactions, ZUGFeRD is usually the more practical choice.

ZUGFeRD in Detail

The hybrid format for everyday B2B use

ZUGFeRD combines the best of both worlds: a human-readable PDF and machine-readable XML data in a single file. This makes ZUGFeRD particularly practical, as recipients without e-invoicing software can still read the invoice.

Advantages

  • Dual use: Both humans and machines can process the same file
  • Easy adoption: PDF view lowers the barrier for recipients
  • Embedded attachments: Delivery notes, service records etc. can be included directly
  • Archive-ready: PDF/A-3 container format is suitable for long-term archiving
  • International: Compatible with Factur-X (France) — cross-border use possible

Disadvantages

  • Larger files: PDF + XML results in larger files than pure XML
  • Redundancy: Visual and structured data could theoretically diverge
  • Profile matters: Only "Comfort", "EN 16931" and "Extended" profiles are compliant — "Minimum" or "Basic" is not sufficient

When to use ZUGFeRD: For B2B invoicing, ZUGFeRD is the recommended choice. The PDF view simplifies adoption, and the format is suitable for both the German and European market.

Practical Recommendation

Guidance for choosing the right format

Public Sector Suppliers

If you invoice federal, state or municipal authorities, you need XRechnung. Many government portals accept only this format.

B2B Businesses

For business-to-business invoicing, ZUGFeRD is the pragmatic choice. Choose at least the "EN 16931" profile to meet legal requirements.

Businesses with Both Audiences

Use software that supports both formats. This way you can choose the appropriate format per recipient — without operating two separate systems.

Conclusion: For most businesses, ZUGFeRD in the "EN 16931" profile or higher is the best choice. It is practical, archive-ready and meets all legal requirements. XRechnung comes into play additionally when invoicing public administration.

Both Formats in One Solution

Docuflair Invoice supports XRechnung and ZUGFeRD — create, convert and validate e-invoices in a single workflow. Schedule a free demo.

Frequently Asked Questions

Answers to the most important questions about XRechnung and ZUGFeRD

Can I use both XRechnung and ZUGFeRD?

Yes. Both formats are EN 16931-compliant and approved for the e-invoicing mandate. Many businesses use XRechnung for public sector contracts and ZUGFeRD for B2B transactions. Docuflair Invoice supports both formats.

Is ZUGFeRD easier than XRechnung?

For the recipient, yes: ZUGFeRD includes a human-readable PDF view, so recipients without specialised software can still read the invoice. XRechnung is pure XML and requires a viewer or ERP system for display.

Do I need a Leitweg-ID for XRechnung?

For invoices to public administration (B2G), a Leitweg-ID (routing ID) is required. In B2B transactions, it is optional. The Leitweg-ID enables unique assignment of the invoice to the recipient within the administration.

See it live in 15 min

No obligation & free
Schedule Demo