Skip to content

Guide

Convert an invoice to UBL XML (PDF to UBL)

Need your invoice as UBL instead of PDF, for example because a customer or government body asks for an e-invoice? This guide shows how to turn the invoice data into a valid Peppol BIS Billing 3.0 UBL file, and what a converter can and cannot do with a PDF.
Input
Browser JSON editor or REST API
Output
Peppol BIS Billing 3.0 UBL XML
Optional
Factur-X / ZUGFeRD PDF (EN 16931 profile)
Reads PDF files
Text extraction or English/Dutch OCR, with field review

Why you cannot just rename a PDF

A PDF shows the invoice as a picture of text. A UBL invoice stores every value, such as the VAT number, each line and the totals, in a fixed XML field, and the receiver checks that everything adds up. Tools that read a PDF have to guess those values, so the data still needs checking before it becomes a valid e-invoice.

Converting with InvokeXML

The browser converter reads text PDFs and scans with English/Dutch OCR (one invoice, up to 10 MB and 5 pages). Every proposed field must be reviewed and missing data completed before applying the JSON draft. The PDF stays in your browser; only reviewed JSON is sent when you press Convert. You can also import CSV data or download the CSV template. The REST API accepts one invoice as JSON per request, not PDF uploads. Common fields can be edited visually; advanced fields remain available in JSON. InvokeXML calculates the totals and VAT breakdown, checks the most common EN 16931 and Peppol rules, and gives you the UBL XML to download.

Want a PDF that people can read and software can process? The same invoice can also be downloaded as a Factur-X / ZUGFeRD PDF with the XML embedded, in the EN 16931 profile.

Checking an existing UBL file

Already have a UBL file from your accounting software? Upload it to the free validator. It lists each problem it finds with the field, the fix and the rule ID, such as BR-CO-15.

InvokeXML creates and checks the XML; it does not send invoices. To deliver an invoice over Peppol you need a Peppol access point. Many accounting packages include one, and you can upload the XML there.

General information, not legal or tax advice. Check the current rules with your accountant or the tax authority. All guides