DEEN

Fakturai · German e-invoice API for ZUGFeRD/Factur-X and XRechnung · Free validator · Blog

Excel & CSV

How to convert an XRechnung to Excel (CSV)

Short answer: Upload the XRechnung to the free fakturai validator and click CSV for Excel below the invoice content. You get a table with one row per line item: invoice number, date, seller, buyer, quantity, unit price, net amount and VAT rate. It also works with ZUGFeRD PDFs, and you do not need an account.

Why Excel struggles with an XRechnung

An XRechnung is an XML file under EN 16931, written for software, not for people. Excel can import XML through Power Query (Data, Get Data, From File, From XML), but an XRechnung turns into many nested tables with namespaces and codes, such as C62 instead of piece or S instead of standard rate. Getting a usable list of line items out of that takes manual work.

The validator does that work for you: it reads the invoice and writes the fields into one flat table with plain column names.

Step by step

  1. Open the validator and upload the XML file or the ZUGFeRD PDF.
  2. The invoice content appears below the check result. Check that the invoice number and totals look right.
  3. Click CSV for Excel. The file is named after the invoice number, for example RE-2026-0042.csv.
  4. Open the CSV in Excel, LibreOffice Calc or Numbers.

On the English page the CSV uses commas and decimal points. On the German page it uses semicolons and decimal commas, which is what German Excel expects, so pick the language that matches your Excel. Dates are written as 2026-11-19. The file is UTF-8 with a byte order mark, so umlauts come through correctly.

What the table contains

Each row is one invoice line. The header fields repeat on every row so you can filter and sort:

Allowances and charges on the whole invoice are separate rows with row type Allowance or Charge, allowances negative. The net amount column therefore adds up to the invoice net total. We checked that against all 86 sample files of the official KoSIT test suite, in CII and UBL.

Bank details, payment terms and the VAT breakdown are not in the CSV. You see them in the invoice content and in the JSON download.

Converting many invoices

The validator takes one file at a time. For many files use the parse API POST /api/v1/parse: free, no account, no API key, 60 requests per hour per IP. This example reads an XRechnung and writes its line items to a CSV with jq:

jq -Rs '{content: ., content_format: "xml"}' invoice.xml \
  | curl -s https://fakturai.de/api/v1/parse \
      -H 'Content-Type: application/json' -d @- \
  | jq -r '.parsed as $p | $p.lines[]
      | [$p.number, $p.issue_date, $p.seller.name, .name, .quantity, .unit_price, .net_amount, .vat_rate]
      | @csv' > lines.csv

For a ZUGFeRD PDF, send the file base64-encoded with content_format pdf_b64. All fields are listed in the API documentation.

Limits

Frequently asked questions

How do I open an XRechnung in Excel?

Upload the XML file to the free fakturai validator and click "CSV for Excel" below the invoice content. The CSV opens in Excel as a table with one row per invoice line. No account needed, fair use 10 checks per hour.

Can't Excel open an XRechnung directly?

Excel can import XML through Power Query (Data, Get Data, From File, From XML). For an XRechnung that produces nested tables with namespaces and codes such as C62 instead of piece and S instead of standard rate. You don't get a usable list of line items without manual work.

Which columns does the CSV contain?

Invoice number, document type, issue date, due date, currency, seller and buyer with VAT ID, buyer reference, then per row: row type, line ID, item, description, quantity, unit, unit price net, net amount, VAT category and VAT rate. Document-level allowances and charges are separate rows, allowances negative, so the net amount column adds up to the invoice net total.

Does it work with ZUGFeRD PDFs?

Yes, if the PDF carries embedded XML, as ZUGFeRD and Factur-X do. Scanned invoices and PDFs without XML return no data; there is no OCR.

Can I convert many invoices at once?

The validator takes one file at a time. For many files use POST /api/v1/parse: free, no account, no API key, 60 requests per hour per IP. It returns JSON that a script or jq turns into CSV.

Is the spreadsheet enough for record keeping?

No. Under German rules (GoBD) the e-invoice has to be kept in its original format, meaning the XML file or the ZUGFeRD PDF with embedded XML. The CSV is a working copy for analysis, checks or imports.

Read next