# Convert a ZUGFeRD PDF to Excel

A ZUGFeRD invoice is a PDF with the real invoice hidden inside it as XML. Drop the PDF exactly as you received it; the embedded file is pulled out and turned into a spreadsheet.

Source: https://tally-stick.com/zugferd-to-excel

## The PDF and the XML are the same invoice

ZUGFeRD is a hybrid: a human-readable PDF/A-3B with a machine-readable CII attachment, so a person and a system can both be right about what the invoice says. The catch is the profile. MINIMUM and BASIC WL carry header data only; EN 16931 and EXTENDED carry the full line detail. A sparse export is often the sender's profile choice, not a failure here. The profile it used is shown next to the results.

## What you get out

- The XML lifted out of the PDF attachment, no copy and paste
- Invoice number, dates, currency and references from the header
- Seller and buyer with address, VAT number and contact
- Line items where the profile carries them, with quantity, price and VAT rate
- Tax per rate, the totals block, and the payment details

## Questions

### My ZUGFeRD PDF exported almost nothing.

Check the profile shown beside the results. MINIMUM and BASIC WL are legitimate ZUGFeRD profiles that simply do not contain line items, so there is nothing to extract. Ask the sender for EN 16931 if you need the detail.

### Is Factur-X the same thing?

Technically yes. Factur-X 1.0 and ZUGFeRD 2.1 are the same specification with two national names, so a Factur-X PDF works on this page and a ZUGFeRD one works on the Factur-X page.

### It says there is no XML in my PDF.

Then it is an ordinary or a scanned PDF, and the invoice printed on the page is read instead: the text layer when there is one, text recognition when the page is only a picture. That is a reading rather than an extraction, so check the figures. Ask the sender for the ZUGFeRD version when you need them exact.

## Related

- [ZUGFeRD to CSV](https://tally-stick.com/zugferd-to-csv)
- [Factur-X to Excel](https://tally-stick.com/factur-x-to-excel)
- [CII to Excel](https://tally-stick.com/cii-to-excel)
- [KSeF invoice to Excel](https://tally-stick.com/ksef-to-excel)

## How it works

The invoice is read on your own device. No file is uploaded, no account is required, and the fair usage limit is the only cap. Exports are PDF, Excel, CSV and JSON.
