Invoice to XML Converter

Convert any invoice to a structured PEPPOL BIS 3.0 UBL 2.1 XML file. Start from a PDF with AI OCR, fill in a guided form, or upload an existing XML to edit and re-export. Free for everyone, no signup needed for the basic generator.

Three ways to get to UBL XML

Pick the path that matches the source you have today.

A

From a PDF

Upload the PDF or scan, AI OCR extracts every field, you review and export UBL 2.1 XML. Best for converting legacy or supplier-provided invoices.

B

From scratch

Fill in a guided PEPPOL BIS 3.0 form β€” supplier, buyer, lines, VAT β€” and export. No knowledge of UBL XML or PEPPOL specs required.

C

From existing XML

Upload an existing UBL XML invoice, edit any field in the visual form, and re-export. Useful for corrections, credit notes and template-based reuse.

What XML format does aiDoks generate?

The output is UBL 2.1 XML conforming to the PEPPOL BIS Billing 3.0 specification. PEPPOL BIS 3.0 is the European standard for cross-border e-invoicing, built on top of the EN 16931 norm. It defines which fields are mandatory, which are optional, the allowed code lists for currency, VAT category and unit of measure, and the business rules that calculations and dates must satisfy.

Practical consequence: the XML produced by aiDoks is accepted by the PEPPOL network and by every accounting platform that speaks PEPPOL β€” Xero, SAP, Odoo, Microsoft Dynamics 365, NetSuite, Standard Books, Merit Aktiva, Visma and many others. You can also send it directly to government tax portals that accept PEPPOL submissions.

Why XML, not PDF?

PDFs are visual layouts β€” they look the same to every reader, but a computer cannot reliably parse them. UBL XML is structured: every value has a named field with a known type, so accounting software can auto-create entries, match purchase orders, run tax reports and reconcile payments without human intervention. For B2G and increasingly B2B in the EU, structured XML is required by law.

Validation runs automatically

Every export is validated against PEPPOL BIS 3.0 / EN 16931 business rules. Errors are reported with the exact rule ID (BR-CO-13, BR-CO-15, BR-S-08 and so on) and a plain-English explanation. You can also run the standalone PEPPOL validator on any XML invoice you received from a supplier.

Invoice to XML: FAQ

Why convert an invoice to XML?

XML invoices in the UBL 2.1 / PEPPOL BIS 3.0 format are the only format accepted by the PEPPOL e-invoicing network and most EU government tax portals. Converting your invoice to XML lets you exchange it electronically with customers, public-sector buyers and accounting systems without any manual re-keying.

What is the difference between UBL XML and a PDF invoice?

UBL XML is a structured, machine-readable format β€” every field has a well-defined name and type, so software can process it automatically. PDF is a visual layout for humans. Both have a place: many businesses send the UBL XML for system processing alongside a PDF for human review.

Can I convert an existing PDF invoice to XML?

Yes. Upload the PDF to the AI OCR tool and aiDoks will extract the structured data, map it to PEPPOL BIS 3.0 fields, and let you export it as UBL 2.1 XML. You can also start from scratch with the free e-invoice generator if you do not have an existing PDF.

Is the XML compatible with my accounting software?

aiDoks generates UBL 2.1 XML that conforms to PEPPOL BIS Billing 3.0, the official European e-invoicing specification. Any accounting system or ERP that supports PEPPOL β€” including Xero, SAP, Odoo, Microsoft Dynamics, NetSuite, Standard Books, Merit and others β€” can import the XML directly.

Does converting to XML guarantee compliance?

Generation alone does not guarantee compliance. aiDoks runs the same EN 16931 / PEPPOL BIS 3.0 business-rule checks during generation and offers a dedicated validator. Run validation before sending and the tool will flag any errors or warnings with the exact rule ID so you can fix them.

Convert any invoice to UBL XML now

Start with the free generator β€” or sign up for a free account to unlock AI OCR.