Externe Inhalte
An dieser Stelle findest du externe Inhalte von YouTube. Durch Klick auf “Externe Inhalte laden” erklärst du dich damit einverstanden, dass dir externe Inhalte angezeigt werden. Dabei werden personenbezogene Daten an die Drittplattform übermittelt.
Weitere Informationen findest du in unserer Datenschutzerklärung und der Datenschutzerklärung von YouTube.

ZUGFeRD and XRechnung Explained: E-Invoice Formats in Germany

If you run a business in Germany, you will keep coming across two terms: ZUGFeRD and XRechnung. Both are formats for electronic invoices, and both meet the German e-invoicing rules. This guide explains what each format is, how it works and where it is used. It then shows how the two compare.

TL;DR
  • ZUGFeRD is a PDF with embedded XML data. XRechnung is a pure XML file made for public authorities.
  • Both follow EN 16931 and are valid e-invoices in Germany. Which one you use is up to you.
  • ZUGFeRD suits businesses and private customers. XRechnung suits public authorities.
  • A plain PDF is not enough. Receiving e-invoices has been mandatory since 1 January 2025. Issuing follows in 2027 for businesses with a turnover above €800,000 and in 2028 for everyone else. Private customers are not covered.
  • To read XML data or create XML invoices, you need a tool.

ZUGFeRD and XRechnung: two formats for the German e-invoice regulation

Since 1 January 2025, every business in Germany has to be able to receive e-invoices for B2B transactions. A simple PDF invoice no longer counts as an e-invoice. An e-invoice has to be a structured data set that software can read automatically. Invoices to private customers are not covered.

Two formats have become the standard in practice:

  • XRechnung: a pure XML file that only machines can read. It was developed mainly for invoices to public authorities.
  • ZUGFeRD: a hybrid format that embeds the XML data in a PDF, so people can read the invoice too.

Both formats follow the European standard EN 16931 and meet the German legal requirements. Let us look at each one in detail.

What is ZUGFeRD?

ZUGFeRD is a hybrid e-invoice format. It combines two components in one file:

  1. a machine-readable XML file, which is a structured text code
  2. a human-readable PDF that the XML data is embedded in

This combination makes ZUGFeRD very flexible. You can use it for business-to-business invoices (B2B) and for invoices to public authorities (B2G). Because people can read the PDF, you could even use it for invoices to private customers (B2C). One format covers all your customers.

The name is short for "Zentraler User Guide des Forums elektronische Rechnung Deutschland". In English, that is the central user guide of the German Forum for Electronic Invoicing.

Not every ZUGFeRD file is a valid e-invoice

ZUGFeRD comes in different profiles, which differ in how much data they contain. For the German e-invoicing obligation, you need version 2.0.1 or later, and the profile matters:

  • Valid as an e-invoice: BASIC, EN 16931 (formerly COMFORT), EXTENDED and XRECHNUNG
  • Not valid as an e-invoice: MINIMUM and BASIC WL, because they do not contain complete invoice data

One more point to keep in mind: the XML data is what counts. If the PDF and the XML ever differ, the XML is the legally relevant part.

Pros and cons of ZUGFeRD

Is ZUGFeRD the right format for you as an invoice issuer? This is what speaks for and against it.

Advantages Drawbacks
Readability: The PDF lets people read and process the invoice without special tools. Differences between XML and PDF: In theory, the data in the XML code and the PDF can differ. Without a tool that also reads the XML, this can cause problems.
Flexible use: You can use ZUGFeRD for B2B and B2G invoices. From version 2.1, it meets the requirements for invoicing the public sector. Technical requirements: To use ZUGFeRD properly, you usually need software that creates and processes the XML data for you.
Easy changeover: The switch is often simpler because the PDF stays part of the invoice. Complexity: The different profiles, such as BASIC and EN 16931, can be confusing.
Versatile delivery: You can send ZUGFeRD invoices through your invoicing software, by email, through interoperable data exchange or by upload and download. Strict validation: A file with an invalid profile or format errors can count as an ordinary invoice, which puts your customer's input VAT deduction at risk.
Your own design: You can design the PDF part with your logo and company colours.

In short, ZUGFeRD is a flexible solution for businesses that want to combine a familiar PDF invoice with machine-readable data.

What does a ZUGFeRD invoice look like?

On the surface, a ZUGFeRD invoice looks like any other PDF invoice. You see the usual layout with sender, recipient, line items, totals and VAT. The difference is hidden inside the file. ZUGFeRD uses the PDF/A-3 format, which allows other files to be embedded in a PDF. This is how the structured XML data travels inside the invoice.

To check whether a PDF is a ZUGFeRD invoice, open it in a PDF reader and look at its attachments. If an XML file is attached, the invoice contains ZUGFeRD data. Whether it counts as a valid e-invoice then depends on its profile.

What is XRechnung?

XRechnung is an e-invoice format that consists only of a clearly structured XML data set. It has no PDF or any other visual part, so people can hardly read it.

XRechnung was developed by KoSIT, the German Coordination Office for IT Standards, as the German version of the e-invoice. It meets all requirements of the European standard EN 16931. Since 2020, it has been the standard for invoices to public authorities in Germany.

The goal is an IT-supported process for sending, checking and processing invoices between different accounting systems. Like ZUGFeRD, XRechnung stores all invoice data in a defined schema at fixed places. The details of the issuer and the recipient therefore always sit in the same spot of the file. That allows different software systems to read and process invoices automatically, which saves time and reduces data entry errors.

You can send an XRechnung through a direct connection, through a third-party provider or through Peppol. Peppol is a network that makes it easier to exchange electronic documents, without media breaks and without changing systems.

What does an XRechnung look like?

An XRechnung does not look like an invoice at all. It is a plain XML file with no layout, logo or table. If you open it in a text editor or a browser, you see lines of code instead of a document.

In this code, every piece of invoice data has its own label and its own fixed place. That includes the details of the issuer and the recipient, the invoice number, the date, the line items, the amounts and the tax. Software reads these labels and processes the data automatically. People, however, need a tool that turns the code into a readable invoice.

This is roughly what the data looks like:

Why you need a tool to read an XRechnung

Tax adviser Daniel Kiriakou summed up the practical problem in a sevdesk webinar:

"With an XRechnung, you only get a data set. You cannot read it, so from now on you need a tool to make visible what is in the invoice. What is in it, and what do I owe my supplier or service provider?"

Daniel Kiriakou, tax adviser

For you and your customers, this means one thing: to read and process an XRechnung, you need software. That can be e-invoicing software or a free e-invoice viewer (available in German: XRechnung Viewer).

Pros and cons of XRechnung

Advantages Drawbacks
Standardised and compliant: XRechnung meets the requirements of EU Directive 2014/55/EU. That makes it the obvious choice for public sector clients in Germany. No visual part: Unlike ZUGFeRD, there is no PDF, so people cannot read it.
Automation: As a purely structured XML format, it is ideal for fully automated processing in accounting systems. Implementation effort: Using XRechnung requires modern IT infrastructure. The alternative is e-invoicing software that creates, sends and processes it for you.
Fewer errors: Automation and the absence of media breaks greatly reduce the risk of mistakes. Changeover effort: Businesses that used paper or PDF invoices so far need to adapt their processes.
Consistent structure: Every piece of information sits in the same place, so different systems can read it. Less user-friendly: Your customers need a tool to read it. This can slow down their processes, and you may get paid later.

In short, XRechnung is ideal for machine processing but not for human readers. It has been the standard for invoicing the federal government and public authorities since 2020.

ZUGFeRD vs XRechnung: which one is right for you?

Both formats meet the legal requirements, so the choice is yours. The easiest way to decide is to look at your customers and what they expect from an invoice.

  • Only public authorities and government bodies? Choose XRechnung. It is the standard made for e-invoices to the public sector. Requirements can differ between federal states and authorities, so check with the authority you invoice.
  • Mostly businesses? Choose ZUGFeRD. Software can read the XML data, and the PDF part is easy for people to open and check.
  • A mix of public sector clients and businesses? ZUGFeRD in version 2.1 or later can cover both.
  • Businesses and private customers? ZUGFeRD is a good choice here too. Businesses with accounting software process the XML data, and everyone else reads the PDF.

Here is a side-by-side comparison of the key differences:

Criterion ZUGFeRD XRechnung
Readable by people Yes (PDF part) No
Readable by machines Yes (XML part) Yes (fully XML)
Typical use B2B and B2G, in theory also B2C B2G, also possible for B2B
Meets the German e-invoicing obligation Yes, with a valid profile (EN 16931) Yes (EN 16931)
Processing effort Often lower, because the PDF is readable May be higher, because customers need special software to read it
Support in e-invoicing software such as sevdesk Yes, fully Yes, fully
Saves paper, postage and storage space Yes, if sent and archived digitally Yes
More efficient accounting Yes, through the machine-readable XML Yes

Tax adviser Daniel Kiriakou has a simple tip:

"Send ZUGFeRD. Whoever needs the XML file has it, and everyone else gets a nice PDF."

Daniel Kiriakou, tax adviser

When do you have to issue ZUGFeRD or XRechnung invoices?

The e-invoicing obligation applies in stages. The rules below cover invoices between businesses that are both based in Germany. Invoices to private customers (B2C) are not covered, so you do not have to issue e-invoices for them.

Date What applies
Since 1 January 2025 Every business in Germany must be able to receive and process e-invoices.
Until 31 December 2026 You may still issue paper invoices and other invoices, such as PDF invoices sent by email.
From 1 January 2027 Businesses with a total turnover of more than €800,000 in 2026 must issue e-invoices.
Until 31 December 2027 Businesses with a turnover of up to €800,000 in the previous year may still use other invoices.
From 1 January 2028 All businesses must issue e-invoices for domestic B2B transactions.

In practice, a plain PDF will no longer be enough in B2B once the transition period ends. A ZUGFeRD file with a valid profile still works, because it contains the structured XML data. Without a valid e-invoice, your customer can risk losing the input VAT deduction.

There are exceptions. For example, small businesses that use the German small business scheme (Kleinunternehmerregelung) do not have to issue e-invoices, but they still have to be able to receive them. Invoices up to €250 are also exempt.

If you want to turn an existing PDF invoice into an e-invoice, you can convert it with the right software.

Are XRechnung and ZUGFeRD mandatory?

Not as such. German law does not name a specific format. It requires an e-invoice: a structured electronic invoice that follows the European standard EN 16931 and that software can process automatically.

In practice, ZUGFeRD and XRechnung are the two formats in Germany that meet this standard. Other formats that comply with EN 16931 are possible in theory, but these two are the ones you will meet. You can choose either of them. Both are equally valid, and which one you use is up to you.

Two things are not optional:

  • A plain PDF is not enough. A PDF without structured data does not count as an e-invoice once the transition period ends.
  • A ZUGFeRD file needs a valid profile. MINIMUM and BASIC WL do not qualify.

If you invoice public authorities, check whether the authority prefers XRechnung.

How to create ZUGFeRD and XRechnung invoices with sevdesk

With sevdesk, you can create both formats in a few clicks. From creating to archiving, we make e-invoicing as simple as possible. Whether your customers are businesses or public authorities, your invoices follow the current German legal standards.

Here is what you get:

  • You enter your invoice data and choose your preferred format.
  • You send and process e-invoices according to the European standard automatically.
  • You do not have to deal with any technical details.
  • sevdesk saves your invoices digitally and makes sure no changes are made
  • You save a lot of time on bookkeeping and have more time for your business.

With sevdesk, you are ready for the future of invoicing in Germany. Create your first e-invoice in ZUGFeRD or XRechnung format today.

>>> Try sevdesk for free!

Summary

ZUGFeRD is a hybrid e-invoice format that combines machine-readable XML data with a PDF, so people can read it without extra tools. XRechnung is a pure XML format, developed for invoices to public authorities, that needs software to be read.

If you invoice businesses and private customers, ZUGFeRD is usually the better choice. If you invoice mostly public authorities or very large organisations, XRechnung is the safer pick. Both meet the European standard EN 16931.

FAQ: ZUGFeRD and XRechnung in Germany

How do I know whether I need ZUGFeRD or XRechnung?

For B2B invoices, you are free to choose. Both formats meet the European standard EN 16931. If you invoice public authorities, the right choice can also depend on the authority and the federal state, so check their requirements first.

What is the difference between ZUGFeRD and XRechnung?

An XRechnung is a pure XML file that people can hardly read. A ZUGFeRD invoice also contains an XML file but adds a PDF, so people can read and process it too.

Why do I have to issue ZUGFeRD or XRechnung invoices?

Germany is phasing in mandatory e-invoicing for B2B transactions between businesses based in Germany. Every business has had to be able to receive e-invoices since 1 January 2025. Issuing becomes mandatory step by step: from 2027 for businesses with a turnover above €800,000 and from 2028 for everyone else. These e-invoices must follow EN 16931, and in Germany the two main formats are ZUGFeRD and XRechnung. If you only invoice private customers, you do not have to issue e-invoices.

Do I need e-invoices for customers outside Germany?

The German obligation applies to transactions between businesses established in Germany. For customers in other countries, the rules of those countries or your agreement with the customer apply.

Can I still send PDF invoices?

For now, yes. Until 31 December 2026, you may still issue PDF and paper invoices. Businesses with a turnover of up to €800,000 in the previous year can keep doing so until 31 December 2027. From 1 January 2028, a plain PDF no longer counts as an e-invoice for B2B invoices in Germany. A ZUGFeRD file is still fine, because it contains the structured XML data.

Can I read an XRechnung without software?

Not in a useful way. An XRechnung is plain XML, so you can open it in a text editor, but you only see code. To read it as a normal invoice, you need e-invoicing software or an e-invoice viewer.

Which ZUGFeRD profile should I use?

Use the EN 16931 profile (formerly COMFORT) for most invoices. BASIC and EXTENDED are valid too. MINIMUM and BASIC WL do not contain complete invoice data, so they do not count as e-invoices.

Try sevdesk 14 days for free
2.900+
Reviews
4,3
Trusted