Toolshub
validate · runs in your browser

Audit the Verifactu huella chain of your billing records

Recomputes each record’s SHA-256 huella in the AEAT field order, walks the chain, and names the record where the link breaks.

$24 buyout · free up to 2.0 MB per file· 3 free runs a day

File
No file chosen

CSV chain export or Verifactu registro XML. Runs in this tab; nothing is uploaded.

Runs in this tab. Nothing is uploaded.

Result

Free tier: up to 2 MB per file, 1 files per run, 3 runs per day. A buyout for this tool is $24 once. Compare.

Free tier in use. The buyout for this tool is one payment, not a subscription.

What this page does differently

A Verifactu chain fails as a whole: one wrong huella and every record after it points at the wrong predecessor. This page reads a chain export (CSV) or the registro XML, rebuilds each hash input string exactly as the AEAT specification orders the fields, recomputes SHA-256 in uppercase hex, and checks two things separately — does the stored huella match, and does the declared previous huella match the record before it. The report prints every input string so you can re-hash it yourself, and marks the first broken record instead of condemning the file.

separates a self-hash mismatch from a broken link and prints each record’s exact hash input string, so the break is located rather than merely detected

Sample input and output

Run Case Size Notes
Input A chain export with one broken link 942 B four records — three altas and one anulación whose declared previous huella points two records back
Output An HTML audit and a findings CSV 5.2 KB marks record 4 link BROKEN with expected and actual huella, leaves records 1–3 ok, and prints all four input strings

These are the demo numbers this page was built against, not a guarantee for every file.

What you can check yourself

The claim What the test showed
The three published AEAT examples reproduce byte for byte. The test suite hashes the input strings of spec cases 6.1, 6.2 and 6.3 and compares them with 3C464DAF…, F7B94CFD… and 177547C0…, the values printed in the AEAT document.
A break is located, not just detected. On the broken-link fixture the report shows records 1–3 ok and record 4 link BROKEN, and the CSV carries code link with the expected and the actual huella side by side.

Questions

When does Verifactu actually apply to me?

The huella and chaining rules are already published, but the obligation starts on 2027-01-01 for companies subject to corporate income tax and on 2027-07-01 for the remaining obligated issuers. Auditing a chain now is how you find out whether your software will produce a valid one before that date, not after.

Is this the AEAT validation?

No. It recomputes the huella and checks the chain locally, in your browser, against the published hash specification. It does not submit anything, does not validate the XSD, and does not generate the QR. A clean report means the chain holds here; the AEAT receiver remains the authority and marks a mismatch “Aceptado con errores”.

Does it cover TicketBAI or the event records?

No. TicketBAI has its own hash rules and its own provincial endpoints, and RegistroEvento uses a different field set. Both are out of scope in this version, and the report footer says so rather than leaving you to assume a clean report covered them.

What does the CSV need to contain?

One record per row, with the specification field names as the header: IDEmisorFactura, NumSerieFactura, FechaExpedicionFactura, TipoFactura, CuotaTotal, ImporteTotal, Huella (the stored one), HuellaAnterior (the declared previous one), FechaHoraHusoGenRegistro and PrimerRegistro. An optional kind column takes alta or anulacion; without it every row is read as alta.

My amounts have one decimal place. Will the hash differ?

No. The specification treats trailing fractional zeros as irrelevant, so 123.1 and 123.10 produce the same huella. Values are trimmed at both ends and nothing else is rewritten — a comma decimal separator or a thousands separator is reported as a numeric-format finding instead of being silently repaired.

Price

This tool is $24 once, for as long as the tool exists. One payment, not a subscription. The licence is stored in this browser; the transaction id restores it elsewhere.

Free: 3 runs a day, 2 MB a file, a batch of 1. Buyout: a batch of 50, 200 MB a file.

Related