ZUGFeRD or Factur-X invoice: extract the data into Excel

How to read the XML data inside a ZUGFeRD or Factur-X PDF and take it into Excel, which profiles carry the lines (MINIMUM, BASIC WL, EN 16931) and how to compare the PDF with the data.

ZUGFeRD and Factur-X: a PDF with the data inside

A ZUGFeRD invoice looks like an ordinary PDF. Inside the PDF (a PDF/A-3), though, is an XML file with the invoice data according to the European standard EN 16931, in the CII syntax. It is called factur-x.xml, in older invoices zugferd-invoice.xml, and in the XRECHNUNG profile xrechnung.xml. ZUGFeRD 2.x (Germany) and Factur-X 1.0 (France) are technically the same standard.

In Germany, ZUGFeRD from version 2.0.1 in the EN 16931 profile or higher is an accepted e-invoice; in the French reform, Factur-X is one of the three formats, alongside UBL and CII.

The profiles: which data the XML file holds

ProfileContents
MINIMUMHeader and totals only, no lines. Not an e-invoice in Germany; used for e-reporting in France.
BASIC WLHeader, totals and VAT, but no lines (“without lines”). Like MINIMUM, not an e-invoice in Germany.
BASICA simple invoice with lines.
EN 16931 (COMFORT)Everything in the European standard: the complete e-invoice.
EXTENDEDMore than the standard, for example for complex deliveries.
XRECHNUNGAn XRechnung inside the PDF, under the German rules.

With MINIMUM and BASIC WL, the individual lines are only in the picture of the PDF: the data holds the totals only.

The data in Excel in three steps

  1. Open e-invoices.it and drag the PDF of the ZUGFeRD or Factur-X invoice into the upload box, several PDFs or a ZIP archive work too.
  2. Choose Excel summary. The embedded XML file is read from each PDF; the PDF itself is not interpreted.
  3. You get an Excel file with the sheets Invoices (one row per invoice, with seller, buyer, totals and format), Lines (the invoice lines), VAT summary (VAT by category and rate) and Payments (due date, amount, IBAN).

The format column on the invoices sheet names the profile of each invoice, for example “ZUGFeRD / Factur-X EN 16931 (PDF + CII)”. For a MINIMUM or BASIC WL invoice the lines sheet stays empty.

Try it with a sample invoice

A made-up ZUGFeRD invoice with the XML data inside the PDF: open it with the PDF and the data side by side or create the Excel summary, or download the PDF and upload it yourself.

A ZUGFeRD invoice

Invoice RE-2025-1187 from a German cheese dairy to Bottega Alpina Srl: 4 lines, a VAT-exempt intra-EU supply (category K), paid by SEPA transfer. The PDF carries the data in the file factur-x.xml.

Download the sample PDF

Check that the PDF and the XML say the same

For the accounts, the XML data is what counts. With View and print the invoice opens with the PDF and the data read from the XML side by side: you can check line by line whether the PDF shows the same invoice as the data. The profile is shown at the top, under “Format”; for MINIMUM and BASIC WL a note says that the data holds the totals only.

And a PDF without XML?

An ordinary PDF, such as a scan or an invoice sent by email without embedded data, is not an e-invoice: there is no data to read. Uploaded on its own it is reported as unreadable; in a ZIP archive it is skipped.

What about validating the invoice?

e-invoices.it reads the invoice, it does not validate it: the rules of ZUGFeRD, Factur-X and XRechnung are not checked. The files are not stored.

Try it with your invoices

Free with no sign-up, up to 20 invoices at a time. Files are not stored.

Upload your invoices

More guides