What is an .xsig file?
An .xsig is an XML file carrying a XAdES electronic signature, in one of three common forms:
- Enveloped: the signature sits inside the document, as in signed Facturae invoices.
- Enveloping: the signature wraps the document, stored base64-encoded. PDFs and other files are often signed this way.
- Detached: AutoFirma stores the document in a
CONTENTelement next to the signature; other detached signatures only point to an external file.
Spain makes e-invoicing between businesses compulsory from 6 October 2027 for companies with more than €8 million turnover and from 6 October 2028 for everyone else. See EU e-invoicing deadlines for the sources and the other countries.
What is shown
- The signer and their identifier (usually the NIF in Spanish certificates) and organisation
- Certificate issuer and validity, with a warning if the certificate had expired at the signing time
- Declared signing time, format (XAdES-BES, -EPES, -T …) and algorithm
- Signature policy (such as the Facturae policy) and the signer’s declared role
- Whether the certificate declares itself qualified and whether the signature carries a timestamp
These are the signature’s own claims. The signature is not verified cryptographically, nor is the issuer checked against the trusted lists, nor is revocation checked.
Frequently asked questions
- What is an .xsig file?
- A file signed with XAdES, the XML signature format. AutoFirma, Spanish invoicing software and many government portals produce them. It can hold a Facturae invoice with the signature inside, or any other document (a PDF, a contract, an image) stored base64-encoded inside the signature.
- How do I open an .xsig without AutoFirma?
- Drop it on the area above. A Facturae invoice is shown as an invoice you can print or save as PDF. Any other document can be downloaded with its proper extension, and a PDF is previewed right here. In every case you see who signed and with which certificate.
- How do I convert an .xsig to PDF?
- It depends on what is inside. If it holds a PDF, nothing needs converting: click “Download the document” to get the original PDF. If it is a Facturae invoice, click “Print or save as PDF” and choose “Save as PDF”. Generic file converters do not understand the XAdES signature and usually return the raw XML.
- Is my file uploaded?
- No. Your browser reads it and it never leaves your computer. The page’s Content Security Policy forbids its scripts to connect to any other server; you can check this in the Network tab of the developer tools.
- Is the signature verified?
- No. The tool shows what the signature declares: signer, tax ID, certificate issuer, validity, signing time, format and policy. It does not check the cryptography, the trust in the issuer or revocation. For a legally meaningful check use VALIDe or another conformant validator; it uploads the file to its server.
Sources
- Políticas de firma electrónica de FacturaeMinisterio de Hacienda, facturae.gob.es
- Últimas versiones Facturae (esquema XSD 3.2.2, 3.2.1 y 3.2)Ministerio de Hacienda, facturae.gob.es
- VALIDe: validar firma electrónicaGobierno de España, valide.redsara.es
Last reviewed: