XRechnung or ZUGFeRD: The E-Invoice Formats Compared


XRechnung or ZUGFeRD? Both formats meet the requirements for structured electronic invoices, but they differ in structure and readability: XRechnung consists exclusively of structured XML data, while ZUGFeRD combines this data with a readable PDF file. Which format suits you depends mainly on the invoice recipient and your technical set-up. The deadline of 1 January 2027 adds time pressure: from then on, companies in Germany with a total turnover of more than €800,000 in the previous year must issue e-invoices. In this article, you will learn how the two formats differ, which obligations and deadlines apply, and what you should bear in mind when processing and archiving e-invoices.

Wiki article: XRechnung or ZUGFeRD.
Wiki article: XRechnung or ZUGFeRD.

What are ZUGFeRD and XRechnung?


ZUGFeRD and XRechnung are standardised formats for electronic invoices. Both are based on the European standard EN 16931 and allow invoice data to be transmitted in a structured form and processed automatically. They differ mainly in how the invoice information is structured and presented.

What is ZUGFeRD?

ZUGFeRD stands for ‘Zentraler User Guide des Forums elektronische Rechnung Deutschland’ (Central User Guide of the German Forum for Electronic Invoicing). The format was developed by the Forum elektronische Rechnung Deutschland (FeRD) and combines a visually readable PDF file with embedded structured invoice data in XML format.

This combination makes ZUGFeRD a hybrid invoice format: people can read the invoice as a PDF, while suitable software systems can automatically extract and process the XML data it contains. This requires the software in use to support the relevant ZUGFeRD profile. From a legal perspective, only the XML part counts; the PDF is for display only.

What is XRechnung?

XRechnung is an XML-based format for electronic invoices. It contains structured invoice data that suitable software systems can process automatically. The format itself does not include an additional PDF view.

The standard is operated and further developed by the Coordination Office for IT Standards (KoSIT) on behalf of the German IT Planning Council (IT-Planungsrat). XRechnung is particularly relevant for exchanging invoices with public-sector clients in Germany.

Why is structured invoice data important?

A conventional PDF invoice usually contains visually presented information that software cannot easily read in a structured way. In contrast, an e-invoice in the legal sense requires the invoice data to be available in a structured electronic format.

Formats such as ZUGFeRD and XRechnung make it possible to capture and check invoice information automatically and transfer it to accounting or ERP systems. This can reduce manual work steps and simplify the digital processing of invoices.

What is the difference between ZUGFeRD and XRechnung?


The most important difference between ZUGFeRD and XRechnung lies in the structure of the invoice. Both formats enable invoice information to be processed electronically, but they differ in how they are presented and where they are typically used.

ZUGFeRD vs XRechnung at a glance

FeatureZUGFeRDXRechnung
FormatHybrid format combining PDF and XMLStructured XML format
Legally relevant partEmbedded XML data; the PDF is for viewingXML data
Human readabilityDirectly readable via the PDF fileXML data is not easily readable without a suitable viewer
Machine processingVia the embedded XML dataVia the structured XML data
Typical useInvoicing between companies and other business partnersParticularly invoicing public-sector clients in Germany
Technical requirementsSoftware that processes the XML data and supports the ZUGFeRD profile usedSoftware that processes and, if necessary, displays the XML data
Invoice presentationPDF view with embedded invoice dataNo PDF view as part of the format

Readability and processing

ZUGFeRD has the advantage that the invoice can be displayed as a PDF and read by people. At the same time, the embedded XML data is available for automated processing. This can make exchanges easier between business partners who need both a visual representation and structured data.

With XRechnung, the structured data takes centre stage. Processing requires suitable software systems that can read the XML format and make the invoice information available, for example in an accounting or ERP system. An additional PDF file can be created outside the format, but it is not automatically part of the XRechnung.

Which format is suitable for which purpose?

When invoicing business customers, ZUGFeRD is often the practical choice because employees can read the invoice as a PDF as usual while the software processes the XML data at the same time.

XRechnung is the right choice if you supply public-sector clients. The requirements that apply in a specific case depend on the respective client. If a business partner requires a particular format, their requirement takes precedence.

Both formats can support digital invoice processing. The decisive factor is therefore not just the format, but also whether the software in use can correctly read, check and process the invoice data and make it available for archiving.

Shareflex® Invoice


Digital invoice processing with SharePoint and Microsoft 365

Shareflex Invoice supports your financial accounting throughout the entire process chain, from invoice entry and processing to archiving.

  • ✯ Keep track of all your deadlines and dates
  • ✯ Workflow-based invoice review and approval
  • ✯ Integrates easily with your existing ERP
Screenshot of the user interface of Shareflex Invoice, the software for incoming invoice processing with SharePoint and Microsoft 365.

What legal obligations apply to ZUGFeRD and XRechnung?


Since 1 January 2025, e-invoicing has applied in Germany to business transactions between domestic companies (B2B). A distinction must be made here: since 2025, all domestic companies have had to be able to receive e-invoices, while staggered transitional periods apply to issuing them. What is mandatory is the e-invoice as such, not a specific format. The German Federal Ministry of Finance explains the applicable rules in its FAQ on e-invoicing (in German).

What deadlines apply to companies?

DateWhat applies
Since 1 Jan 2025All domestic companies must be able to receive e-invoices. An email inbox is sufficient.
Until 31 Dec 2026Transitional rule for issuing invoices: paper invoices or, with the recipient’s consent, other electronic invoices such as simple PDF files remain permitted.
From 1 Jan 2027Companies with a total turnover of more than €800,000 in the previous year (2026) must issue e-invoices.
Until 31 Dec 2027Companies with a total turnover of no more than €800,000 in the previous year may continue to use the transitional rule.
From 1 Jan 2028E-invoices are mandatory for all domestic B2B transactions, unless an exemption applies.

Your turnover in 2026 therefore determines whether your company must issue e-invoices from January 2027. What counts is total turnover, not just the B2B share. There is no lead time between the end of the 2026 financial year and the deadline, so software and processes should be prepared now. In addition, a transitional rule applies in 2027 to invoices exchanged via EDI, subject to the recipient’s consent.

Who is exempt?

The obligation applies to transactions between domestic companies. Invoices to private customers or to recipients abroad are not covered. The following are also exempt from the obligation to issue e-invoices:

  • Small businesses under the German small business scheme (Kleinunternehmerregelung)
  • Tax-exempt transactions under Section 4 Nos. 8 to 29 of the German VAT Act (UStG)
  • Small-amount invoices (up to €250)
  • Invoices for travel tickets

However, small businesses have had to be able to receive e-invoices since 1 January 2025. They, too, need a suitable receiving channel and must process incoming invoices properly.

Which formats meet the legal requirements?

Not every invoice sent digitally is an e-invoice in the legal sense. Since 1 January 2025, a simple PDF file sent by email has been classed as an ‘other invoice’ (sonstige Rechnung) because it contains no structured invoice data.

ZUGFeRD and XRechnung meet the requirements for an e-invoice, provided the specific implementation complies with the specifications. ZUGFeRD is available in five profiles with different data scopes: MINIMUM, BASIC-WL, BASIC, EN 16931 and EXTENDED. According to the German Federal Ministry of Finance, all profiles from version 2.0.1 onwards meet the requirements except MINIMUM and BASIC-WL. These two profiles lack invoice line items and are only intended as booking aids. The EN 16931 profile is considered the standard choice for business transactions.

You should therefore check which profile your software generates. Technical validation helps to detect format errors as well as missing or implausible mandatory information at an early stage.

What applies to invoices to public-sector clients?

Separate rules apply to invoices to public-sector clients, independently of the VAT deadlines. At federal level, suppliers have been required to invoice electronically since 27 November 2020, generally as an XRechnung or in another format compliant with EN 16931. The invoice must contain the Leitweg-ID, the buyer’s routing identifier, which you receive from your client. Invoices are submitted via the federal government’s e-invoicing platform, via Peppol, by email or by manual upload. The German federal states regulate details themselves, such as the order value above which suppliers are obliged to invoice electronically. You should therefore clarify what your client requires before sending your first invoice.

How are ZUGFeRD and XRechnung created and processed?


For e-invoices to be processed smoothly, companies need to put the right technical prerequisites in place.

What software do companies need?

Creating and processing ZUGFeRD and XRechnung invoices requires software that supports the relevant format. It must structure the invoice data correctly and include the required information.

The requirements vary depending on the format and process used:

  • ZUGFeRD: The software must support the ZUGFeRD profile used and be able to correctly create or read the structured XML data.
  • XRechnung: The software must be able to generate, receive and process XML invoices in accordance with the applicable requirements.

Companies should also check whether the software can be integrated into their existing accounting system, ERP system or document management software. This allows invoice data to be transferred between the systems involved with as little manual re-entry as possible.

How can invoice processing be automated?

E-invoices contain structured data that suitable software systems can read automatically. This means that various work steps can be supported digitally: from receipt of the invoice through review to approval and handover to accounting.

A digital invoice process might include the following steps, for example:

  1. Invoice receipt: The e-invoice is received via a suitable transmission channel.
  2. Data processing: The software reads the structured invoice data and feeds it into the designated process.
  3. Review: The invoice details are checked. Depending on the system, formal checks and plausibility checks can also be automated.
  4. Approval: The invoice is forwarded to the responsible employees, who review and approve it in line with internal rules.
  5. Handover and archiving: The invoice data is passed on to downstream systems and the invoice is properly archived.

The extent to which these steps can be automated depends on the software used, the available interfaces and internal processes. AI-based methods are also increasingly being used in invoice processing. Find out more in our article ‘AI in accounting’.

What challenges arise during implementation?

Implementation is not just a question of file format. Common hurdles include different invoice formats, missing interfaces between applications and manual review and approval steps. Companies should therefore look not only at incoming invoices but also at invoicing, internal processing and archiving. The technical solution must fit the company’s requirements and take the legal requirements into account.

How must ZUGFeRD and XRechnung invoices be archived?


The archiving of electronic invoices must meet the legal retention requirements. A visually readable representation alone is not sufficient: at least the structured part must be preserved intact in its original form. An important framework is provided by the GoBD (German principles of proper management and storage of books, records and documents in electronic form, as well as data access).

What needs to be considered when archiving ZUGFeRD invoices?

With ZUGFeRD, the structured part is the embedded XML file. It makes sense to store the entire file, including the PDF component, unchanged so that the data can be read again at any time. A plain PDF copy or a printout is not sufficient.

What needs to be considered when archiving XRechnung invoices?

With XRechnung, the XML file is the invoice and must be retained in its original form. An additionally generated PDF view makes day-to-day work easier but does not replace the XML file.

What requirements must an audit-proof archive meet?

In particular, a suitable archiving solution should support the following requirements:

  • Immutability: Archived invoices must be protected against unauthorised changes.
  • Completeness: The relevant invoice data and components must be preserved in full.
  • Availability: The documents must be retrievable and accessible at all times during the retention period.
  • Traceability: Processing steps and relevant changes must be traceable in accordance with legal requirements.
  • Readability: The invoice information must remain comprehensible and analysable at a later date.

The technical implementation must suit the respective invoice format and business processes. Software alone does not guarantee GoBD compliance: proper configuration, internal processes and procedural documentation are also crucial. You can find more information in the articles ‘GoBD-compliant archiving’ and ‘Digital document storage and audit-proof archiving’.

How long must e-invoices be retained?

Since 1 January 2025, the statutory retention periods for invoices have generally been eight years; previously they were ten. The period can be extended as long as the documents are relevant for taxes that are not yet time-barred, and different periods apply to other documents. You should therefore review your deletion policies to ensure that invoices are not deleted too early.

Article ‘Audit-proof archiving with SharePoint’

Read our guest article by Markus Olbring, managing director of comdatis it-consulting GmbH & Co. KG, to find out how audit-proof archiving works with Microsoft 365 and SharePoint Online.

Processing ZUGFeRD and XRechnung with Shareflex


E-invoices only deliver real benefits when receipt, review, approval and archiving work together. With Shareflex, Portal Systems offers solutions based on Microsoft 365 and SharePoint that can be integrated into existing processes.

When choosing a solution, you should check whether it supports the invoice formats and structured data, validates invoices, archives the structured part unchanged and can be connected to your accounting system or ERP. We will be happy to show you what this looks like with Shareflex: find out more about digital incoming invoice processing and how you can make invoice processes in your company more efficient.

Conclusion: XRechnung or ZUGFeRD?


XRechnung and ZUGFeRD are two established e-invoice formats. Which format is right depends on your business partners, legal requirements and IT systems, and for public-sector clients on their specifications. More important than the choice of format is that you can receive, validate, process and archive e-invoices, and that you can also issue them in good time before your deadline. Here is what you should do now*:

  1. Ensure you can receive e-invoices: This has been mandatory since 2025; an email inbox is sufficient.
  2. Check your total turnover for 2026: It determines whether your obligation to issue e-invoices starts in 2027 or 2028.
  3. Check exemptions: Do the small business scheme, a tax exemption or the small-amount invoice rule apply to your transactions?
  4. Define the format for each recipient group: Public authorities and business customers often require different formats.
  5. Review your software and processes: Can your solution create, receive, validate and hand over e-invoices?
  6. Check your archive: Is the structured part retained unchanged for eight years?

Frequently asked questions about ZUGFeRD and XRechnung


No. ‘E-invoice’ is the umbrella term for invoices in a structured electronic format that enables automated processing. ZUGFeRD is one of these formats. An XRechnung is also an e-invoice. An ordinary PDF file without structured invoice data, on the other hand, is generally not considered an e-invoice in the legal sense.

No. Since 1 January 2025, it has been classed as an ‘other invoice’. With the recipient’s consent, it may still be used during the transitional periods: until 31 December 2026 for companies with a total turnover of more than €800,000 in the previous year, otherwise until 31 December 2027.

The recipient is the deciding factor. For public authorities and other public-sector clients, XRechnung is usually the right choice. Between companies, ZUGFeRD is often chosen because the invoice can also be read as a PDF. If your business partner specifies a format, follow their requirement.

A ZUGFeRD invoice can usually be displayed via its PDF component in a suitable PDF reader. However, appropriate software is required to process the embedded XML data. XRechnung consists exclusively of XML data and is not easily readable without a suitable viewer. For reliable checking and automated further processing, we recommend software that supports the respective format.

Small businesses under the German small business scheme are generally exempt from the obligation to issue e-invoices. However, since 1 January 2025, they have generally had to be able to receive e-invoices. They therefore need a suitable transmission channel and must process and retain incoming invoices properly.

At least the structured part must be retained unchanged and in its original form: the XML data for ZUGFeRD and the XML file for XRechnung. A PDF view alone is not sufficient. The retention period is eight years, and the invoices must remain available, readable and traceable.

*Legal information

The information in this article is provided for informational purposes only and does not constitute legal advice. In particular, it cannot replace individual legal advice that takes into account the specifics of each case. Where we report on cases, in particular court decisions, their outcome should not be taken as necessarily indicating a similar outcome in other cases.

We endeavour to select the information provided in this article with care and to update or supplement it as necessary. However, we cannot guarantee that the information in this article is up to date, complete or accurate. This applies in particular to changes in legislation or case law.

Any questions? I will be happy to answer them personally!


Portrait of Patrick Carl, Chief Sales Officer at Portal Systems AG.

Patrick Carl
Chief Sales Officer

Email: info[at]portalsystems.de

Portal Systems is Microsoft Solutions Partner Digital and App Innovation Azure.
The Microsoft Solutions Partner logo Data & AI Azure.
The ISO/IEC 27001 certificate for Portal Systems AG and SaaS Shareflex Solutions.
The BSFZ® seal for innovative research and development.
Seal ‘Practice partner for the dual study programme at IU International University (IU)’.