Skip to content
FastTool

How to open a Peppol or UBL XML e-invoice in Excel

Opening a raw Peppol or UBL XML e-invoice directly in Excel cross-joins nested tax and line tags into duplicated rows and unreadable columns.

Updated · Uses the free UBL & Peppol e-Invoice XML Viewer, which runs in your browser

Short answer

Drop one or up to 25 XML e-invoices into UBL & Peppol e-Invoice XML Viewer. Check the printable sheet and EN 16931 arithmetic rules first. Choose Semicolon (;) if your regional Excel uses decimal commas, or keep Comma (,). Click Export Headers CSV for one summary row per bill and Export Line Items CSV for individual billed items without duplicated rows.

Open the UBL & Peppol e-Invoice XML Viewer

Why Excel multiplies rows on UBL XML files

An OASIS UBL 2.1 invoice stores several sibling repeating blocks under one root tag rather than a single flat grid:

How nested UBL 2.1 XML branches behave in Excel versus split CSV tables
UBL XML branch Direct Excel XML import behavior Clean two-table CSV mapping
cac:InvoiceLine Repeats once per cac:TaxSubtotal rate, doubling or tripling line amounts. Exported once per billed item inside Line Items CSV.
cac:TaxSubtotal Copies every VAT bucket across every product row, inflating SUM() totals. Summed cleanly into Tax_Total on a single Headers CSV row.
cac:AllowanceCharge Creates wide extra columns for document freight and line discounts alike. Separates document discounts and charges from per-line price adjustments.
cbc:InvoicedQuantity Drops or hides the unitCode attribute such as H87 or C62. Writes both raw Unit_Code and plain-English Unit_Label columns.

Four UBL and Peppol details spreadsheets miss

Even Power Query imports can misread standard e-invoice conventions unless you check four fields:

  • Document-level discounts and charges: header AllowanceCharge tags change TaxExclusiveAmount without appearing inside any InvoiceLine row.
  • Credit notes vs invoices: UBL credit notes (code 381) replace InvoiceLine with CreditNoteLine and CreditedQuantity.
  • Regional decimal separators: German, Swedish, and Turkish Excel installations split CSV columns on semicolons rather than commas.
  • Leading-zero item and routing IDs: double-clicking unformatted CSVs strips leading zeros from German BuyerReference codes and SKU numbers.

Worked example: multi-rate Peppol, XRechnung, and UBL-TR

Open UBL & Peppol e-Invoice XML Viewer to inspect how nested tags turn into clean spreadsheet rows:

  1. Check mixed VAT buckets. Sample invoice INV-2026-0418 combines two 19% lines, one 7% manual, a 50.00 EUR discount, and 30.00 EUR freight.
  2. Reconcile EN 16931 rules. All seven BR-CO-10 to BR-CO-16 checks confirm that 1,100.00 EUR net plus 194.60 EUR VAT equals 1,294.60 EUR.
  3. Batch monthly bills. Dropping up to 25 XML files exports one combined Headers CSV for accounts payable and one Line Items CSV for cost centers.
  4. Keep UTF-8 accents intact. Every downloaded CSV starts with a UTF-8 byte-order mark so Nordic, German, and Turkish supplier names open cleanly.

Try the German XRechnung Leitweg-ID example or open the Turkish UBL-TR 1.2 KDV example directly in your browser.

Converting to .xlsx or comparing monthly batches

Pair your exported e-invoice CSV tables with other spreadsheet utilities when preparing monthly books:

Common mistakes

  • Summing TaxExclusiveAmount across joined rows. Never sum header totals inside a flattened XML query where each invoice header repeats per line item.
  • Ignoring PrepaidAmount on XRechnung bills. Public-sector progress invoices deduct deposits from TaxInclusiveAmount, so check PayableAmount before scheduling a bank transfer.
  • Opening comma CSVs in semicolon Excel. Switch the delimiter dropdown to Semicolon (;) whenever all exported columns land inside column A.

Sources

Spotted a mistake in this guide? Email contact@fasttool.app. We reply within 7 business days.

Open the UBL & Peppol e-Invoice XML Viewer