Read e-invoices and export them to Excel

European e-invoices arrive as XML (XRechnung, Peppol) or as a PDF with the XML attached (ZUGFeRD, Factur-X). Drop one or many here to see what they say and to get header fields, lines and VAT into one workbook.

This tool reads e-invoices. It does not create, change or validate them. To issue an e-invoice you need invoicing software; here you can only look at what a file you received says, and take it out.

Your file never leaves your browser.How to check that
No file at hand?

From an e-mail: save the attachment to Files first, then choose it here.

Nothing is uploaded

The file is read in your browser and the result is made on your device. No upload, no account, no cookie, no analytics script.

To check, switch off Wi-Fi once the page has loaded; the tool keeps working. The page's security policy blocks most background requests, but it is not a complete guarantee by itself (WebRTC, for example, is not covered). Privacy page

Which e-invoices does this read?

What you haveWhat it isRead here
An XML file whose top element is Invoice or CreditNoteUBL 2.1: XRechnung, Peppol BIS Billing 3 and other EN 16931 invoicesYes
An XML file whose top element is CrossIndustryInvoiceUN/CEFACT CII: XRechnung, or the XML of a ZUGFeRD / Factur-X invoiceYes
A PDF with an attached factur-x.xml, zugferd-invoice.xml or xrechnung.xmlZUGFeRD 2 / Factur-X, profiles MINIMUM to EXTENDED and XRECHNUNGYes, the attached XML (EXTENDED: fields beyond EN 16931 are counted, not shown)
A PDF with an attached ZUGFeRD-invoice.xmlZUGFeRD 1.0 (2014)Yes, with fewer sums compared
A PDF without an attached XML fileAn ordinary PDF: the picture of an invoiceNo. There is no text recognition
FatturaPA, EDIFACT, ebInterface, orders (Order-X, UBL Order)Other formats and other documentsNo. The tool says that it does not read the file, and why

The format is recognised from the content of the file, never from its name.

Where is the XML in a ZUGFeRD or Factur-X PDF?

In the PDF's list of attached files. Drop the PDF above: the tool shows the invoice from the attached XML and offers "Save the original XML from the PDF (unaltered)", byte for byte as stored in the PDF. The visible page of the PDF is not read and is not compared with the XML. The profiles MINIMUM and BASIC WL carry totals only, and the tool says that they have no invoice lines.

How do I read many e-invoices at once?

Drop everything together: XML files, PDF files and ZIP archives, in any mix. Each invoice becomes one row on the sheet "Invoices", each invoice line one row on "Lines", each row of the VAT breakdown one row on "VAT". Every row names its source file and the invoice number.

Credit notes and corrections

The document type is at the top of the view and on every row of the sheets, always with its code: for example "Credit note (381)" or "Corrected invoice (384)". Amounts are written as the file states them. No sign is changed. A credit note normally states its amounts without a minus sign although it reduces what the buyer owes, so if you net invoices against credit notes in one total, look at the document type column. When a batch holds both, a note says so.

What does this tool work out, and what does it not check?

It works out whether the amounts a file states fit together: whether the line net amounts give the stated line total, whether line total minus allowances plus charges gives the total without VAT, whether the VAT amounts of the breakdown give the stated VAT, whether net plus VAT gives the total, and whether that minus what was already paid gives the amount due. The result reads "adds up", "does not add up" with both figures, or "not compared" when the file does not state what is needed. For ZUGFeRD 1.0 only three of these comparisons are made; for the MINIMUM profile the last one is left out.

That is all. This tool

For a formal check there are public services: the e-invoice validator of the German state of Baden-Württemberg and the validator software of KoSIT. The German tax administration offers its own viewer, "E-Rechnung ansehen" in ELSTER. Our view is a reading aid: the invoice is the original file.

Which columns does the workbook have?

The workbook has six sheets. The columns are fixed: the same ones in the same order for XRechnung and ZUGFeRD, for one invoice and for many; empty columns are kept. Date cells are real dates and amounts real numbers; quantities, prices and VAT rates keep exactly the digits the file has. Invoice numbers, IBANs and VAT IDs are text. Beside each column is the number of the field in the European standard EN 16931 ("BT" for one field, "BG" for a group), where the column shows a field of the invoice.

Sheet "Invoices"

ColumnField of the standard
Source filefrom this tool
Document typeBT-3
Invoice numberBT-1
Invoice dateBT-2
SellerBT-27
Seller VAT IDBT-31
Seller tax numberBT-32
BuyerBT-44
Buyer VAT IDBT-48
Buyer reference (Leitweg-ID)BT-10
CurrencyBT-5
Sum of line net amountsBT-106
Sum of allowancesBT-107
Sum of chargesBT-108
Total without VATBT-109
Total VATBT-110
Total with VATBT-112
Paid amountBT-113
Rounding amountBT-114
Third-party payments (XRechnung extension)BG-DEX-09
Amount dueBT-115
Due dateBT-9
Payment termsBT-20
Payment meansBT-81
IBAN / accountBT-84
BICBT-86
Account holderBT-85
Remittance informationBT-83
Mandate referenceBT-89
Creditor identifierBT-90
Purchase order referenceBT-13
Sales order referenceBT-14
Contract referenceBT-12
Project referenceBT-11
Preceding invoiceBT-25
Delivery dateBT-72
Invoice period fromBT-73
Invoice period toBT-74
VAT accounting currencyBT-6
Total VAT in accounting currencyBT-111
Seller addressBG-5
Seller contactBG-6
Buyer addressBG-8
PayeeBT-59
Buyer accounting referenceBT-19
NotesBT-22
Lines in the filefrom this tool
Formatfrom this tool
Profilefrom this tool
Specification identifierBT-24
Sums (our arithmetic)from this tool
Same invoice number infrom this tool
Fields not shownfrom this tool
Reading remarksfrom this tool

Sheet "Lines"

ColumnField of the standard
Source filefrom this tool
Invoice numberBT-1
Document typeBT-3
LineBT-126
Sub-line of-
Line kind (ZUGFeRD EXTENDED)-
ItemBT-153
Item descriptionBT-154
Seller's item numberBT-155
Buyer's item numberBT-156
Item identifier (e.g. GTIN)BT-157
QuantityBT-129
Unit codeBT-130
UnitBT-130
Net priceBT-146
Price base quantityBT-149
Gross priceBT-148
Price discountBT-147
Line net amountBT-131
CurrencyBT-5
VAT categoryBT-151
VAT rate %BT-152
Line period fromBT-134
Line period toBT-135
Order line referenceBT-132
Buyer accounting referenceBT-133
Allowances and charges on the linefrom this tool
Line noteBT-127
Item attributesBG-32
Country of originBT-159

Sheet "VAT"

ColumnField of the standard
Source filefrom this tool
Invoice numberBT-1
Document typeBT-3
Other tax type (not VAT)-
VAT categoryBT-118
Category in wordsBT-118
VAT rate %BT-119
Taxable amountBT-116
VAT amountBT-117
CurrencyBT-5
Exemption reasonBT-120
Exemption reason codeBT-121

Sheet "Allowances and charges"

ColumnField of the standard
Source filefrom this tool
Invoice numberBT-1
Levelfrom this tool
LineBT-126
Allowance or chargeBG-20, BG-21, BG-27, BG-28
AmountBT-92, BT-99, BT-136, BT-141
CurrencyBT-5
Base amountBT-93, BT-100, BT-137, BT-142
PercentageBT-94, BT-101, BT-138, BT-143
ReasonBT-97, BT-104, BT-139, BT-144
Reason codeBT-98, BT-105, BT-140, BT-145
VAT categoryBT-95, BT-102
VAT rate %BT-96, BT-103

Sheet "Files"

ColumnField of the standard
Filefrom this tool
Resultfrom this tool
Containerfrom this tool
Invoices readfrom this tool
Detailfrom this tool

Sheet "Notes"

ColumnField of the standard
Kindfrom this tool
Notefrom this tool

The sheet "Notes" lists every note about the batch first. When a note puts the completeness or the sums in doubt, "Notes" is the first sheet of the workbook; otherwise it is the last.

Text from the invoice stays text

Text cells are never written as formulas; in the CSV, text that begins with =, +, - or @ gets a leading apostrophe. In the view nothing from the file becomes a link, a picture or formatting. Attachments embedded in the XML are named with type and size only, and are neither shown nor saved. XML files with a DOCTYPE or entity declaration are not read, and neither are encrypted PDF files.

Limits

TidyImport is run by ArachnAI Inc., 9131 Keele Street, Unit A4, Vaughan, Ontario L4K 0G7, Canada.

Sample files

Every party, number and account in them is invented. The texts are German.

EN 16931-1 and its UBL 2.1 and UN/CEFACT CII bindings; KoSIT (XRechnung), FeRD (ZUGFeRD), FNFE-MPE (Factur-X); ISO 32000-1 for files attached to a PDF.