Sample files

ZUGFeRD and XRechnung Sample Files

One example invoice for every ZUGFeRD profile, XRechnung in both syntaxes, the common special cases, and deliberately broken files for testing. All free, all fictitious, all validated.

Every file below was generated and validated with the tools on this site; the parties, IBANs and figures are fictitious. Use the samples to test imports into DATEV, Lexware or your ERP, to try validators and viewers, or to see what a correct file looks like before you build your own. Each card offers the download plus two shortcuts that load the file straight into the validator or the viewer.

The same invoice in every ZUGFeRD profile

All six files carry the invoice RE-2026-0815 from Muster & Soehne GmbH: IT consulting, two scanners, five books, 19% and 7% VAT, SEPA credit transfer. Only the declared profile differs, so opening two files side by side shows exactly which fields each profile carries. Unsure which profile to use? The format guide explains the ladder.

MINIMUM PDF/A-3

Header data only: parties, totals, payment. No line items; MINIMUM is a booking aid, not a complete invoice, and the PDF page remains the legally decisive layer.

BASIC WL PDF/A-3

Also line-free, but with fuller payment and tax detail than MINIMUM. Like MINIMUM, a booking aid for accounts-payable workflows rather than a full e-invoice.

BASIC PDF/A-3

The smallest complete e-invoice: line items included, core fields only. This file deliberately omits what BASIC cannot carry, such as the item description or a BIC.

EN 16931 (the recommended default) PDF/A-3

A complete German B2B invoice: three line items, 19% and 7% VAT, SEPA payment data. The profile DATEV, Lexware and tax advisors expect.

EXTENDED PDF/A-3

Everything EN 16931 carries, declared with the EXTENDED guideline for industry extensions beyond the European norm. Rarely needed; use it only when a partner demands it.

XRECHNUNG (reference profile) PDF/A-3

The authority invoice RE-2026-0901 with Leitweg-ID, packaged as a hybrid ZUGFeRD PDF. The pure-XML XRechnung files below carry the same invoice.

XRechnung: the same invoice in CII and UBL

XRechnung is one rule set in two interchangeable syntaxes. Both files carry the same authority invoice RE-2026-0901, including the Leitweg-ID 04011000-1234512345-06; only the XML vocabulary differs. The XRechnung format guide covers the rules behind them.

XRechnung 3.0 in CII syntax XML (CII)

A valid XRechnung to a public authority: Leitweg-ID, electronic addresses, and seller contact included. Passes EN 16931 plus the KoSIT CIUS rules.

XRechnung 3.0 in UBL syntax XML (UBL)

The same invoice in UBL 2.1, the syntax most German receivers see in practice. Compare it with the CII file to see how two vocabularies express identical data.

Credit note, correction, reverse charge, Kleinunternehmer

Four situations that keep coming up in rejections and support questions, each as a complete, valid file.

Credit note (type code 381) PDF/A-3

A credit note (BT-3 = 381) referencing the preceding invoice, including the service period. Useful for testing how your system books corrections.

Corrected invoice (type code 384) PDF/A-3

A corrected invoice (BT-3 = 384) that references the original RE-2026-0815 and restates it with one scanner instead of two. Whole chains of checks hang on this type code.

Reverse charge PDF/A-3

Consulting for a French business customer: VAT category AE, zero rate, and the mandatory note that the recipient owes the VAT (reverse charge).

Kleinunternehmer (Section 19 UStG) PDF/A-3

An invoice without VAT under the small-business scheme: category E with the Section 19 UStG exemption text, and a tax number in place of a VAT ID.

Deliberately broken files

Each of these files breaks exactly one thing, which makes it a precise test case for validators, import routines and error handling. The validator names the exact rule on every one.

XRechnung without Leitweg-ID XML (CII)

The valid XRechnung with the Leitweg-ID removed: it fails exactly rule BR-DE-15, the most common reason an XRechnung bounces. Test your validators and rejection handling with it.

ZUGFeRD with wrong totals PDF/A-3

The EN 16931 invoice with a tampered grand total: the PDF page and the XML no longer agree, and validation fails rule BR-CO-15. Since 2025 the XML is the binding layer, which is exactly what this file demonstrates.

PDF without embedded XML PDF

Looks exactly like the sample invoice, but carries no XML at all. Since 1 January 2025 such a PDF no longer counts as an e-invoice; the validator reports the missing attachment.

Frequently Asked Questions

Common questions about the sample files.

Yes. All data is fictitious: no real companies, IBANs or tax numbers. The files are released under CC0, so you can download, share and reuse them freely, including commercially.
With the tools on this site, powered by the InvoiceXML API. Every file was validated before publishing; the broken ones fail exactly the rule named on their card.
The EN 16931 invoice. It is the profile German B2B software expects, and the walkthrough post linked below reads its XML block by block.
Each one violates exactly one thing: BR-DE-15 (missing Leitweg-ID), BR-CO-15 (totals that do not add up), and a missing XML attachment. Run them through the validator to see the exact report a rejected invoice produces.
Invoicing a company: ZUGFeRD, the hybrid PDF. Invoicing a public authority: XRechnung with the recipient's Leitweg-ID. The two format guides on this site explain both in detail.
Built for the German mandate

One toolkit for ZUGFeRD and XRechnung

Every German business has had to accept e-invoices since January 2025. Both formats are covered here.

ZUGFeRD or XRechnung? Let the assistant pick the tool Tell the chat what you need: it converts, checks, builds, and reads out German e-invoices. Open assistant

Create

Fill one form, get a ZUGFeRD PDF or an XRechnung with Leitweg-ID

Check & repair

Test against EN 16931 and the XRechnung CIUS, then fix what a buyer rejected

Convert

Move an invoice between PDF, CII, UBL and XRechnung

Open & extract

Open a file, see what is inside it, and take the data with you

Look up & automate

Check who you are invoicing, or move the whole flow to an API
Ready for mandatory e-invoicing?

Make every invoice compliant, in a single message

Subscribe to get unlimited tools, choosable compliance profiles and the full set of premium features.

EN 16931 & PDF/A-3b compliant Results in seconds No installation GoBD-compliant archive
1 free tool use per hour · No card required