Verifactu QR generator: create and check the tax QR code
Generate a sample Verifactu QR for free from the issuer NIF, series and number, issue date and total amount, or check what a QR you received contains. The QR holds the Spanish Tax Agency (AEAT) verification URL; generating it does not register the invoice: it is only on file if your invoicing system sent the record.
Generate or check a QR
The QR is generated in your browser: we do not send or store the data. It is an example: the invoice is only on file at the AEAT if your system sent the record.
Automate it with the API
With the Verifactu API the QR comes in the response, in Base64 and ready to print, together with the invoicing record sent to the AEAT:
curl -X POST https://api.verifacti.com/verifactu/create \
-H "Authorization: Bearer $VERIFACTI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"serie": "A", "numero": "1", "fecha_expedicion": "19-11-2026", "tipo_factura": "F1",
"descripcion": "Servicios de consultoría", "nif": "A15022510", "nombre": "Empresa Cliente SL",
"lineas": [{"base_imponible": "200.00", "tipo_impositivo": "21", "cuota_repercutida": "42.00"}],
"importe_total": "242.00"}'How to use it
- Generate: fill in the issuer NIF, series and number, issue date and total amount.
- Choose the environment (production or test), generate the QR and download it.
- Check: paste the URL of the QR you received or upload a photo or screenshot of it.
- Review the data and, if you want, open it on the AEAT site to see whether the invoice is on file.
What it checks
The QR follows the AEAT specification (QR code document, v0.5.0). Size, position and legend on the invoice, in Verifactu QR.
| Element | Value |
|---|---|
| Verification URL (production) | https://www2.agenciatributaria.gob.es/wlpl/TIKE-CONT/ValidarQR? |
| Verification URL (test) | https://prewww2.aeat.es/wlpl/TIKE-CONT/ValidarQR? |
| Parameters | nif, numserie, fecha (DD-MM-YYYY) and importe, URL-encoded |
| Image | Error correction level M, 6-module margin, 290 px PNG (the same settings as the Verifactu API) |
| Printed size | Between 30 × 30 and 40 × 40 mm (Order HAC/1177/2024) |
What it does not do
It does not send the invoice to the AEAT, register it or guarantee it is on file: that depends on your system having sent the invoicing record. The «VERI*FACTU» legend only goes in the VERI*FACTU mode. The tool does not check whether the issuer is obliged. If the QR domain is not the AEAT one, the QR is not valid and the invoice cannot be verified: the tool warns you and does not show the link.
Questions
Does generating the QR register the invoice?
What size must the printed QR be?
Can I use this QR on a real invoice?
Which software generates the Verifactu QR?
Other tools
Get the QR through the API
Test environment and test NIF included.