Skip to content

Convert it. We forget it. - Based in Germany

Contact
EN – EnglishDE – Deutsch
Wandlix
Pricing
  1. Home
  2. E-invoice guides
  3. XRechnung: structure and mandatory fields

XRechnung: structure, mandatory fields and use

The XRechnung is the German standard for electronic invoices to public administration. It is a pure XML file without a visual view. Here is how it is built and what matters.

Updated on 28 October 2026

What the XRechnung is

The XRechnung is a data format for invoices. It implements the European norm EN 16931 for Germany and adds rules that public bodies need. An XRechnung consists of a single XML file. People do not see an invoice as on paper; software reads the fields and takes them over into accounting.

The file follows a fixed structure: header data, seller and buyer, payment details, line items and totals. Every field has a unique name and a number (business term, BT for short), so the receiving software knows exactly what a value means.

Two technical syntaxes: UBL and CII

The same content can be written in two XML languages: UBL (Universal Business Language) and CII (Cross Industry Invoice). Both are allowed. Which one your software creates usually does not matter to the recipient as long as it follows the XRechnung rules. A validator recognises the syntax by itself.

Which details are mandatory

The mandatory details are the same as for any invoice, plus some XRechnung specifics:

  • Invoice number and date of issue
  • Name and address of seller and buyer
  • VAT identification number or tax number of the seller
  • Line items with quantity, unit price, tax rate and net amount
  • Totals: net, tax, gross and amount due
  • Payment details, for example the IBAN
  • The buyer reference, for public bodies the Leitweg-ID (BT-10)
  • The specification identifier that states which XRechnung version the file is built to

Where the XRechnung is required

Public contracting authorities in Germany usually require the XRechnung for invoices to federal, state and municipal bodies. Invoices must be submitted through the designated receiving portals. Between businesses you may use XRechnung or ZUGFeRD as long as both sides can process them.

Create and validate

Most accounting programs can create XRechnungen. If you only need one occasionally, you can create it online from your details and validate it straight away. Check every file before sending: errors such as a missing Leitweg-ID or wrong totals make the recipient reject it.

  • Create e-invoice (XRechnung)
  • Validate e-invoice
  • E-invoice to PDF

Frequently asked questions

Can I simply open an XRechnung?
As a file you only see XML text. A tool that renders it as a readable PDF shows the invoice in the usual form.
Is the XRechnung the same as an e-invoice?
The XRechnung is one format of the e-invoice. There is also ZUGFeRD, for example. E-invoice is the umbrella term.
Do I need a separate identifier for every authority?
Yes, for public bodies the Leitweg-ID of the recipient belongs in the invoice. You get it from the contracting authority.
Which version applies?
The current version of the XRechnung specification applies. A good validator points out when the version does not fit.

Try it now

Check an e-invoice in a few seconds. Your file stays in the memory of a server in Germany only and is deleted after one hour at the latest.

Validate e-invoice

More guides

  • XRechnung or ZUGFeRD?
  • Leitweg-ID explained
  • The most important fields of an e-invoice
  • ZUGFeRD: PDF with embedded XML

These guides do not replace tax or legal advice. For questions about your own case please ask your tax adviser.

Wandlix

Convert it.We forget it.Based in Germany.

  • MADEINGERMANY
  • Servers inGermany

E-Invoice

  • Validate e-invoice
  • Create e-invoice (XRechnung)
  • Extract XML from ZUGFeRD PDF
  • E-invoice to PDF

File & utility tools

  • Create ZIP file
  • Unzip files
  • QR code generator
  • JSON, CSV, XML, YAML converter
  • Convert text encoding
  • Base64 encode and decode

PDF tools

  • Merge PDF
  • Split PDF
  • PDF to image
  • Compress PDF
  • Make PDF searchable (OCR)
  • Protect PDF
  • Unlock PDF
  • Delete PDF pages
  • Rotate PDF
  • Add watermark to PDF
  • Add page numbers to PDF
  • Reorder PDF pages
  • Crop PDF
  • PDF to PDF/A
  • PDF to text / Markdown
  • Remove metadata
  • PDF to Word
  • Text to PDF

Image tools

  • Images to PDF
  • Image to text (OCR)
  • Convert image
  • Compress image
  • Edit image

Office to PDF

  • Word to PDF
  • Excel to PDF
  • PowerPoint to PDF
  • Numbers to Excel
  • Document converter (DOCX, ODT, XLSX, ODS …)
  • CSV to Excel
  • Excel to CSV

Popular topics

Merge PDF files  ·  Combine PDFs online  ·  Join PDF documents  ·  PDF merger  ·  Merge PDF free  ·  Split PDF online  ·  Extract pages from PDF  ·  Separate PDF pages  ·  Cut a PDF into parts  ·  Delete pages from PDF  ·  Remove pages from PDF  ·  Remove unwanted PDF pages  ·  Rotate PDF pages  ·  Rotate PDF 90 degrees  ·  Fix sideways scans  ·  Add watermark to PDF  ·  PDF watermark online  ·  Mark PDF as confidential  ·  Add page numbers to PDF  ·  Number PDF pages  ·  PDF page numbering  ·  PDF to text  ·  PDF to Markdown  ·  Extract text from PDF  ·  Compress PDF  ·  Reduce PDF file size  ·  Make PDF smaller for email  ·  PDF shrinker  ·  Password protect PDF  ·  Encrypt PDF online  ·  Lock PDF with password  ·  PDF encryption AES-256  ·  Unlock PDF  ·  Remove PDF password  ·  Remove PDF restrictions  ·  PDF password remover  ·  PDF OCR online  ·  Make scanned PDF searchable  ·  Scan to searchable PDF (OCR)  ·  PDF to JPG  ·  PDF to PNG  ·  Convert PDF pages to images  ·  Save PDF as image  ·  JPG to PDF  ·  PNG to PDF  ·  Images to PDF  ·  Photos to PDF  ·  Convert image format  ·  JPG to PNG  ·  PNG to JPG  ·  Convert to WebP  ·  Compress images  ·  Reduce image size  ·  Resize and compress photos  ·  Shrink JPG  ·  Remove metadata from PDF  ·  Remove EXIF data  ·  Delete photo location data  ·  Word to PDF  ·  DOCX to PDF  ·  Convert DOC to PDF  ·  ODT to PDF  ·  Excel to PDF  ·  XLSX to PDF  ·  CSV to PDF  ·  PowerPoint to PDF  ·  PPTX to PDF  ·  Presentation to PDF  ·  Create ZIP file  ·  ZIP files online  ·  Compress files into ZIP  ·  Validate e-invoice  ·  XRechnung validator  ·  ZUGFeRD validator  ·  Check e-invoice online  ·  Factur-X check  ·  Create e-invoice  ·  Create XRechnung  ·  Create ZUGFeRD PDF  ·  Invoice to XRechnung  ·  Numbers to Excel  ·  Numbers to XLSX  ·  Convert Numbers file  ·  Image to text  ·  OCR image online  ·  Extract text from image  ·  CSV to Excel  ·  CSV to XLSX  ·  Open CSV in Excel  ·  Excel to CSV  ·  XLSX to CSV  ·  Export Excel as CSV  ·  Convert DOCX to ODT  ·  XLSX to ODS  ·  Convert ODT to DOCX  ·  PDF to Word  ·  PDF to DOCX  ·  Edit PDF as Word  ·  Text to PDF  ·  TXT to PDF  ·  Markdown file to PDF  ·  Extract XML from ZUGFeRD  ·  Factur-X XML extract  ·  ZUGFeRD PDF to XML  ·  XRechnung to PDF  ·  Make e-invoice readable  ·  View XRechnung XML  ·  Unzip files  ·  Open ZIP archive  ·  Extract ZIP online  ·  PDF to PDF/A  ·  Convert to PDF/A  ·  PDF/A archiving  ·  Reorder PDF pages  ·  Sort PDF pages  ·  Rearrange PDF  ·  Crop PDF  ·  Cut PDF margins  ·  Trim PDF pages  ·  Crop image  ·  Rotate image  ·  Flip image  ·  QR code generator  ·  WLAN QR code  ·  QR code for link  ·  Dynamic QR code  ·  Check XRechnung online for free  ·  Check ZUGFeRD PDF for validity  ·  Validate e-invoice against EN 16931  ·  Understand e-invoice error BR-CO-15  ·  Check several e-invoices at once  ·  Create an e-invoice for small businesses  ·  Create XRechnung without software  ·  Create a ZUGFeRD invoice online  ·  Show XRechnung as a readable PDF  ·  Read XML from ZUGFeRD PDF for bookkeeping  ·  Merge PDF files for free without signing up  ·  Combine application documents into one PDF  ·  Split a PDF by page range into several files  ·  Rotate scanned PDF pages by 90 degrees and save  ·  Shrink a PDF heavily for an e-mail attachment  ·  Password protect a PDF without Adobe Acrobat  ·  Remove a PDF password permanently if you know it  ·  Turn scanned documents into a searchable PDF  ·  Copy text from a photo or screenshot  ·  Prepare PDF text for ChatGPT and AI  ·  Convert PDF to Word and edit it without signing up  ·  Combine several photos into one PDF  ·  Shrink photos for a job application portal  ·  Remove location and camera data from photos before sharing  ·  Convert Word to PDF without Microsoft Office  ·  Open a CSV file with umlauts correctly in Excel  ·  Convert PDF to PDF/A-3 for archiving  ·  Unzip a ZIP file online without a program  ·  Create a Wi-Fi QR code for guests  ·  Create a dynamic QR code and change the target later  ·  JSON to CSV  ·  CSV to JSON  ·  XML to JSON  ·  JSON to XML  ·  YAML to JSON  ·  JSON to YAML  ·  CSV to XML  ·  XML to CSV  ·  CSV to YAML  ·  Format and indent a JSON file  ·  Convert a semicolon CSV file to JSON  ·  Open JSON in Excel as a table  ·  Windows-1252 to UTF-8  ·  UTF-8 to Windows-1252  ·  ISO-8859-1 to UTF-8  ·  Fix broken umlauts in a CSV file  ·  Convert a text file to UTF-8  ·  UTF-16 to UTF-8  ·  Change line endings from CRLF to LF  ·  Save a CSV as UTF-8 with BOM for Excel  ·  Base64 encode a file  ·  Base64 decode to a file  ·  Image to Base64  ·  Base64 to image  ·  PDF to Base64  ·  Base64 to PDF  ·  File to data URI  ·  URL-safe Base64

© 2026 Wandlix · Made in Germany

Security & privacyLegal noticePrivacy policyTerms & withdrawalDPAAccessibilityPricingGuidesContactCancel contracts hereAPIIntegrationsShort linksSpeed testStatusOpen-source licenses