Skip to content
PDFBetter

How-to · Converting

How to open an XRechnung or ZUGFeRD invoice in Excel

By the PDFBetter teamPublished 5 min read

Short answer

To open an XRechnung or ZUGFeRD invoice in Excel, drop the XML or the hybrid PDF on PDFBetter's e-invoice to Excel tool and download the workbook. You get three sheets, Invoice, Lines and VAT, with real numbers and dates, or a CSV of the lines with commas or semicolons. The file is read in your browser and checked before you download.

Do it now, without leaving this page

Drop a file here

or paste with Ctrl/⌘+V

Runs in your browser, so nothing is uploaded. Free with a free account: you see a preview first, the full result after signing in.

PDF · Word · Excel · PowerPoint · JPG · PNG · up to 400 MB

On this page (7)

Why doesn't Excel open an XML invoice properly?

Excel can import XML, but it doesn't know what an invoice is. An e-invoice nests data several levels deep: each line has its own quantity, unit, price, VAT category and rate, and the totals sit in a separate block. Excel's generic import flattens that tree, so you get dozens of columns with repeated header values, and the link between a price and its line is easy to lose.

Copying from a PDF viewer is no better. Numbers arrive as text, a German “1.234,50” turns into a date or a string, and every invoice takes ten minutes. Because an e-invoice already holds clean data, the better route is to export it straight from the XML.

How do you export an e-invoice to Excel?

  1. 1

    Drop the invoice

    An XRechnung (UBL or CII), a ZUGFeRD 2.x or Factur-X PDF with the XML inside, or a Peppol UBL file.

  2. 2

    Glance at the checks

    The invoice is shown and checked first, so you see straight away whether the lines add up to the totals.

  3. 3

    Pick Excel or CSV

    Excel gives you three sheets. CSV gives you the lines only, with commas or with semicolons.

  4. 4

    Open it

    Quantities, prices and amounts are numbers, dates are dates. Sums and pivot tables work without cleaning.

What ends up in each sheet?

The three sheets of the workbook
SheetOne row perColumns include
InvoiceInvoiceFormat, number, dates, seller and buyer with VAT IDs, references, every total, IBAN, payment terms
LinesInvoice lineLine ID, item number, item, description, quantity, unit code and its name, net price, price base quantity, net amount, VAT category and rate, note
VATVAT category and rateTaxable amount, VAT amount, exemption reason

Take a building supplier's ZUGFeRD invoice with 23 lines across 19% and 7% VAT. The Lines sheet has 23 rows you can filter by VAT rate or sort by amount; the VAT sheet has two rows that should match the invoice's VAT total. If they don't, the Checks tab already told you which rule failed before you downloaded.

Each line's net amount already includes its own allowances and charges, as EN 16931 defines it. Discounts or surcharges on the whole invoice show up in the totals on the Invoice sheet.

Comma or semicolon: which CSV should you pick?

Pick the separator your Excel expects. English-language Excel and most import tools read commas. German, French and other European Excel versions use the comma as the decimal separator, so they expect semicolons between columns.

Amounts keep a decimal point in CSV

CSV amounts are written exactly as in the XML, with a dot as the decimal separator, for example 1234.50. That keeps imports exact. If your European Excel shows them as text, use Data → From Text/CSV and set the decimal separator to a dot, or use the Excel download, where numbers are already typed.

If you import into bookkeeping software, the Lines CSV is usually the file to map: one row per line with item, quantity, net amount and VAT rate. Build the column mapping once and reuse it for every invoice from then on.

How do you double-check the totals in Excel?

The viewer's checks already compare lines, VAT and totals, but many bookkeepers like to see the arithmetic in their own sheet before posting. Because every amount is a real number, three formulas are enough.

  • Net total: =SUM of the net amount column on the Lines sheet should equal the line total on the Invoice sheet.
  • VAT per rate: =SUMIFS of net amount by VAT rate, multiplied by the rate, should match each row of the VAT sheet, give or take a cent of rounding.
  • Amount due: the tax-inclusive total minus any prepaid amount should equal the payable amount on the Invoice sheet.

If a supplier charges you the same items every month, keep their Lines sheets in one workbook and compare unit prices month to month. A price that crept up from €42.00 to €44.50 is easy to spot in a filtered column and easy to miss on a printed page.

Cost accounting works the same way. Add a column for your cost center or project next to each line, then pivot by that column. Since the line's VAT category and rate travel with it, you can split a mixed invoice, say office supplies at 19% and books at 7%, across two accounts without retyping anything.

Keep the XML as the original

The workbook is a working copy of the data. File the XML or the hybrid PDF you received in your records, and keep the spreadsheet for analysis and posting.

What about PDF invoices without XML?

Plain PDF invoices have no data inside, only text on a page. For those, the Invoice to Excel tool reads the page with AI-native extraction and gives you the fields and lines in a spreadsheet, with each value tied to where it appears. The Invoice converter reads up to ten PDF invoices at once and can also export a QuickBooks Online or Xero bill import.

When the invoice is an e-invoice, prefer the XML route described here: there is nothing to recognize, so every amount is exactly what the supplier's system wrote. To read the invoice as a document rather than a table, open it in the E-invoice viewer, which is the same tool with the readable view first.

Try E-invoice to Excel on your own file.

No account needed to start, and tools that run in your browser never upload your file. Keep going on the free plan, or pick a plan when you need more.

Questions people ask

Can I export several e-invoices into one sheet?

The export works one invoice at a time. Download each workbook and combine the Lines sheets, or use Power Query's folder import to stack them.

Is the invoice uploaded?

No. The XML is read in your browser tab and the workbook is built there, so the data never leaves your device.

Does it work for credit notes?

Yes. UBL CreditNote files and CII credit notes export the same way, with the document type shown on the Invoice sheet.

Are unit codes translated?

The Lines sheet keeps the original unit code, such as HUR or C62, for imports, and adds its name next to it, such as hour or piece.

Is the export a DATEV or QuickBooks import file?

It is a clean, typed copy of the invoice data. Map its columns once in your bookkeeping software's CSV or Excel import and reuse that mapping.

Sources

  1. PDFBetter help: Read, check and create e-invoices — pdfbetter.com, checked