Skip to content
PDFBetter

How-to · Converting

How to open an XML invoice you received by email

By the PDFBetter teamPublished 5 min read

Short answer

To open an XML invoice, drop the .xml file (or the PDF it came in) on PDFBetter's e-invoice viewer: it lays the data out as a normal invoice with parties, lines, VAT and the IBAN, and checks the sums against the EN 16931 rules. It runs in your browser, so nothing is uploaded, and with a free account you can download a readable PDF and a spreadsheet for your records.

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 (6)

Why did my supplier send an XML file instead of a PDF?

Because the invoice is now data, not a picture of a page. Germany has required every business to be able to receive e-invoices since 1 January 2025, and France requires every VAT-registered business to be able to receive them from 1 September 2026. Suppliers who switched their billing software to e-invoices send structured files that accounting systems read field by field, so nobody has to retype the amounts.

Double-click that file and you usually get a browser tab full of tags, or a code editor that asks which program to use. Nothing is broken: the file holds the same facts as a paper invoice, in a format meant for software. You just need something that turns the tags back into an invoice a person can read.

  • A plain .xml file is either CII (the UN/CEFACT format behind ZUGFeRD, Factur-X and one flavor of XRechnung) or UBL 2.1 (the format behind Peppol and the other flavor of XRechnung).
  • A PDF that looks normal may carry the XML inside it. That is a hybrid invoice, called ZUGFeRD in Germany and Factur-X in France.
  • The file name often gives it away: xrechnung.xml, factur-x.xml, or a long number with .xml at the end.

How do you read the invoice in a few seconds?

  1. 1

    Save the attachment

    Download the .xml or the PDF from the email to your computer. There is no need to rename it.

  2. 2

    Open the viewer

    Go to the E-invoice viewer and drop the file on the page. Both XML syntaxes and hybrid PDFs are recognized automatically.

  3. 3

    Read the Invoice tab

    Seller and buyer with addresses and VAT IDs, invoice number and dates, every line with quantity, unit and net price, the VAT breakdown, totals and payment details. Codes like C62 or HUR are shown as words such as “piece” and “hour”.

  4. 4

    Look at the Checks tab

    Each finding names an EN 16931 rule and says in plain words what doesn't add up. If nothing is red, every check that applies passed.

  5. 5

    Download what you file

    A readable PDF for your folder, an Excel workbook or CSV for bookkeeping, the original XML, and any attachments the supplier embedded, such as a timesheet.

Say a cleaning company sends you an XML for March: 4 office cleanings at €180, one window cleaning at €240, 19% VAT. The viewer shows the two lines, €960.00 net, €182.40 VAT and €1,142.40 due, with the IBAN and the 14-day payment term written out. That is the moment you can approve it, the same way you would a PDF.

What should you check before you pay an e-invoice?

The same things as on paper, plus a few that only structured data lets you check quickly. The viewer runs the arithmetic for you; your job is the business side.

  • Is it really for you? Your legal name, address and VAT ID in the buyer block, and your purchase order or buyer reference if you gave one.
  • Do the lines match what you ordered? Quantity, unit and price per line. Units matter: “10 hours” and “10 pieces” look alike in a code.
  • Do the sums hold? The checks compare the lines with the net total (BR-CO-10), the VAT per rate with the VAT total, and the amount due with everything above it.
  • Is the VAT category plausible? Reverse charge or intra-EU supplies need a VAT ID on both sides and a 0% rate; the checks flag a mismatch.
  • Where does the money go? The IBAN is checked for valid check digits. Compare it with the bank details you have on file before paying a new one.

Quote the rule when you push back

If a check shows an error, send the supplier the rule ID it names, for example BR-CO-15. Their software will know exactly which field to fix, and you avoid a long email thread.

Which file do you keep for your records?

Keep the original file you received, unchanged, in your accounting system or archive. For an e-invoice the structured data is the invoice, so the XML (or the hybrid PDF with the XML inside) is what counts for tax purposes. The readable PDF you download from the viewer is a copy for reading, printing and approval, and its footer says so.

Many small businesses keep both side by side: the original for the books, the readable copy for whoever approves payments. If your bookkeeper wants the numbers in a spreadsheet, the Excel download has an Invoice sheet, a Lines sheet and a VAT sheet with real numbers and dates. For long-term storage of the readable copy, you can turn it into an archival PDF with Convert PDF to PDF/A.

What if the file still won't open?

Most problems come from the file, not from your computer, and each one has a quick fix.

Common messages and what to do
What you seeWhat it meansWhat to do
“This PDF has no embedded e-invoice XML”An ordinary PDF invoice, not ZUGFeRD or Factur-XRead it with the Invoice converter, or ask the supplier for the e-invoice
The PDF asks for a passwordThe file is encryptedRemove the password with Unlock PDF, then drop it again
An older ZUGFeRD 1.0 fileA pre-2017 format with a different XML structureAsk the supplier for ZUGFeRD 2.x, Factur-X or XRechnung
“The XML contains a DOCTYPE”Real e-invoices never use one, and such files can be used to attack XML readersAsk the sender for a standard export from their billing software

For a German public-sector invoice in XML, the XRechnung viewer opens the same tool with the German rules in focus. For a PDF you suspect has data inside, the ZUGFeRD and Factur-X viewer shows which profile it uses.

Try E-invoice viewer 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 open an XML invoice in Word or Excel?

Word shows the raw tags. Excel's XML import flattens the nested structure, so line values lose their context. A viewer that knows the e-invoice formats is faster and keeps every line intact.

Is the supplier's invoice uploaded anywhere?

No. The viewer reads the file in your browser tab, so supplier invoices stay on your device, and you don't need an account.

Do I need special software to receive e-invoices?

You need a way to receive the file (usually email) and a way to read and store it. Many accounting tools read e-invoices directly; if yours doesn't yet, the viewer covers reading and checking while you keep the originals in your records.

Are the checks a full official validation?

They are PDFBetter's structural checks of the EN 16931 rules that can be computed from the data, plus the German XRechnung rules. The official KoSIT validator additionally checks every code list and the XML schema.

Can PDFBetter receive invoices for me through Peppol or a French platform?

PDFBetter reads and creates the files. Receiving through Peppol or a French approved platform happens in the platform you or your accountant chose; you can then open the files you get there in the viewer.

Sources

  1. German Federal Ministry of Finance: FAQ on the e-invoice — bundesfinanzministerium.de, checked
  2. impots.gouv.fr: Je passe à la facturation électronique — impots.gouv.fr, checked
  3. Entreprendre.Service-Public.fr: How to prepare for the e-invoicing obligation? — entreprendre.service-public.gouv.fr, checked
  4. PDFBetter help: Read, check and create e-invoices — pdfbetter.com, checked