Free tool · EN 16931 · XRechnung

XRechnung e-invoice generator.

Fill the form, get a validated XRechnung XML file ready to submit to German public sector buyers. Compliant with the EN 16931 standard and the German XRechnung specification, accepted via the Peppol network and the central B2G platforms ZRE and OZG-RE.

Invoice data
UBL · EN 16931
Please fix the following issues
    Invoice details
    Required for German public sector. The Leitweg-ID identifies the buyer agency.
    Supplier (seller)
    ISO 3166-1 alpha-2 code
    Customer (buyer)
    Line items
    Description
    Qty
    Unit price
    Line total
    Tax
    Subtotal0.00
    Tax (0%)0.00
    Total0.00
    Generates a validated XRechnung XML file
    XML generated.

    Files don't stick around

    Uploads are deleted after the request. We don't store your documents, and we never look at them.

    Same engine as production

    Powered by PDF Generator API, the same infrastructure trusted by 2,000+ developers worldwide for high-volume document workflows.

    Need to do this at scale?

    If you're stamping hundreds of PDFs a day, hit the API directly. Same options, programmatic, fits in any backend in five minutes.

    About this tool

    The German standard for B2G invoicing.

    XRechnung is the mandatory XML format for invoicing German federal, state, and municipal public bodies. It is a Core Invoice Usage Specification on top of EN 16931, maintained by the Coordination Office for IT Standards (KoSIT). If you supply goods or services to a German government body, this is the format your invoice has to take.

    What is the Leitweg-ID?
    The Leitweg-ID is the routing identifier of the receiving public agency. Federal authorities, state authorities, and municipalities each issue their own. Your customer should provide theirs; without a valid Leitweg-ID, the invoice will be rejected at the central submission portal.
    Where do I submit XRechnung?
    Federal authorities use ZRE (Zentrale Rechnungseingangsplattform). Other public bodies use OZG-RE or their state-level platform. Many of these also accept Peppol delivery. This tool produces the XML; submission happens through your accounting system or the relevant portal.
    Need this in production?
    This tool runs on the PDF Generator API. Sign up for a free account and use the same endpoint at pdfgeneratorapi.com for full programmatic access and integration into your billing pipeline.
    Ready to automate?

    Bring e-invoicing into your stack.

    PDF Generator API gives you optimization, watermarking, encryption, form filling and more, all through one clean REST API. Free 14-day trial, no credit card.