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.
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:
| 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
AllowanceChargetags changeTaxExclusiveAmountwithout appearing inside anyInvoiceLinerow. - Credit notes vs invoices: UBL credit notes (code
381) replaceInvoiceLinewithCreditNoteLineandCreditedQuantity. - 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
BuyerReferencecodes 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:
- Check mixed VAT buckets. Sample invoice
INV-2026-0418combines two 19% lines, one 7% manual, a 50.00 EUR discount, and 30.00 EUR freight. - Reconcile EN 16931 rules. All seven
BR-CO-10toBR-CO-16checks confirm that 1,100.00 EUR net plus 194.60 EUR VAT equals 1,294.60 EUR. - 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.
- 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:
- Save native .xlsx workbooks: drop your exported CSV into CSV Cleaner & CSV to Excel to keep leading-zero SKUs as text.
- Compare two monthly exports: match invoice IDs across two CSV runs in Compare Two Spreadsheets.
- Check supplier IBANs or PDF bills: extract lines in PDF Table Extractor, or check payment accounts in IBAN Validator.
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 checkPayableAmountbefore 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
- OASIS Universal Business Language (UBL) Version 2.1 (checked 30 November 2026), defining Invoice, CreditNote, InvoiceLine, and LegalMonetaryTotal schemas.
- OpenPeppol BIS Billing 3.0 Specification (checked 30 November 2026), detailing EN 16931 business terms and BR-CO monetary calculation rules.
- KoSIT XRechnung Standard (checked 30 November 2026), specifying German public-sector EN 16931 UBL rules and BuyerReference routing IDs.
- IETF RFC 4180 CSV Format Specification (checked 30 November 2026), covering quoted text fields, embedded commas, and CRLF record breaks.
Spotted a mistake in this guide? Email contact@fasttool.app. We reply within 7 business days.