Skip to main content
Complyance is Officially Listed as a UAE Approved Accredited Service Provider
ZUGFeRD vs XRechnung: Differences & Decision Guide

ZUGFeRD vs XRechnung: Differences & Decision Guide

Swathy
Published on Jul 23, 2026
ZUGFeRD vs XRechnung: Differences & Decision Guide

Here is the question every company doing business in Germany eventually asks: should I use ZUGFeRD or XRechnung?

Short answer: it depends on who you are invoicing. Long answer: keep reading.

Both standards implement the European Norm EN 16931. Both are legally compliant. But they work in fundamentally different ways, and choosing the wrong one can get your invoices rejected at the door.

Key Takeaways

- ZUGFeRD = hybrid format (human-readable PDF + embedded machine-readable XML). Best for B2B.
- XRechnung = pure XML format. Required for B2G (invoicing German public sector).
- Both comply with EN 16931. They are not interchangeable in every scenario.
- ZUGFeRD has an XRECHNUNG profile that bridges both worlds.

ZUGFeRD in 30 Seconds

ZUGFeRD stands for "Zentraler User Guide des Forums elektronische Rechnung Deutschland." It is a hybrid e-invoicing format that embeds structured XML data (UN/CEFACT Cross Industry Invoice format) inside a PDF/A-3 document.

What this means: The invoice looks and behaves like a normal PDF. You can open it, print it, email it. But inside that PDF sits a machine-readable XML file that accounting software can extract and process automatically.

ZUGFeRD offers multiple profiles, ranging from MINIMUM to EXTENDED. Starting with version 2.0, ZUGFeRD is fully EN 16931-compliant at the EN 16931 (Comfort) profile and above.

ZUGFeRD is technically identical to the French standard Factur-X.

XRechnung in 30 Seconds

XRechnung is Germany's national standard for electronic invoices submitted to public sector entities. It is a pure XML format based on UBL 2.1 or UN/CEFACT CII.

What this means: An XRechnung has no visual representation. It is raw XML code. To read it, you need a viewer application.

XRechnung is the binding implementation of EU Directive 2014/55/EU for Germany's public sector. Since November 27, 2020, all suppliers invoicing German federal agencies must submit invoices in XRechnung format.

The Full Comparison Table: ZUGFeRD vs XRechnung

CriterionZUGFeRD (v2.0+)XRechnung
Format typeHybrid: PDF/A-3 + embedded XMLPure XML
Technical basis (syntax)UN/CEFACT CIIUBL 2.1 or UN/CEFACT CII
EN 16931 complianceYes (COMFORT profile and above)Yes (fully compliant)
Human readabilityYes (opens as a standard PDF)No (requires a viewer)
Machine readabilityYes, via embedded XMLYes, native XML standard
B2G suitability (federal)Only with XRECHNUNG profileYes, legally mandated
B2G suitability (state/local)Varies by stateYes, increasingly mandated
B2B suitabilityExcellentGood
Peppol compatibilityLimited (only XML portion is transmitted)Full Peppol support
Software supportVery broadBroad
File type.pdf (with embedded .xml).xml
Typical file size100 KB – 2 MB5 KB – 50 KB
Validation toolsZUGFeRD Validator, Mustang, KonikKoSIT Validator
Profiles / variantsMINIMUM, BASIC WL, BASIC, EN 16931, EXTENDED, XRECHNUNGNone (single unified standard)
Archival compliance (GoBD)PDF/A-3 is archival-readyXML archiving possible

When to Choose ZUGFeRD

1. Your recipients have mixed technical capabilities

Not every business partner runs software that can ingest raw XML. With ZUGFeRD, every recipient gets a readable PDF invoice.

2. You want a gradual transition to e-invoicing

ZUGFeRD is the perfect stepping stone. Your existing workflow stays intact.

3. Your invoicing is primarily B2B

ZUGFeRD gives you maximum flexibility for B2B transactions.

4. Archival compliance matters to you

ZUGFeRD's PDF/A-3 container meets GoBD requirements out of the box.

Pro tip: If you already use ZUGFeRD for B2B and need to start invoicing the public sector, just switch to the XRECHNUNG profile.

When to Choose XRechnung

1. You invoice the German public sector (B2G)

This is non-negotiable. Federal agencies require XRechnung.

2. You use Peppol as your transmission channel

XRechnung (UBL-based) is the preferred standard for Germany on Peppol.

3. Your recipients only process machine-readable data

Large corporations with fully automated AP workflows do not need a visual PDF.

4. File size and transmission efficiency matter

XRechnung files are 10-40x smaller than ZUGFeRD files.

Decision Flowchart: ZUGFeRD or XRechnung?

Step 1: Are you invoicing German public sector entities (federal, state, or municipal)?

  • Yes → Use XRechnung (or ZUGFeRD with XRECHNUNG profile). Move to Step 4.
  • No → Move to Step 2.

Step 2: Can all of your invoice recipients process raw XML files?

  • Yes → XRechnung works well. Move to Step 3.
  • No → Go with ZUGFeRD.

Step 3: Do you transmit invoices via Peppol?

  • Yes → XRechnung in UBL format is your optimal choice.
  • No → Either format works.

Step 4: Do you need to serve both B2B and B2G recipients?

  • Yes → ZUGFeRD with XRECHNUNG profile gives you the best of both worlds.
  • No → Stick with the format that matches your primary use case.

Can You Use Both? Yes, and Here Is How

ZUGFeRD and XRechnung are not mutually exclusive.

Since ZUGFeRD version 2.1, there is an XRECHNUNG profile. This profile generates a ZUGFeRD file where the embedded XML data fully complies with the XRechnung standard.

  • You produce one single document that functions as both a readable PDF and a valid XRechnung.
  • Public sector recipients can extract the XRechnung-compliant XML from the embedded data.
  • Business partners without XML processing capability see a normal, readable PDF.
Important caveat: Not all public sector portals accept ZUGFeRD with the XRECHNUNG profile. Always verify with the specific contracting authority.

Do's and Don'ts

DoDon't
Check your recipient's format requirements before choosingAssume every recipient can handle raw XML
Validate every invoice before sendingSend invoices without validation
Use XRechnung or ZUGFeRD XRECHNUNG profile for B2G invoicesSubmit ZUGFeRD BASIC or COMFORT to public sector portals
Implement dual-format capability if you serve both B2B and B2GLock yourself into a single format
Test with sample invoices before going livePush to production without end-to-end testing
Keep your software updatedIgnore version updates

Bottom Line

The ZUGFeRD vs XRechnung decision comes down to a simple framework:

  • Invoicing the public sector? → XRechnung (mandatory).
  • Invoicing businesses with varying tech maturity? → ZUGFeRD.
  • Invoicing both? → ZUGFeRD with XRECHNUNG profile.

Most companies operating in Germany end up implementing both formats.

Share

Frequently Asked Questions

ZUGFeRD is a hybrid format combining a human-readable PDF with embedded XML. XRechnung is a pure XML format designed exclusively for machine processing. Both implement EN 16931 but differ in file format, visual readability, and primary use cases.

No. They are distinct formats. However, ZUGFeRD's XRECHNUNG profile produces a hybrid document whose XML component fully complies with the XRechnung standard.

XRechnung has been mandatory for invoicing German federal agencies since November 27, 2020.

No. Many businesses use both formats in parallel: ZUGFeRD for B2B invoicing and XRechnung for B2G.

Both formats are actively maintained. ZUGFeRD has strong European traction beyond Germany. XRechnung is Germany's reference standard for the public sector.

ZUGFeRD is slightly more complex because it requires generating a PDF/A-3 document and embedding XML. The practical difference is minimal if you use established tools.

Technically, only the XML portion travels through Peppol. For Peppol, XRechnung in UBL format is the more natural choice.

For XRechnung, KoSIT provides the official validator. For ZUGFeRD, there is the validator at ferd-net.de plus open-source libraries like Mustang and Konik.

About the Author

Swathy

Swathy

Content Marketer

I’m a Content Marketer at Complyance, focused on e-invoicing. Over the years, I’ve created a wide range of content, including blog posts, whitepapers, and product guides, which have supported Complyance’s growth across markets such as the UAE and EU regions. My goal is to deliver content that is comprehensive, clear, accurate, and easy to understand, no matter how complex the topic.

Related Posts

Complyance Logo

One API for Global E-invoicing