Converting an invoice between CII and UBL: what to check

A checklist to compare an invoice with its conversion: totals, lines, parties, payment, references.

  • Updated 24 October 2026
  • 3 min read
  • In English, French and German

In short

Before converting, keep the original and make sure you have the XML, not the PDF. After converting, compare the totals, the lines, the parties, the payment details and the references of the result with the source, then validate the result against the rules that apply to you. A conversion changes how the invoice is written, never what it says: a different amount or a missing line is an error.

Before you convert

  • Check what you have: a CII invoice (version D22B) or a UBL 2.1 invoice, as an XML file. A Factur-X PDF carries its CII file inside; the converter works on the XML, not on the PDF, so extract the XML first.
  • Keep the original file. A conversion is a copy.

Convert

Drop the file on the converter. It recognizes the format and offers the other one. You can also start from a page of its own: convert CII to UBL or convert UBL to CII.

What to compare afterwards

Look at the result next to your source and check:

  1. Totals: net, VAT and gross amounts, and the amount due. They must be identical.
  2. Currency, and the VAT accounting currency if there is one.
  3. Lines: the same number of lines, the same quantities, unit prices and VAT rates.
  4. Parties: names, addresses, VAT numbers and legal identifiers (SIREN, SIRET...) with their scheme.
  5. Payment: payment means code, IBAN, due date and payment terms.
  6. References: invoice number, dates, purchase order and contract references.
  7. Specification identifier (BT-24) and business process (BT-23): the platform that receives the invoice may require a particular value.
  8. Notes and attachments.

To find a field in the two files, use the field table: it shows where each one is in CII and in UBL.

An example

A CII invoice with two lines: 10 hours at 80.00 EUR and a licence at 500.00 EUR, with 20% VAT. Converted to UBL, the same values must come back, written differently:

FieldIn the CII sourceIn the UBL result
Issue date (BT-2)202601152026-01-15
Sum of the line net amounts (BT-106)<ram:LineTotalAmount>1300.00</ram:LineTotalAmount><cbc:LineExtensionAmount currencyID="EUR">1300.00</cbc:LineExtensionAmount>
Total VAT (BT-110)<ram:TaxTotalAmount currencyID="EUR">260.00</ram:TaxTotalAmount><cbc:TaxAmount currencyID="EUR">260.00</cbc:TaxAmount>
Total with VAT (BT-112)<ram:GrandTotalAmount>1560.00</ram:GrandTotalAmount><cbc:TaxInclusiveAmount currencyID="EUR">1560.00</cbc:TaxInclusiveAmount>

Only the form changes: the names of the elements, the currencyID attribute on every UBL amount and the format of the date. If the result shows 259.99 for the VAT, or one line instead of two, the conversion is wrong: do not send it, and use the field table to find where the value went.

What may differ

  • Details that go beyond EN 16931, such as the additional fields of the EXTENDED and EXTENDED-CTC-FR profiles, may have no equivalent in the other syntax.
  • Three values of a CII invoice have no place in UBL: the line total with VAT, the department of a contact and the base quantity of a gross price.
  • Rules that depend on a country or a platform, such as the French rules, are not applied by the converter: check the result with the validator, which applies them.
  • The order of the elements and their prefixes change. That is normal.

Validate

Use a validator for the rules that apply to you: the validator of this site runs the official ones (EN 16931, Factur-X, XRechnung, Peppol and the French rules). The validation files for EN 16931 are published on GitHub by the European Commission's project (ConnectingEurope/eInvoicing-EN16931), and your invoicing platform may offer its own checks.

Privacy

Your file is kept for about ten minutes so you can download the result, then it is deleted. See the privacy page.

Last updated: 24 October 2026 · Written by CTC Engine. How the guides are written

Did this guide help you?

The guides are free and follow each new version of the rules. A small thank-you helps keep them up to date.