ZUGFeRD Generator Comparison 2026: API, Library, or Office Suite?

ZUGFeRD is PDF/A-3 with embedded XML — a hybrid format readable by both humans and machines. Which generator gets it right depends on your stack.

Feature comparison

FeatureZUGFeRD generator providersinvoice-api.xhub
ZUGFeRD profiles (BASIC / COMFORT / EXTENDED)Lexware: BASIC/COMFORT / sevDesk: BASIC/COMFORT / Mustang: BASIC/COMFORT/EXTENDED / ferd-php: BASIC/COMFORTCOMFORT + EXTENDED (programmatic)
PDF/A-3 valid per ISO 19005-3Lexware: Yes / sevDesk: Yes / Mustang: Yes / ferd-php: LimitedYes (with standalone validator)
ArchitectureLexware/sevDesk: office suite / Mustang/ferd-php: open-source libraryManaged REST API
Language stackLexware/sevDesk: no stack tie (UI) / Mustang: Java only / ferd-php: PHP onlyLanguage-agnostic (REST)
Free / costLexware/sevDesk: Trial / Mustang/ferd-php: 100% open-sourceFree tier (20 invoices/month forever)
Setup effortLexware/sevDesk: hours / Mustang/ferd-php: 1–3 days eng time< 5 minutes (API key + call)
Compliance updates (KoSIT, ZUGFeRD versions)Lexware/sevDesk: included / Mustang/ferd-php: maintain yourselfAutomatic, included
International hybrid formats (Factur-X for FR)Lexware/sevDesk: Limited / Mustang: Limited / ferd-php: NoNative (FR Factur-X + 13 other EU countries)
Standalone validator (PDF/A-3 + XML)Lexware/sevDesk: implicit / Mustang: standalone / ferd-php: limitedStandalone endpoint, 187ms
Parser API for incoming ZUGFeRD PDFsLexware/sevDesk: Manual / Mustang/ferd-php: Library functionNative Parser API
Vendor lock-inLexware/sevDesk: SaaS lock / Mustang/ferd-php: NoneSaaS lock (free tier reduces it)
Pricing for ~1,000 invoices/monthLexware: from €39/mo / sevDesk: from €19–37/mo / Mustang/ferd-php: free (hosting separate)from €23/mo (Starter) or €18/mo (annually)

When to choose ZUGFeRD generator providers

  • Lexware / sevDesk: when you need an office suite with bookkeeping UI and ZUGFeRD is just a side feature
  • Mustang Project: Java stack with self-host requirement, EXTENDED profiles desired
  • ferd-php: PHP stack with self-host requirement, BASIC/COMFORT profiles sufficient
  • Online tools (free web generators): one-off manual creation without coding

When to choose invoice-api.xhub

  • You need ZUGFeRD programmatically in your own product (e-commerce, ERP module, SaaS backend)
  • Multi-country: not just ZUGFeRD (DE) but also Factur-X (FR) and other EU hybrid formats
  • API-first, language-agnostic (TypeScript, Python, Go, etc.)
  • Compliance updates without re-deploy on your side
  • Standalone Validator + Parser API without your own server infrastructure
  • Time-to-First-Invoice in minutes, not days

What this page is

This is a buyer's guide for ZUGFeRD generator tools in 2026. Instead of comparing just one provider, we look at the whole landscape: managed API services, open-source libraries, office suites, free online tools. Goal: help you make the right choice for your use case — even if that's not invoice-api.xhub.

ZUGFeRD primer (in 30 seconds)

ZUGFeRD isn't a standalone format — it's a combination of two standards:

  1. PDF/A-3 (ISO 19005-3): an archive-grade PDF that allows attachments
  2. CII XML (UN/CEFACT Cross-Industry Invoice): the structured XML with invoice data

ZUGFeRD = PDF/A-3 + embedded CII XML. The recipient sees a normal invoice as PDF but can simultaneously parse the structured data programmatically. This solves the problem that many recipients still don't have pure XML processing — they just see the PDF.

ZUGFeRD exists in multiple versions (1.0, 2.0, 2.1, 2.2, 2.3) and three profiles (BASIC, COMFORT, EXTENDED). Most tools today target ZUGFeRD 2.3 with COMFORT profile — the sweet spot for B2B invoices.

What to look for

Before tool selection, clarify 5 questions:

  1. Stack: do you have a Java backend? PHP? TypeScript? — determines library options
  2. Self-host vs managed: do you need strict-local data, or is a vendor service ok?
  3. Volume: how many ZUGFeRD PDFs per month?
  4. Profile: is COMFORT enough, or do you need EXTENDED?
  5. International: only Germany, or also Factur-X for France?

These 5 answers usually lead to the right architecture choice.

Architecture options

Option 1: Managed API service (e.g., invoice-api.xhub)

  • How it works: REST call with JSON data, ZUGFeRD PDF returned
  • Pro: no setup, no hosting, automatic compliance updates, multi-country
  • Con: vendor lock-in, monthly cost, external API calls
  • Ideal for: SaaS backends, fast prototyping, multi-country use cases

Option 2: Open-source library (e.g., Mustang Project, ferd-php)

  • How it works: integrate library into your own stack, generate ZUGFeRD locally
  • Pro: free, fully controlled, no vendor lock-in, no external calls
  • Con: setup effort, own maintenance, stack-specific (Java/PHP), no multi-country
  • Ideal for: Java/PHP teams with engineering capacity, high volume, strict data protection

Option 3: Office suite with ZUGFeRD function (e.g., Lexware, sevDesk, easybill)

  • How it works: web UI for invoice creation, ZUGFeRD export as a feature
  • Pro: all-in-one with dunning, bank reconciliation, etc.
  • Con: not optimized for programmatic use cases; API is an office side feature
  • Ideal for: solopreneurs, small teams without dev capacity

Option 4: Free online tool (e.g., eu-rechnung.de, xrechnungs.de)

  • How it works: fill out web form, download ZUGFeRD PDF
  • Pro: free, no signup, instantly usable
  • Con: manual, no API, often only BASIC profile, no volume scaling
  • Ideal for: one-off manual creation, test validation

Top picks by use case

Pick A: You need ZUGFeRD programmatically in your own product

invoice-api.xhub. API-first, free tier for testing, multi-country, EXTENDED profile, standalone validator. Time-to-First-Invoice under 5 minutes.

Alternative: Mustang Project (if Java stack present, self-host requirement, DE-only). See /compare/mustang-project-alternative.

Pick B: You have a Java codebase and engineering capacity

Mustang Project. Open-source, free, EXTENDED profile, active community. Trade-off: 1–3 days setup, your own compliance update maintenance.

Alternative: invoice-api.xhub on Enterprise plan (On-Premise/Hybrid) if you need multi-country but must host locally.

Pick C: You need an office suite with bookkeeping + ZUGFeRD

Lexware or sevDesk (DE) or easybill (DE solopreneur focus). E-invoicing is part of the office suite, but the main need is bookkeeping workflow.

See full comparisons: /compare/lexoffice-alternative, /compare/sevdesk-alternative, /compare/easybill-alternative.

Pick D: You need a PHP-specific library (self-host)

ferd-php as open-source library. Smaller community than Mustang, but the direct match for PHP stacks. Trade-off: maintenance, BASIC/COMFORT profiles (no EXTENDED out-of-the-box).

Provider profiles

invoice-api.xhub (managed API service)

  • Strength: programmatic ZUGFeRD generation in 5 min, multi-country, language-agnostic
  • Format coverage: ZUGFeRD 2.3 COMFORT + EXTENDED, plus 13 other EU hybrid formats (Factur-X, etc.)
  • Pricing: Free 20/mo · Starter €23/mo (2k) · Premium €79/mo (20k) · Enterprise Custom
  • Additional endpoints: standalone Validator (KoSIT, 187ms), Parser API for incoming ZUGFeRD PDFs

Mustang Project (Java open-source library)

  • Strength: free, self-hosted, EXTENDED profile, active community, no vendor lock-in
  • Format coverage: ZUGFeRD 2.x BASIC, COMFORT, EXTENDED + XRechnung (DE focus)
  • Pricing: free (hosting/maintenance on your own)
  • Stack: Java only

Lexware (office suite with API)

  • Strength: all-in-one DACH bookkeeping, DATEV integration, ZUGFeRD from COMFORT
  • Format coverage: ZUGFeRD 2.x BASIC + COMFORT (DACH focus)
  • Pricing: Office plans from ~€8/mo, Office Pro from ~€39/mo
  • API: REST API available, but office-centric

sevDesk (office suite with API)

  • Strength: similar to Lexware, slightly more modern REST API, transparent pricing
  • Format coverage: ZUGFeRD 2.x BASIC + COMFORT (DACH focus)
  • Pricing: Office plans from ~€9–37/mo
  • API: REST with OAuth, similar to Lexware

ferd-php (PHP open-source library)

  • Strength: PHP-native, open-source, free
  • Format coverage: ZUGFeRD BASIC + COMFORT (no EXTENDED out-of-the-box)
  • Pricing: free
  • Stack: PHP only, smaller community than Mustang

Decision tree

text
1Do you need ZUGFeRD programmatically (API call, no office UI)?
2 Yes
3 Multi-country (FR Factur-X, IT FatturaPA)?
4 Yes invoice-api.xhub
5 No, DE only
6 Java stack + self-host? Mustang Project
7 PHP stack + self-host? ferd-php
8 Other stack OR managed desired invoice-api.xhub
9 EXTENDED profile desired?
10 Yes Mustang or invoice-api.xhub
11 No, COMFORT enough all options
12 No, I need an office UI
13 DACH solopreneur Lexware / sevDesk / easybill
14 Tax-advisor DATEV handoff required DATEV (or Lexware with DATEV bridge)
15 One-off manual free online tools

Recommendation

If you came to this page because you googled "ZUGFeRD generator," the answer is probably:

  • API use case: invoice-api.xhub. Free tier, monthly cancellable, multi-country, no setup.
  • Java stack with self-host: Mustang Project — the established de-facto standard.
  • PHP stack with self-host: ferd-php — smaller community, but direct PHP stack match.
  • Office use case: Lexware or sevDesk — all-in-one with ZUGFeRD export.
  • One-off manual: free web generators for one-off cases.

The decisive question: what's your main need? ZUGFeRD generation as an API call in your product, or office workflow with ZUGFeRD as a side feature? The answer almost always leads to the right choice.


Next step

A 5-minute test in the playground shows faster than any comparison table whether invoice-api.xhub fits your setup:

  • Generate a sample ZUGFeRD PDF from a JSON body
  • Validate it against the KoSIT schemas
  • Convert XRechnung XML into a ZUGFeRD PDF/A-3
  • Browse the n8n workflow template

Free tier: 20 invoices/month, no credit card. If you scale beyond that, the Starter plan begins at €23/month (or €18/month with annual billing) and includes 2,000 invoices.

Frequently asked questions

What is ZUGFeRD and how does it differ from XRechnung?

ZUGFeRD is a hybrid format: a human-readable PDF/A-3 document with embedded XML. Recipients can read it as a normal PDF OR parse the structured data programmatically. XRechnung, by contrast, is pure XML (UBL or UN/CEFACT CII) — no PDF, machine-only. ZUGFeRD is for B2B (mixed recipients), XRechnung primarily for B2G (public sector buyers).

Which ZUGFeRD profile should I use?

Three main profiles: BASIC (minimal data scope, easy to generate), COMFORT (standard for B2B invoices, covers most use cases), EXTENDED (full EN 16931 compliance, for complex B2B requirements). For 90% of use cases, COMFORT is enough. If unsure: generate COMFORT and upgrade if needed.

What's the difference between Mustang and ferd-php?

Both are open-source libraries for ZUGFeRD generation. Mustang is Java-only, ferd-php is PHP-only. Mustang has a larger community, more active maintenance, covers EXTENDED profiles. ferd-php focuses on BASIC/COMFORT, is younger and smaller. Choice by stack: Java → Mustang, PHP → ferd-php.

Can I use Lexware/sevDesk APIs for ZUGFeRD generation in my own product?

Theoretically yes, both have REST APIs. In practice it's fragile: office suite APIs are designed for office workflows, not for high-volume programmatic use cases. You'd pay office pricing (€19–39/mo + limits) for a function you really want as a standalone API. For pure ZUGFeRD generation, invoice-api.xhub is purpose-built.

When do I need ZUGFeRD vs just PDF?

ZUGFeRD is required or beneficial when your B2B recipient has automated invoice processing (DATEV, SAP, Microsoft Dynamics, etc.). These systems can read the embedded XML, saving manual entry. From 2027, structured e-invoicing becomes mandatory for DE B2B — ZUGFeRD is a viable path because it remains readable as a PDF even without structured recipient systems.

What does invoice-api.xhub cost compared to others?

Free tier: 20 invoices/month forever. Starter: €23/month (€18 annually) with 2,000 invoices. Premium: €79/month with 20,000 invoices. Open-source libraries (Mustang, ferd-php) are free, but hosting and maintenance cost engineering time. Office suites (Lexware/sevDesk) start at €19–39/month, but include office features we don't have.

Ready to give it a try?

Free tier: 25 invoices/month, no credit card.