Factur-X Checker: Extract and Check ZUGFeRD XML – Free

This Factur-X checker opens a hybrid PDF invoice or a CII XML file, extracts the embedded data and reports which of six basic invoice fields are present. It is a quick sanity check, not a conformance validator.

How to use the Factur-X checker tool

  1. Choose a .pdf or .xml file under Invoice file, or paste Cross Industry Invoice XML into Invoice XML.
  2. Select Check invoice. The Example button loads a CII fragment that contains only an invoice ID.
  3. Read the extracted fields, then the Basic check line that lists anything missing.
  4. Select Download to save the extracted XML as invoice.xml, or Copy to copy the report.

What Factur-X and ZUGFeRD are

Factur-X is the French name and ZUGFeRD the German name for one hybrid invoice standard, and the two have been technically identical since ZUGFeRD 2.1. The invoice is a PDF/A-3 file that people can read, with an XML file attached that software can process. The XML uses the UN/CEFACT Cross Industry Invoice (CII) syntax.

The standard defines profiles with increasing amounts of data: MINIMUM, BASIC WL, BASIC, EN 16931 and EXTENDED, plus an XRECHNUNG profile for Germany. The profile is declared in the guideline ID inside the XML, which this tool shows on the Profile line.

How this Factur-X checker extracts the XML

For a PDF, the tool walks the document catalog: the associated files array and the embedded files name tree. It considers attachments whose file name ends in .xml, returns the first whose name contains factur-x, zugferd or xrechnung, and otherwise falls back to the first XML attachment. The standard names are factur-x.xml, zugferd-invoice.xml and xrechnung.xml.

The XML is then parsed and must have CrossIndustryInvoice as its root. UBL and FatturaPA files are rejected with the message Factur-X and ZUGFeRD use the CII invoice format.

The basic check, with an example

The check looks for six values: invoice number, issue date, seller name, buyer name, total and currency. The Example input has only a document ID, so five are reported missing.

When all six are found the line reads Basic check · Invoice number, date, parties, currency and total found.

Format: Cross Industry Invoice (CII)
Invoice number: F-001
Line items: 0

Basic check · Missing: date, seller, buyer, total, currency
Full schema and compliance validation requires a dedicated validator.

What is not validated

Passing the basic check does not make an invoice conformant. These parts of the standard are outside this tool.

  • PDF/A-3 conformance and the XMP metadata that declares the Factur-X version and profile.
  • The XSD schema and the Schematron business rules of EN 16931, such as totals that must add up.
  • Whether the data matches the declared profile, or the visible PDF matches the XML.
  • Tax IDs, VAT breakdowns, payment details and line content.
  • ZUGFeRD 1.0 files. Their root element is CrossIndustryDocument, which the tool does not accept.

Frequently asked questions

How do I extract the XML from a Factur-X PDF?

Choose the PDF under Invoice file and select Check invoice. When the tool finds the embedded XML it shows the key fields, and the Download link saves that XML as invoice.xml.

Is this a full Factur-X validator?

No. It confirms that an XML attachment exists, that it is a Cross Industry Invoice and that six common header fields have values. Schema, Schematron and PDF/A-3 validation need a dedicated validator, as the result itself states.

What is the difference between Factur-X and ZUGFeRD?

They are the same format under two names. Factur-X 1.0 corresponds to ZUGFeRD 2.1 and later, with a shared specification and the same attachment name, factur-x.xml. Older ZUGFeRD versions used other file names and, in version 1.0, a different XML root.

Why does the checker say this PDF has no embedded invoice XML attachment?

The PDF has no attached file ending in .xml in its catalog. It may be an ordinary PDF invoice, a scan, or a file whose attachment was removed when it was printed to PDF or optimized by another program.

Which XML elements does the basic check read?

Invoice number from the ExchangedDocument ID, date from IssueDateTime, seller and buyer names from SellerTradeParty and BuyerTradeParty, currency from InvoiceCurrencyCode, and total from DuePayableAmount or, if absent, GrandTotalAmount in the header monetary summation.

Are my invoices sent to a server for checking?

No. PDF parsing, attachment extraction and the field check all run in your browser. The file stays on your device, which matters for invoices that contain customer and bank details.

Related tools