What is Facturae?
Facturae is the XML e-invoice format of the Spanish administration, published by the Ministry of Finance. Suppliers use it to send invoices to public bodies through FACe and the regional and local entry points. Versions 3.2, 3.2.1 and 3.2.2 are in use; each has its own XSD but the same element names. One file holds one invoice or a batch of invoices between the same seller and customer. A signed Facturae carries its XAdES signature inside the XML and usually ends in .xsig.
How it works
- Drop the file on the area above or click “Choose XML or XSIG file”. If the invoice came by email, save the attachment first.
- The invoice appears as a document, with key data, the result of the checks and, for signed files, the signature details on the right.
- “Print or save as PDF” opens the print dialog with the invoice alone. Choose “Save as PDF” to keep a readable copy.
What is checked
- Per line: total cost = quantity × unit price, gross amount = cost − discounts + charges
- Totals with the schema’s formulas: invoice total = taxable base + output tax − withholdings; outstanding and executable totals
- VAT, IGIC or IPSI amounts and IRPF withholding by rate, including the equivalence surcharge
- Batch header totals against the sum of the invoices, instalments against the executable total
- Check characters of the seller’s and customer’s NIF (DNI, NIE, companies) and IBAN check digits
- For invoices to public bodies, the DIR3 codes of accounting office, managing body and processing unit that FACe needs
A plausibility check, not a validation against the XSD or by FACe. If something does not add up, ask the seller before paying or booking the invoice.
Rules and deadlines
Since 15 January 2015, public limited and limited liability companies, among others, must send invoices to Spanish public bodies as Facturae e-invoices (Ley 25/2013). Between businesses, Real Decreto 238/2026 makes e-invoicing mandatory from 6 October 2027 for businesses whose volume of operations exceeded €8 million, and from 6 October 2028 for everyone else; the clock started when Orden HAC/1028/2026 took effect on 6 October 2026. The invoice must follow the EN 16931 semantic model in UBL, CII, EDIFACT or Facturae syntax. This page is information, not tax advice.
Frequently asked questions
- How do I open a Facturae invoice without installing anything?
- Drop the .xml or .xsig file on the area above or click “Choose XML or XSIG file”. Your browser shows a normal invoice right away: seller, customer, lines, the VAT breakdown, any IRPF withholding and the amount to be paid. No desktop application, no Java, no account. It works the same on Windows, Mac, Linux and phones.
- Is my invoice sent anywhere?
- No. Your browser reads the file and it never leaves your computer. No server of this site accepts files, and the page’s Content Security Policy forbids its scripts to connect to any other server. You can check this in the Network tab of your browser’s developer tools.
- What is an .xsig file?
- A Facturae invoice signed with XAdES. The signature sits inside the XML itself (an enveloped signature), so the .xsig contains the whole invoice. The viewer shows the invoice and, next to it, who signed it, with which certificate, the declared signing time and the signature policy.
- Can I save the invoice as PDF?
- Yes. Click “Print or save as PDF” and choose “Save as PDF” in the print dialog. Only the invoice is printed. The PDF is a readable copy; the legally valid document remains the original XML or XSIG file, which you should keep.
- Does the viewer check that the signature is valid?
- No. It shows what the signature claims (signer, certificate issuer, time, policy), but does not check the cryptography, the trust in the certificate or its revocation. For a legally meaningful verification use a conformant validator such as the Spanish government’s VALIDe; note that it uploads the file to its server.
- What does the check cover?
- It recomputes the totals the Facturae schema defines: cost and gross amount per line, total before taxes, tax amounts by rate, withholdings, invoice total, outstanding and executable totals, and the instalments. It also checks the check characters of Spanish tax IDs (NIF) and IBANs and, for invoices to public bodies, that all three DIR3 codes are present.
- Is this an official validation?
- No. It is a pre-check in the browser. It does not validate the file against the XSD or apply all of FACe’s rules, and it is not tax advice. For invoices to the public sector, FACe offers its own validator.
Sources
- Últimas versiones Facturae (esquema XSD 3.2.2, 3.2.1 y 3.2)Ministerio de Hacienda, facturae.gob.es
- Políticas de firma electrónica de FacturaeMinisterio de Hacienda, facturae.gob.es
- Ley 25/2013, de 27 de diciembre, de impulso de la factura electrónica y creación del registro contable de facturas en el Sector PúblicoBoletín Oficial del Estado, BOE-A-2013-13722
- Orden HAP/1074/2014, condiciones técnicas y funcionales del Punto General de Entrada de Facturas Electrónicas (oficina contable, órgano gestor y unidad tramitadora)Boletín Oficial del Estado, BOE-A-2014-6662
- Orden HAP/1650/2015 (anexo II: validación del esquema Facturae y de la política de firma en FACe)Boletín Oficial del Estado, BOE-A-2015-8844
- FACe: validar y visualizar facturasPunto General de Entrada de Facturas Electrónicas de la AGE
- Real Decreto 238/2026, de 25 de marzo, sistema de facturación electrónica obligatoria entre empresarios y profesionales (arts. 7, 11 y disposiciones transitorias)Boletín Oficial del Estado, BOE-A-2026-7295, 31.03.2026
- Orden HAC/1028/2026, de 2 de octubre, solución pública de facturación electrónica (en vigor el 6 de octubre de 2026; inicia el cómputo de los plazos)Boletín Oficial del Estado, BOE-A-2026-20587, 05.10.2026
- VALIDe: validar firma electrónicaGobierno de España, valide.redsara.es
Last reviewed: