Open, read and convert ZUGFeRD and XRechnung to PDF
You receive an invoice as a ZUGFeRD PDF or as XRechnung XML, but a double click shows either a seemingly normal PDF or a wall of tags such as cbc:PayableAmount. Since 1 January 2025 all businesses in Germany must be able to receive e-invoices, including small businesses (Kleinunternehmer), so files like these arrive more and more often. This guide shows how to open both formats, make them readable, convert them to PDF when needed and store them correctly.
Short answer: A ZUGFeRD file is a PDF and opens in any PDF reader; the data sits invisibly inside it as the attachment factur-x.xml. An XRechnung is pure XML and shows only code when opened. You make it readable with a viewer, the KoSIT visualisation stylesheet (XSLT), your accounting software or a converter that creates a readable PDF copy. What you must keep is always the original XML file, not the PDF.Three things “open” can mean
Before you pick a tool, be clear about what you want to do. Wanting to open an e-invoice usually means one of three goals:
- View and read: you want to check amount, tax and line items, approve the invoice or forward it to colleagues, just as with a paper invoice.
- Validate: you want to know whether the file contains all mandatory fields of EN 16931 and is formally valid.
- Import: you want to take the data into your accounting and book it.
This article covers the first case in detail, including conversion to PDF. For validation read KoSIT Validator: checking files, for import Receiving and processing e-invoices.
Why an XRechnung does not look like an invoice
XRechnung is a pure data format based on the European standard EN 16931. It contains every detail of an invoice but no presentation: no fonts, no layout, no logo. This is intended, because the data should flow straight into accounting without retyping.
In daily work this is still impractical. Invoices have to be checked, approved, forwarded or matched against a purchase order. That needs a readable version, and the tools in the following sections provide exactly that.
Opening ZUGFeRD: as simple as a PDF
ZUGFeRD is a hybrid format. On the outside it is a normal PDF (more precisely a PDF/A-3); inside it carries a machine-readable XML file as an attachment. Therefore:
- Open the file in any PDF reader (Acrobat Reader, Preview on macOS, the PDF viewer in your browser).
- The invoice is displayed as usual and can be read and printed.
- The structured data stays invisible in the background and is read automatically by accounting software.
If you want to see the embedded XML, open the attachment list in your PDF reader (in Acrobat Reader via the paperclip icon). In ZUGFeRD 2.x and Factur-X the file is called factur-x.xml, in the older ZUGFeRD 1.0 it is ZUGFeRD-invoice.xml. You can save it and view or check it separately. More on how the two names relate is in Factur-X and ZUGFeRD.
Opening XRechnung: making pure XML visible
An XRechnung is not a PDF but a pure XML file (depending on the variant in UBL or CII syntax). A double click opens it in the browser or a text editor, and you only see nested tags such as . That is technically correct but hardly readable for people. You have four ways to make the invoice readable:
- Online viewer: you load the XML file into a viewer that displays the fields as a clear invoice view. The free viewer and validator does this directly in the browser without uploading the file to a server.
- Visualisation stylesheet (XSLT): KoSIT (the German coordination office for IT standards) publishes official XSLT stylesheets in the XRechnung project that turn the XML into a readable HTML view. You need an XSLT processor for this, so the route suits IT departments and software vendors best.
- Accounting software: DATEV, Lexware Office and sevDesk show an imported XRechnung in readable form.
- XML to PDF converter: it creates a readable PDF copy from the XML that you can forward, print or file for approval. The next section shows how.
Which tool shows what?
| Tool | ZUGFeRD PDF | XRechnung XML | Note |
|---|---|---|---|
| PDF reader | readable invoice | not possible | shows only the PDF view, not the XML |
| Browser / text editor | not useful | raw XML code | technical, not prepared for reading |
| Online viewer | readable fields | readable fields | prepared invoice view in the browser |
| XSLT stylesheet | (extract the XML first) | readable HTML view | official KoSIT visualisation |
| XML to PDF converter | (XML part only) | readable PDF copy | for forwarding, approval, printing |
| Accounting software | readable and bookable | readable and bookable | import and archiving at the same time |
Converting XRechnung to PDF: step by step
Many recipients look for a way to convert an XRechnung into a PDF. That makes sense as long as it is clear that the PDF is a readable copy for the human eye, not a valid e-invoice. You get a PDF via the print function of a viewer (“Print to PDF”), via the HTML view of the XSLT stylesheet or via a converter. With the free tool Convert XRechnung to PDF it works like this:
- Select the file: drag the XML file into the field. You can also select several invoices at once.
- The data is read: the tool reads sender, recipient, line items, tax rates, totals, payment terms, bank details and references such as order or delivery note number.
- Download the PDF: you get a clear PDF, with several files one PDF per invoice.
Which formats can be converted
| Format | Syntax | Supported |
|---|---|---|
| XRechnung | UBL | yes |
| XRechnung | CII | yes |
| ZUGFeRD / Factur-X (XML part) | CII | yes |
| PEPPOL BIS Billing 3.0 | UBL | yes |
| Credit notes (type 381) | UBL and CII | yes |
With a ZUGFeRD invoice the PDF is already part of the file. A converter only helps if you have just the XML part, for example because it was sent separately or saved from the attachment.
Attachments are kept
Many e-invoices contain embedded attachments such as proof of service, delivery notes, timesheets or proof of delivery. A plain text editor shows them only as a long Base64 block. In the tool mentioned above these attachments are listed in the PDF and included as file attachments; you open them in any common PDF program via the attachments panel.
Data protection: avoid uploads
Invoices contain names, addresses, bank details and prices. Many online converters upload the file to a server for this. Check where the processing takes place before you use one. With the tool mentioned above the XML file is read directly in your browser and the PDF is created there; nothing is transmitted and nothing is stored.
Archiving: the PDF adds to the original but does not replace it
What counts legally is the e-invoice you received, in its original form. Under the GoBD (the German principles for proper electronic bookkeeping, see archiving e-invoices) you must keep it unchanged and machine-readable, since 2025 for eight years (Bürokratieentlastungsgesetz IV, the fourth Bureaucracy Relief Act). A printout or a PDF created from the XML is not enough because the structured data is lost.
| You receive | You must keep | Allowed in addition |
|---|---|---|
| XRechnung (XML) | the original XML file | readable PDF copy, e.g. for approval or colleagues |
| ZUGFeRD / Factur-X | the PDF with embedded XML | printout or extracted XML for viewing |
So feel free to file the PDF as well, but never instead of the original file.
Opening is not checking
The fact that a file can be opened, read or converted to PDF does not mean it is valid. An XRechnung can look clean in the viewer and still break a business rule, for example a missing buyer reference or Leitweg-ID (BR-DE-15) or a sum of line amounts that does not match the lines (BR-CO-10). You only see such errors when you validate.
If you want to secure an incoming invoice before booking it, also check it with a validator. The free viewer and validator checks the EN 16931 mandatory fields in the browser; the full check with the official KoSIT rules is described in KoSIT Validator: checking ZUGFeRD and XRechnung files.
What if you have to send e-invoices yourself?
Opening concerns incoming invoices. For outgoing invoices between businesses in Germany: from 1 January 2027 companies with more than 800.000 € prior-year turnover must issue e-invoices, from 1 January 2028 all of them. Small businesses under § 19 UStG (German VAT Act) are permanently exempt from issuing them (§ 34a UStDV), but must be able to receive e-invoices.
If you do not want to recreate your existing PDF invoices, you can convert them, see Convert PDF to XRechnung. One pragmatic option is TaxLayer: you upload your finished PDF and get a ZUGFeRD or XRechnung file checked against EN 16931; the first two conversions per month are free.
Frequently asked questions
How do I open a ZUGFeRD invoice?
With any PDF reader. A ZUGFeRD file is a hybrid PDF; the machine-readable data sits invisibly inside it as the attachment factur-x.xml (in ZUGFeRD 1.0: ZUGFeRD-invoice.xml) and is read automatically by accounting software. You can see the attachment in the PDF reader's attachment list.
Why do I only see XML tags when I open an XRechnung, and how do I make it readable?
Because XRechnung is a pure data format without a built-in view. It becomes readable via a viewer, the KoSIT XSLT visualisation stylesheet, your accounting software or a converter. The free viewer and validator displays all fields directly in the browser.
Can I convert an XRechnung to PDF?
Yes, as a readable copy. The free tool Convert XRechnung to PDF creates a clear PDF from the XML file with sender, recipient, line items, taxes and payment details. That PDF is not a valid e-invoice, though.
May I archive the PDF instead of the XRechnung?
No. What counts legally is the original XML file, which under the GoBD you must keep unchanged, since 2025 for eight years. For ZUGFeRD you keep the PDF with the embedded XML. You may file a readable PDF copy in addition, never instead of the original.
Which formats can be converted to PDF?
XRechnung in UBL and CII syntax, the XML file from ZUGFeRD and Factur-X, and PEPPOL BIS Billing 3.0, in each case invoices and credit notes.
What happens to attachments in the XRechnung?
They are kept. Embedded attachments such as proof of service, delivery notes or timesheets are listed in the PDF and included as file attachments.
Is my invoice uploaded when I view or convert it?
Not with the tools linked here: the viewer and the PDF converter read the file in your browser and nothing is sent to a server. With other online converters, check where the processing takes place first.
Written with AI assistance and published by Carl R. Landauer. General information, not tax or legal advice. About the author