Facturae: create and download your 3.2.2 XML invoice for free
Independent, non-governmental site
Fill in your details, the public body’s and the line items: the creator works out base, VAT and withholding, and lets you download the Facturae ready to sign and file on FACe.
Invoice total
€1,123.60
Ready to download
| Taxable base | €1,060.00 |
| VAT 21% | €222.60 |
| Withholding | − €159.00 |
Before sending it to FACe, sign the XML with your certificate in a signing application: this creator does not sign.
Once Verifactu applies to you, your invoices must come from a system that creates their record and QR: this creator is for invoicing public bodies in Facturae and for learning the format, it does not replace that system.
Invoice A-2026-0042
Date: 20 October 2026
Facturae 3.2.2
Issuer
Lucía Martín Ruiz
12345678Z
Calle Mayor 10, 28013 Madrid, Madrid, ESP
Recipient
Ayuntamiento de Ejemplo
P0000000J
Avenida de la Constitución 5, 41001 Sevilla, Sevilla, ESP
DIR3 codes: Accounting office L01000000 · Managing body L01000000 · Processing unit L01000000
| Item | Quantity | Price | VAT | Amount |
|---|---|---|---|---|
| Diseño de catálogo, octubre 2026 | 1 | €850.00 | 21% | €850.00 |
| Horas de maquetación | 6 | €35.00 | 21% | €210.00 |
| Taxable base | €1,060.00 |
| VAT 21% | €222.60 |
| Withholding 15% | − €159.00 |
| Invoice total | €1,123.60 |
Due date: 19 November 2026 · IBAN: ES9121000418450200051332
Prepared by Radif Partners · Method · Rules read in the BOE and at the AEAT on 25 October 2026
Facturae is the XML e-invoice format required by Spanish public bodies. Since 15/01/2015, Law 25/2013 has required public and private limited companies, foreign entities, permanent establishments, joint ventures and several groupings and funds to invoice public bodies electronically, signed and filed through the relevant general entry point, which for central government is FACe. Each public body may exempt invoices up to 5000 euros. The current format version is 3.2.2. This creator builds a Facturae 3.2.2 file in your browser: it adds the three DIR3 codes required by Order HAP/1074/2014 (accounting office, managing body and processing unit), computes line amounts, VAT per rate and personal income tax withholding, and blocks the download while any detail is missing. The XML it produces has been checked against the official schema. It does not sign it: you add the advanced electronic signature afterwards with your certificate in a signing application, because no web page should handle your certificate.
Who must invoice public bodies in Facturae
Article 4 of Law 25/2013 lets any supplier send public bodies an e-invoice and obliges a closed list of entities: public limited companies, private limited companies, legal persons and entities without Spanish nationality, permanent establishments and branches of non-residents, joint ventures, and economic interest groupings and funds. Public bodies may exempt invoices up to €5,000 by regulation. Check your case:
E-invoice to public bodies
E-invoice to public bodies
Paper allowed
| Format | Facturae 3.2.2 |
| DIR3 codes | Accounting office, managing body, processing unit |
| Maximum size | 8 MB |
| Filing with the public body | 30 days from delivery (art. 3) |
What a Facturae for a public body contains
| Block | Content | Basis |
|---|---|---|
| Header | Schema version, batch issuer, number of invoices and totals | Facturae schema |
| Parties | Tax details of seller and buyer, with tax ID and address | Facturae schema |
| Administrative centres | DIR3 codes of accounting office, managing body and processing unit | Order HAP/1074/2014, annex |
| Invoice | Series and number, date, lines, taxes, withholdings and totals | Facturae schema |
| Signature | XAdES signature with a qualified certificate, or an electronic seal | Law 25/2013, art. 5 |
The three centre codes cause more rejections than anything else. Order HAP/1074/2014 makes them mandatory so the entry point knows where to forward the invoice, and they must come from the common DIR3 directory. The whole file, attachments included, may not exceed 8 MB. The creator adds the three codes as soon as you pick a public body as recipient and will not let you download while any of them is missing. It also checks that every line has a description and a quantity above zero, that Spanish tax IDs have a valid format and that Spanish postcodes have five digits.
From form to FACe in three steps
First, fill in the form and download the XML. The creator writes the file under the official Facturae schema 3.2.2, with amounts rounded to two decimals and taxes grouped by rate. Second, sign the XML with your certificate in an application that applies the Facturae signature policy; the options are explained in how to sign a Facturae. Third, file it on FACe or the entry point of your region or city council, and keep the registry number it returns.
This creator keeps no invoice register and chains no hashes, so it does not meet Verifactu on its own. If your business is caught and uses the creator for an invoice, that invoice must also be recorded in your invoicing system. To open a Facturae you receive, use the viewer; if you would rather install software, see Facturae download.