Extract the XML from a Factur-X or ZUGFeRD PDF
Take the XML invoice out of a Factur-X or ZUGFeRD PDF. Copy it or save it as an XML file.
Free, no account File deleted after ~30 s The XML as it is, unchanged
- Factur-X
- ZUGFeRD
How to extract the XML from a Factur-X PDF
Upload your Factur-X or ZUGFeRD PDF, up to 10 MB.
Press Extract the XML. The invoice is the XML file attached to the PDF: it is found and unpacked for you.
Copy the XML or save it as a file. You can then convert it, or show it as a PDF.
What to expect
A Factur-X or ZUGFeRD PDF is a normal PDF with the invoice attached to it as an XML file. This tool finds that file and gives it to you as it is, without changing a character: it is not converted, checked or validated here. A PDF that is only a picture of an invoice, with no XML attached, has nothing to extract. A PDF that asks for a password cannot be opened.
Where the XML sits in a Factur-X or ZUGFeRD PDF
A Factur-X or ZUGFeRD invoice is a PDF/A-3: a PDF made for archiving, which may carry attached files of any kind. The XML is one of these attachments. It belongs to the document, not to a page, so it appears on no page, neither on screen nor in print.
In the XRECHNUNG profile of ZUGFeRD, the file is named xrechnung.xml. The extractor looks for the standard names, in upper or lower case, and otherwise takes the first attached XML file that is a CII or UBL invoice. It shows the name it found.
ZUGFeRD 1.0 came before EN 16931: its XML is a CrossIndustryDocument, where ZUGFeRD 2.0 and later, like Factur-X, carry a CrossIndustryInvoice. The extractor takes out either.
To take the XML out by hand, open the PDF in a reader that lists attached files, often in a side panel named Attachments, with a paperclip icon, and save the file from there.
Frequently asked questions
Is it free? Do I need an account?
Yes, it is free, and you do not need an account.
What happens to my PDF?
Your file is read to find the invoice in it. The XML stays available on our server for about thirty seconds, only so that your browser can fetch it, then it is discarded. Nothing is kept after that, and your invoice is not used for anything else or shared with anyone.
What is a Factur-X or ZUGFeRD PDF?
A PDF that people read as usual, with the same invoice attached to it as an XML file, which software reads. Factur-X, and ZUGFeRD 2, which is the same format, carry a CII invoice, usually named factur-x.xml or zugferd-invoice.xml.
Why does my PDF have no invoice?
Most PDF invoices are only a picture of an invoice: there is no XML in them. Only a Factur-X or ZUGFeRD PDF carries one. If yours should, ask the sender for the XML invoice, or which format their software produces.
What can I do with the XML?
Convert it between CII and UBL with the converter, or read it as a clear PDF with the viewer. Both are on this site. The XML of a ZUGFeRD 1.0 invoice is an older one, which neither of them reads.