Automation Blog Pricing Contact

Extract XML from ZUGFeRD API

Upload a ZUGFeRD PDF and extract the embedded XML invoice data instantly — no sign-up required.

Drop your ZUGFeRD PDF here

or browse files to upload

Accepted format: PDF · Max 20 MB

How ZUGFeRD XML Extraction Works

Upload Your ZUGFeRD PDF

Drag and drop a ZUGFeRD or Factur-X PDF. We detect the embedded XML attachment automatically.

Parse & Extract

The embedded CII XML is extracted from the PDF/A-3 container. If no XML is found, our AI generates one from the invoice content.

Download XML

Receive a structured EN 16931 CII XML file — ready to import into your ERP, accounting system, or data pipeline.

Why Extract XML from ZUGFeRD?

ZUGFeRD invoices embed structured XML inside a standard PDF — but many accounting systems can only process the raw XML data. Extracting the XML lets you automate data import, eliminate manual entry, and integrate invoice data directly into your ERP or financial workflows. Whether you're archiving, validating, or feeding data into a pipeline, the extracted XML gives you machine-readable access to every field in the invoice.

Developer API

Built for Developers

A single REST endpoint. Upload a ZUGFeRD PDF, receive the embedded CII XML — or AI-generated EN 16931 XML if no attachment is found.

  • Supports all formats: DOCX, XLSX, PDF, images — no preprocessing needed
  • Works on scanned and photographed invoices
  • Every response validated against official Schematron rules

Supports ZUGFeRD · Factur-X · XRechnung · UBL · CII · EN 16931

API Documentation
Terminal
$ curl -X POST https://api.invoicexml.com/v1/extract/xml \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: multipart/form-data" \
  -F "[email protected]"
// => 200 OK
// => { "id": "inv_8f3k...", "status": "completed" }

Complete ZUGFeRD Toolkit

Everything you need to create, convert, validate, and extract ZUGFeRD invoices — via REST API or online.

Build a ZUGFeRD 2.x PDF/A-3 from structured data — no source PDF required.

Validate a ZUGFeRD PDF against EN 16931 XSD schema and Schematron business rules.

Convert any PDF invoice into a ZUGFeRD 2.x PDF/A-3 with embedded CII XML using AI extraction.

Extract the embedded CII XML from a ZUGFeRD PDF for ERP import or further processing.

Frequently Asked Questions

What is ZUGFeRD XML extraction?

ZUGFeRD PDFs contain an embedded XML file (zugferd-invoice.xml) with structured invoice data. This tool extracts that XML attachment from the PDF so you can process, archive, or integrate it into your systems.

What if my PDF has no embedded XML?

If the uploaded PDF does not contain an embedded ZUGFeRD XML attachment, our AI engine will read the invoice content, map it to the EN 16931 data model, and generate a compliant CII XML document for you.

What XML format is returned?

The extracted XML follows the UN/CEFACT CII (Cross Industry Invoice) format — the same syntax used inside ZUGFeRD and Factur-X files and one of the two official syntaxes of the EN 16931 European standard.

Is the extracted XML validated?

When XML is generated via AI extraction, it is validated against EN 16931 Schematron business rules before delivery. Embedded XML that already exists in the PDF is returned as-is.

Ready to automate your invoices?

Start your 30-day free trial. No credit card required.

Get Started