Spain IBAN Validator
Validate Spanish IBANs (ES) — 24 chars with mod-97 checksum and bank/branch codes. For international billing systems.
Spanish IBAN (ES): 24 characters built on top of CCC
A Spanish IBAN is exactly 24 characters long and is built on top of the legacy CCC (Codigo Cuenta Cliente), the 20-digit domestic format that Spain used before SEPA migration in 2014. The CCC packs the bank, branch, internal control digits and account number — and since 2014 it lives inside the BBAN portion of the IBAN.
The layout is: ES (country) + 2 IBAN check digits (ISO 7064 mod 97-10) + 4 entity code + 4 branch code (oficina) + 2 CCC control digits + 10 account number. Example: ES91 2100 0418 4502 0005 1332.
Main Spanish banks and entity codes
0049Banco Santander0182BBVA (Banco Bilbao Vizcaya Argentaria)2100CaixaBank0081Banco Sabadell0019Deutsche Bank Espana2095Kutxabank1465ING Espana0073Openbank (Santander digital)1490Self Bank / Singular Bank
Double validation: IBAN mod-97 and CCC internal digits
A Spanish IBAN must satisfy two arithmetic constraints. The outer constraint is the standard ISO 7064 mod 97-10. The inner constraint is the CCC pair of control digits, computed with weighted sums modulo 11. One digit checks the entity + branch (8 digits), the second checks the 10-digit account number. A typo in any single position is therefore caught with high probability:
// CCC inner check (Spanish-specific)
weights = [1, 2, 4, 8, 5, 10, 9, 7, 3, 6]
// digit 1: entity(4) + branch(4) padded with "00" prefix
// digit 2: account(10)
control = 11 - sum mod 11
if control == 10: control = 1
if control == 11: control = 0
A common anti-pattern is mis-detecting the country: FR French and ES Spanish IBANs have very similar layouts. Always anchor on the first two letters and confirm the length matches the country registry.
Bizum and the Spanish instant payments ecosystem
Every Spanish IBAN plugs into Bizum, Spain's mobile payments network sponsored by 27 banks (Santander, BBVA, CaixaBank, Sabadell, Bankinter and others). Bizum settles in seconds between phone numbers linked to IBAN-backed accounts — comparable to Pix in Brazil or MB WAY in Portugal. For ecommerce, Bizum Compras is a checkout button on Spanish merchants. For recurring billing — utilities, gym, insurance, autonomo invoices — SEPA Direct Debit with mandate is the default.
Comparison with Brazil: the Brazilian IBAN exists (29 chars) but is rarely used domestically because Pix took over. In Spain the IBAN is the core identifier: payroll, autonomo invoicing, IRPF tax refunds, social security deposits, lease deposits — all keyed by IBAN.
Fintechs, challenger banks and EU passporting
Players issuing ES IBANs include BBVA, Openbank, ImaginBank (CaixaBank), Bnext, EVO Banco, plus EU passporting fintechs: N26 (DE), Revolut (LT, with ES IBAN since 2022), Wise (BE) and Lydia (FR). Brazilians residing in Spain with NIE/TIE can open accounts at any traditional bank; Brazilians without residency can still open EU IBANs through Wise or Revolut.
FAQ
Is the IBAN mandatory for Spanish domestic transfers? Yes. Since SEPA migration in 2014, every domestic transfer — payroll, autonomo invoicing, Hacienda refunds, IRPF, social security — uses IBAN. The legacy 20-digit CCC still appears in some banking apps but is always converted to IBAN at the rails.
Does Bizum work with any Spanish IBAN? Bizum is supported by 27 of the largest Spanish banks. Most retail accounts at Santander, BBVA, CaixaBank, Sabadell, Bankinter, Kutxabank and ING are eligible. EU passporting fintechs (Wise, N26) typically do not participate in Bizum, even if they issue Spanish-format IBANs.
Can a Brazilian resident in Spain open a bank account? Yes. With NIE (Numero de Identidad de Extranjero) or TIE (Tarjeta de Identidad de Extranjero) and a passport, traditional banks open accounts. Without residency, fintechs like Wise or Revolut issue EU IBANs accepted across SEPA.
Why does the BBAN have two CCC control digits? Spain adopted the dual-digit CCC scheme in the 1970s to protect against transcription errors over telex. When IBAN was added on top in 2007, the two CCC digits stayed embedded so legacy core banking systems could keep validating accounts at the BBAN level.
Is the format identical in Canarias and Baleares? Yes. The Canary Islands and Balearic Islands are part of Spain and share the same ES country code and 24-character IBAN format. Andorra has its own country code AD (24 chars) and is a separate registry.
Related Tools
CPF Validator
Validate Brazilian CPF numbers instantly using the official algorithm. Useful for testing document validation in applications. No data sent to servers.
Batch CPF Validator
Validate a list of CPFs (one per line) and see which are valid and which are not. No data sent to servers.
Batch CNPJ Validator
Validate a list of CNPJs (one per line) with a summary of valid, invalid and total. No data sent to servers.