Skip to main content
Skip to main content

Spanish Veri*Factu Invoice Hash Generator

Generate and format valid Spanish Veri*Factu Invoice Hash for software testing and development.

Waiting for generation...

About Spanish Veri*Factu Invoice Hash

The Veri*Factu system was established by Anti-Fraud Law 11/2021 and Royal Decree 1007/2023 in Spain, mandating billing systems (SIF) to produce immutable invoice records with sequential SHA-256 hash chaining and instant QR verification for the Spanish Tax Agency (AEAT).

This tool computes the cryptographic signature chain of the current invoice using issuer NIF/CIF, series, number, issue date, total amount, and previous invoice hash, encoding parameters into the official AEAT verification URL.

Anatomy & Structure of Veri*Factu (AEAT)

The Spanish Veri*Factu system specifies structured query parameters for immediate tax audit verification:

PositionFieldLengthMeaning & RuleExample
nifIssuer NIF9 charactersTax ID of invoice issuer (DNI, NIE, or CIF)B12345678
numserieSeries & InvoiceUp to 60 charsSeries code and sequential invoice numberFAC-2026-1001
fechaDate10 charsDate of issuance formatted as DD-MM-YYYY26-08-2026
importeTotal AmountVariableTotal invoice monetary amount in Euros with 2 decimal places150.50
huellaSHA-256 Hash16 hex charsCryptographic fingerprint of previous invoice for immutable chaininga1b2c3d4e5f67890

Veri*Factu Cryptographic Chaining Algorithm (SHA-256)

Invoice chain integrity and immutability are guaranteed via the SHA-256 cryptographic hash function:

Fingerprint = SHA-256(NIF + Series + Date + InvoiceType + TotalAmount + PreviousHash)
  1. 1. Concatenate in UTF-8 all mandatory invoice tax fields without spaces.
  2. 2. Include the cryptographic fingerprint of the immediately preceding invoice to form the blockchain-like link.
  3. 3. Execute standard SHA-256 algorithm per FIPS PUB 180-4.
  4. 4. Extract the first 16 hexadecimal characters to embed in the QR code URL parameters.
  5. 5. The generated QR URL enables instant verification on the AEAT electronic tax portal.

Frequently Asked Questions & Technical Guidelines

What is the compliance deadline for Veri*Factu billing systems in Spain?
Software vendors must provide compliant software versions by July 29, 2025, while businesses and self-employed professionals in Spain must operate certified systems by 2026/2027.
Are the data in this tool real or official?
All identifiers generated by this tool are strictly synthetic and calculated via mathematical algorithms for software development and QA testing purposes. Using fake data in official or legal filings is strictly prohibited by law.