
ZUGFeRD and XRechnung meet the needs for structured billing data in different ways. ZUGFeRD connects a visible PDF to embedded XML. XRechnung is usually a pure XML file. The direct comparison shows which format fits B2B invoices, authorities and existing processes.
ZUGFeRD is particularly suitable when a readable PDF invoice and machine-readable data are required in the same file. XRechnung is obvious when a public client or a structured recipient process specifies a pure XML invoice. Both formats can be based on EN 16931.
ZUGFeRD connects PDF and XML
A ZUGFeRD invoice is a PDF/A-3 file with embedded structured XML data. People see a familiar invoice, while software can process the embedded information automatically. This makes ZUGFeRD particularly attractive when business customers still expect a readable document.
The key is not only the PDF file extension. The embedded XML must be complete and fit the visible invoice image. Since the introduction of the new legal definition, the structured part is leading. Contradictions between the image and XML are therefore particularly problematic.
XRechnung is structured consistently
A XRechnung is usually transmitted as a pure XML file. It is designed for machine processing and does not contain a classic PDF invoice image. A viewer is required for readable display.
Public authorities often require XRechnung and additional information such as buyer reference or Leitweg-ID. Transmission channels and portal specifications can also play a role. Therefore, the requirements of the specific client must always be observed.
ZUGFeRD or XRechnung: the direct comparison
| Criterion | ZUGFeRD | XRechnung |
|---|---|---|
| File | PDF/A-3 with embedded XML | Pure XML file |
| Readability | Readable directly as PDF | Viewer required |
| Typical use | B2B and familiar PDF processes | B2G and highly automated processes |
| Structure | XML is machine-readable and decisive | XML is the full invoice document |
| Recipient request | Often pleasant for smaller companies | Commonly specified by authority or portal |
When ZUGFeRD is usually the practical choice
ZUGFeRD fits well if business customers expect a visible invoice image and want to process structured data at the same time. The sending by e-mail remains familiar. The document can be read without additional program and can still be read automatically.
For many small and medium-sized enterprises this is a gentle transition. The previous release process around the PDF can remain. Structured data and a technical examination are supplemented.
When XRechnung is close
XRechnung is often correct when a contracting authority requests the format or when the recipient specifies a pure XML process. Leitweg-ID, electronic address and business process identifier must fit correctly to the order.
A valid XML file alone does not guarantee acceptance. A portal can define additional rules or permissible transmission routes. Therefore, the order, contract documents and instructions of the recipient are decisive.
Structure, profiles and verification of a hybrid invoice explains the contribution Create ZUGFeRD invoice: format and example.
Can a company use both formats?
Yes. A service provider can use ZUGFeRD for commercial customers and create XRechnung for authorities. A common data set with a conscious selection of the output format is useful. Thus, invoice numbers, positions, tax data and payment information are not duplicated.
What matters with both formats
- All mandatory information must be included in the structured part.
- Tax rates, categories, sums and roundings must fit together.
- Performance descriptions shall be unambiguous and verifiable.
- The current format version and appropriate test rules must be used.
- The original file sent must be kept unchanged.
B-Mf-Fx for permitted formats, Forum electronic invoice Germany and KoSIT test configuration XRechnung. As of this post is the 15. August 2026.
Frequently asked questions
Is ZUGFeRD a real e-invoice?
Yes. ZUGFeRD can meet the requirements when using a suitable profile and the structured XML data are complete. The profiles of the MINIMUM and the BASIC WL do not meet the VAT requirements.
Is an XRechnung always an XML file?
XRechnung is a structured record and is usually exchanged as XML to CII or UBL-Syntax. It does not normally contain a PDF invoice image.
Do I need a Leitweg-ID for B2B?
In the B 2B area, no Leitweg-ID is required. For invoices to authorities, it may be necessary as a buyer reference.
Which format can create TabellenFaktura?
TabellenFaktura creates a ZUGFeRD hybrid calculation as PDF/A-3 or a XRechnung as XML and performs a technical check.