Synthetic QA data · ES

Spain test IBAN numbers

Ten checksum-valid Spain test IBANs with their domestic bank code and account number, ready for a payment form, fixture or unit test, plus invalid ES cases that a correct validator must reject.

Synthetic only: the bank code may belong to a real Spain bank, but each account number is random. Never use these values for payments or to represent a real account.

24characters
EScountry code
20BBAN characters
YesSEPA country

Valid Spain test IBANs

IBANBank codeBranch codeAccount numberBank (public registry)
ES26 3166 2019 2525 5054 3648 3166 2019 2550543648 CAJA RURAL SAN ISIDRO DE LES COVES DE VINROMA, S. COOP. DE CREDITO V., Les Coves De Vinroma
ES09 3054 9960 3340 9413 6794 3054 9960 4094136794 C.R. DE CHESTE SCC, Cheste (Valencia)
ES07 3184 2767 4562 5754 7965 3184 2767 6257547965 CAJA DE CREDITO DE ALCOY, C.C.V. (EN LIQUIDACION)
ES18 3019 0328 5192 1416 7000 3019 0328 9214167000 SDAD. COOP. ANDALUZA CTO., CAJA RURAL SAN JOSE
ES80 2083 7198 8139 6884 2857 2083 7198 3968842857 KUTXABANK, S.A., Bilbao
ES53 3016 0355 0973 7674 2339 3016 0355 7376742339 CAJA RURAL DE SALAMANCA, Salamanca
ES05 0130 3108 5452 9152 4392 0130 3108 5291524392 BANCO CAIXA GERAL, Madrid
ES14 2409 3374 8033 8514 6377 2409 3374 3385146377 CAJA DE AHORROS DEL MEDITERRANEO
ES40 2071 0520 5802 3550 7534 2071 0520 0235507534 CAIXABANK, S.A., Barcelona
ES02 0179 5097 6208 9092 2185 0179 5097 0890922185 CA INDOSUEZ WEALTH (EUROPE), SUCURSAL EN ESPANA, Madrid

Invalid ES IBANs for negative tests

Each value is derived from the first valid IBAN above and re-checked, so the expected result is exact.

CaseInputExpected validator result
Wrong check digits ES2731662019252550543648 Reject: MOD-97 checksum fails
Transposed BBAN digits ES2613662019252550543648 Reject: MOD-97 checksum fails
One character too short ES263166201925255054364 Reject: length does not match the country format
Wrong country prefix FR2631662019252550543648 Reject: length or checksum fails for the other country
Lowercase with spaces es26 3166 2019 2525 5054 3648 Accept after normalizing case and whitespace

Spain IBAN format

ES + 2 check digits + 4 digits + 4 digits + 1 digit + 1 digit + 10 digits = 24 characters. Validate the length and character classes first, then the MOD-97 checksum: move the first four characters to the end, convert letters to numbers (A=10 … Z=35) and the remainder modulo 97 must be 1.

Need rows for the same bank, city or BIC your integration talks to? The generator can target them, keep a stable seed and export 1,000 rows at a time.

curl -X POST https://ibangen.com/api/v1/generate \
  -H "X-API-Key: $IBANGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country": "Spain", "quantity": 100}'

Test against real bank structures, not just checksums

Free: 10 ES rows at a time. Pro adds bank targeting, 1,000-row batches, CSV/JSON exports and the API; Business adds exact BIC and branch targeting.

Questions

Are these Spain test IBANs real bank accounts?

No. They are synthetic ES IBANs with a correct national format and MOD-97 checksum. The bank code can match a real institution, but the account number is random and must never be used for payments.

How long is a Spain IBAN?

A Spain IBAN has 24 characters: the country code ES, two check digits and a 20-character BBAN (4 digits, 4 digits, 1 digit, 1 digit, 10 digits).

Can I get more Spain test IBANs for a specific bank or city?

Yes. The Spain generator creates up to 10 rows free. Paid plans add bank, city and exact BIC targeting, 1,000-row batches, CSV/JSON exports and the same data through the API.

Test IBANs for other countries

IBANgen provides synthetic QA data. It does not verify account ownership, balances, reachability or payment execution.