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
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"}'
Test environment and test NIF included

How to use it

  1. Generate: fill in the issuer NIF, series and number, issue date and total amount.
  2. Choose the environment (production or test), generate the QR and download it.
  3. Check: paste the URL of the QR you received or upload a photo or screenshot of it.
  4. 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.

What the Verifactu QR contains and how it is generated
ElementValue
Verification URL (production)https://www2.agenciatributaria.gob.es/wlpl/TIKE-CONT/ValidarQR?
Verification URL (test)https://prewww2.aeat.es/wlpl/TIKE-CONT/ValidarQR?
Parametersnif, numserie, fecha (DD-MM-YYYY) and importe, URL-encoded
ImageError correction level M, 6-module margin, 290 px PNG (the same settings as the Verifactu API)
Printed sizeBetween 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?

No. The QR only holds the verification URL. The invoice is on file at the AEAT once your system sends the invoicing record.

What size must the printed QR be?

Between 30 × 30 and 40 × 40 mm. More in Verifactu QR.

Can I use this QR on a real invoice?

Only if the data match a record your system has sent. If you use the Verifactu API, the QR already comes in the response.

Which software generates the Verifactu QR?

Your invoicing system. With the Verifactu API it comes ready, in Base64, in the response.

Get the QR through the API

Test environment and test NIF included.

Test environment and test NIF includedRead the documentation