Extract the XML from a Factur-X invoice

A Factur-X PDF contains an attached XML file that you don’t see when you open the PDF. Drop the invoice here to find that embedded XML, read it and save it as a separate file, without touching the original PDF. It’s free and you don’t need an account.

The file is read in your browser. It is never sent anywhere.

Drag and drop your Factur-X PDF hereChoose your Factur-X PDF

A PDF invoice that contains an XML file

One file at a timeThe original PDF isn’t changed. Try it with a sample invoice

What a Factur-X PDF contains

facture-lumen.pdf

The laid-out invoiceWhat your PDF reader shows.
factur-x.xmlAttached to the PDF and compressed. This is what the tool extracts.

Preview with a sample invoice The buttons work once you drop your own file.

Saved as facture-lumen.xml

XML found in facture-lumen.pdfDetected format:Factur-X (embedded CII XML)FA-88231 · Lumen Hébergement · €28.80

<?xml version="1.0" encoding="UTF-8"?><rsm:CrossIndustryInvoice xmlns:rsm="urn:un:unece:uncefact:…" …>
  <rsm:ExchangedDocumentContext>
    <ram:GuidelineSpecifiedDocumentContextParameter>
      <ram:ID>urn:cen.eu:en16931:2017</ram:ID>
    </ram:GuidelineSpecifiedDocumentContextParameter>
  </rsm:ExchangedDocumentContext>
  <rsm:ExchangedDocument>
    <ram:ID>FA-88231</ram:ID>
    <ram:TypeCode>380</ram:TypeCode>
    <ram:IssueDateTime>
      <udt:DateTimeString format="102">20261001</udt:DateTimeString>
    </ram:IssueDateTime>
  </rsm:ExchangedDocument>
  <rsm:SupplyChainTradeTransaction>
    …
      <ram:SellerTradeParty>
        <ram:Name>Lumen Hébergement</ram:Name>
  …
Need the data rather than the file?

In Clivio, the XML of every Factur-X is read as soon as the invoice arrives. The amount, the VAT and the date to pay by are picked up for you, and the invoice is marked “Factur-X certified data”. You then find it again by typing “Lumen invoices 2026”. Free for up to 50 documents.

Create my free space

How to extract the XML from a Factur-X

  1. Drop the PDF in the area above, or choose it on your computer.
  2. The tool looks for the XML hidden in the PDF. It shows its start, the format recognized and a summary of the invoice, with its number, seller and total.
  3. Click “Download the XML”. You get an .xml file named after the PDF, and the PDF stays as it is.

To read the invoice in plain view rather than its code, use the invoice reader, which does the same extraction before showing the fields.

Where the XML hides in a Factur-X PDF

A Factur-X is a PDF/A-3, a variant of PDF designed for archiving that accepts attached files. The invoice’s XML is attached to it, most often under the name factur-x.xml, like an attachment slipped inside the document. Your PDF reader shows the page and doesn’t show this file, which is why it seems not to exist.

The XML is also compressed, so opening the PDF in a text editor gives nothing readable. The tool goes through the PDF’s content, decompresses each block and keeps the first one that looks like an XML invoice, in CII or UBL format. Everything happens in your browser. Our glossary entry on Factur-X explains why the invoice is built this way.

What the embedded XML contains

The XML of a Factur-X follows the CII syntax. It holds everything the PDF shows, stored in tags that accounting software reads without typing errors.

<?xml version="1.0" encoding="UTF-8"?><rsm:CrossIndustryInvoice
  xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
  xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
  xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100">
  <rsm:ExchangedDocumentContext>
    <ram:GuidelineSpecifiedDocumentContextParameter>
      <ram:ID>urn:cen.eu:en16931:2017</ram:ID>
    </ram:GuidelineSpecifiedDocumentContextParameter>
  </rsm:ExchangedDocumentContext>
  <rsm:ExchangedDocument>
    <ram:ID>FA-88231</ram:ID>
    <ram:TypeCode>380</ram:TypeCode>
    <ram:IssueDateTime>
      <udt:DateTimeString format="102">20261001</udt:DateTimeString>
    </ram:IssueDateTime>
  </rsm:ExchangedDocument>
  <rsm:SupplyChainTradeTransaction>
    <ram:IncludedSupplyChainTradeLineItem>…</ram:IncludedSupplyChainTradeLineItem>
    <ram:ApplicableHeaderTradeAgreement>
      <ram:SellerTradeParty>
        <ram:Name>Lumen Hébergement</ram:Name>
        <ram:SpecifiedLegalOrganization>
          <ram:ID schemeID="0002">222222222</ram:ID>
        </ram:SpecifiedLegalOrganization>
      </ram:SellerTradeParty>
      <ram:BuyerTradeParty>
        <ram:Name>Camille Martin EI</ram:Name>
      </ram:BuyerTradeParty>
    </ram:ApplicableHeaderTradeAgreement>
    <ram:ApplicableHeaderTradeDelivery/>
    <ram:ApplicableHeaderTradeSettlement>
      <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>
      <ram:SpecifiedTradeSettlementPaymentMeans>
        <ram:TypeCode>58</ram:TypeCode>
        <ram:PayeePartyCreditorFinancialAccount>
          <ram:IBANID>FR76…8823</ram:IBANID>
        </ram:PayeePartyCreditorFinancialAccount>
      </ram:SpecifiedTradeSettlementPaymentMeans>
      …
      <ram:SpecifiedTradeSettlementHeaderMonetarySummation>
        <ram:LineTotalAmount>24.00</ram:LineTotalAmount>
        <ram:TaxBasisTotalAmount>24.00</ram:TaxBasisTotalAmount>
        <ram:TaxTotalAmount currencyID="EUR">4.80</ram:TaxTotalAmount>
        <ram:GrandTotalAmount>28.80</ram:GrandTotalAmount>
        <ram:DuePayableAmount>28.80</ram:DuePayableAmount>
      </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
    </ram:ApplicableHeaderTradeSettlement>
  </rsm:SupplyChainTradeTransaction></rsm:CrossIndustryInvoice>
What you’re looking forWhere to find it in the XML
The invoice numberrsm:ExchangedDocument then ram:ID
The type of documentram:TypeCode, which is 380 for an invoice and 381 for a credit note
The issue dateram:IssueDateTime, written YYYYMMDD. Tools that read the invoice show 20261001 as Oct 1, 2026.
The Factur-X profileram:GuidelineSpecifiedDocumentContextParameter
The seller and their SIREN (the French company number)ram:SellerTradeParty, with ram:Name and ram:SpecifiedLegalOrganization
The buyerram:BuyerTradeParty
The currency and the IBANram:InvoiceCurrencyCode and ram:IBANID
The totals excluding VAT, VAT and including VATram:TaxBasisTotalAmount, ram:TaxTotalAmount and ram:GrandTotalAmount
The invoice linesram:IncludedSupplyChainTradeLineItem, one tag per line

The five Factur-X profiles

Not every Factur-X holds as much data. The profile, given at the top of the XML, says how far the file goes.

ProfileWhat the XML contains
MINIMUMThe parties, the references and the totals, without the lines
BASIC WLThe header, VAT by rate and the totals, without the lines
BASICThe invoice with its lines, in a simplified form
EN 16931Everything the European standard requires, lines included
EXTENDEDThe standard, plus data useful to some industries

With a MINIMUM or BASIC WL profile, the reader shows “No invoice line found in this file”. That’s normal, since these profiles don’t contain any.

Extracting the XML without this tool

The XML is an attachment of the PDF, so any software that can list a PDF’s attachments can save it. Most PDF readers built into browsers don’t show them, Firefox aside.

WithHow
Adobe Acrobat ReaderOpen the left-hand panel and click the paper clip icon. Right-click factur-x.xml to save the attachment.
FirefoxOpen the PDF in Firefox, show the sidebar, then the list of attachments. Click factur-x.xml to save it.
The command linepdfdetach -list facture.pdf lists the attachments, and pdfdetach -saveall facture.pdf saves them. The tool is part of Poppler.
PythonThe factur-x library provides the command facturx-pdfextractxml facture.pdf factur-x.xml.

When no XML is found

The tool then says “No XML in this PDF”. Most often, one of these situations explains it.

  • The PDF isn’t a Factur-X. It’s an ordinary PDF, or the scan of a paper invoice.
  • The PDF was saved again. An invoice that went through “Print to PDF” loses its attached XML, and a compression or editing tool can lose it too.
  • It’s a ZUGFeRD 1.0 invoice, the old German version of the format, which the tool doesn’t recognize.
  • The XML is stored in the PDF in an unusual way that the tool can’t decode.

Then ask the supplier for the original file, or download it from your accredited platform. If they send you the XML on its own, our page on opening an XML invoice file explains what to do with it.

What to do with the extracted XML

It’s useful when software asks for it, such as an accounting tool that imports invoices in XML format. It’s also useful to check what the invoice really states, since the PDF and the XML of a Factur-X must say the same thing. If an amount differs between the two, tell the supplier. The invoice check also tells you whether seven basic mentions are present.

For your records, keep the original PDF. It is the invoice, XML included, and the extracted file is only a copy. Our guide to archiving e-invoices covers the retention rules.

Frequently asked questions

Is the original PDF changed?

No. The tool reads the file in your browser without writing anything to it. The downloaded XML is a copy, and your PDF stays identical.

What does “Factur-X (embedded CII XML)” mean?

That the PDF you dropped contains an XML invoice written in the CII syntax, the one every Factur-X uses. So the extracted file is a CII XML: dropped on its own in the invoice reader, it shows as “CII”, since there’s no PDF around it anymore.

Can I edit the XML and put it back in the PDF?

Not on an invoice you received. An issued invoice isn’t corrected after the fact. The supplier issues a corrective invoice or a credit note, and an edited PDF would no longer be the original to keep.

What about German ZUGFeRD invoices?

From version 2 onward, ZUGFeRD uses the same XML as Factur-X, and the tool finds it the same way. The old version 1.0 isn’t recognized.

Can I process several PDFs at once?

No, one PDF at a time. The invoice renamer accepts a whole folder, but it renames the files without extracting their XML.

Are my files sent anywhere?

No. The PDF is read in your browser, nothing goes through a server and nothing is kept. When you close the tab, nothing is left.

Do I need an account?

No. You open the page and drop your PDF, with no account or email address.

Sources, checked on October 13, 2026: Factur-X specification, FNFE-MPE · impots.gouv.fr, je découvre la facturation électronique (in French) · economie.gouv.fr (in French) · EN 16931-1 standard, published by CEN · ISO 19005-3 standard (PDF/A-3).