ZUGFeRD or XRechnung?

April 21, 2026

•

2

min

read

Updated on

April 22, 2026

Elisabeth Weber

Key Information About ZUGFeRD and XRechnung

XRechnung is now the primary standard for electronic invoicing in the public sector in Germany and serves as the foundation for automated, future-proof processes.

In Germany, e-invoices have long since become more than just a digitalization issue – they are increasingly mandated by regulation. Two terms come up particularly often in this context: ZUGFeRD and XRechnung.
Many companies are therefore asking themselves: ZUGFeRD or XRechnung – which format is the right one, and when?

In this post, we explain:

  • what ZUGFeRD and XRechnung are
  • what the difference between ZUGFeRD and XRechnung is
  • what role B2B and B2G play
  • and why technical aspects such as file size are also relevant

What is the ZUGFeRD format?

ZUGFeRD (Central User Guide of the German Electronic Invoicing Forum) is a hybrid invoice format.
It combines:

  • a PDF invoice for visual reference
  • with embedded XML data for machine processing

ZUGFeRD is primarily used in the B2B sector, as it enhances existing PDF-based invoicing processes without completely replacing them. For certain profiles, ZUGFeRD also complies with the European standard EN 16931.

Typical applications of ZUGFeRD:

  • Invoices between businesses
  • Transition from traditional PDF invoices to structured e-invoices
  • Scenarios in which visual readability remains important

What is the e-invoicing format in Germany?

XRechnung is a pure, structured XML format for electronic invoices.
Unlike ZUGFeRD, an XRechnung does not include a visual representation, but consists solely of machine-readable invoice data.

XRechnung was developed specifically for the exchange of invoices with public sector clients and is mandatory in many cases in Germany.

A detailed overview of the requirements, format, and legal background is available on our page on XRechnung.

Typical applications of XRechnung:

  • Invoices to federal agencies, states, and local governments
  • B2G transactions (business-to-government)
  • Automated, seamless invoice processing

ZUGFeRD vs. XRechnung – The Key Differences

A comparison of ZUGFeRD and XRechnung shows that while both formats comply with the same European standard, they are designed for different purposes.

Format and readability

  • XRechnung: pure XML format, fully machine-readable
  • ZUGFeRD: a hybrid format combining PDF and XML, also human-readable

Area of application

  • XRechnung: primarily B2G, often mandatory
  • ZUGFeRD: primarily B2B, especially in cases of minimal system integration or a focus on readability

Legal requirements

  • XRechnung: required in many cases
  • ZUGFeRD: usable, but not mandatory

File size and technical efficiency

One often underestimated difference between ZUGFeRD and XRechnung is the file size.

  • XRechnung consists entirely of structured XML data. The files are therefore very compact and are usually only a few kilobytes in size.
  • ZUGFeRD also includes a complete PDF version of the invoice. This results in significantly larger files, as layout information, fonts, and any graphics are included.

In practice, this difference is particularly relevant in the following cases:

  • high invoice volume
  • automated system-to-system processes
  • archiving and long-term preservation

For the public sector and highly automated processes, XRechnung is therefore often more technically efficient, while ZUGFeRD excels in the B2B environment, where readability is a key priority.

XRechnung or ZUGFeRD – which option is the right one?

There is no one-size-fits-all answer to the question “XRechnung or ZUGFeRD?”; it depends on the specific context:

  • Invoice to a German government agency?
    XRechnung is generally required.
  • Invoice to a business?
    ZUGFeRD or XRechnung are possible – depending on the agreement and system support.
  • Preparing for future regulations?
    Many companies are already adopting XRechnung, as it is increasingly regarded as the standard for future e-invoicing processes in the B2B sector.

It is important to note that the recipient decides which format is accepted.

Technical implementation: unified rather than fragmented

Regardless of whether ZUGFeRD or XRechnung is used, companies face similar challenges:

  • structured data provision
  • correct required fields and validation rules
  • integration with existing ERP and billing systems

Many companies therefore rely on standardized, automated e-invoicing solutions that cover both scenarios.

Our efsta XRechnung software shows how XRechnung can be implemented in practice.

Conclusion: ZUGFeRD or XRechnung?

  • ZUGFeRD is primarily used in simple B2B scenarios, but is less suitable for automated processes
  • XRechnung is the leading standard for B2G in Germany
  • Both comply with EN 16931, but differ significantly in structure and application
  • Technical factors such as file size and the degree of automation also play a role

Anyone who wants to set up future-proof e-invoices should take a holistic view of formats and transmission channels – rather than making decisions in isolation.