IBAN format for Spain

CountrySpain (ES)
IBAN length24 characters
BBAN structure^[0-9]{20}$
Example IBANES91 2100 0418 4502 0005 1332
SEPA memberyes
National check digits validatedyes
Sourceibantools 4.5.4 for the format specification and national check-digit coverage (IBAN format defined by ISO 13616); examples and test bank codes maintained by IBANGuardian
Page generated2026-09-21

Check an IBAN for Spain

Spain’s IBAN is a 24-character, fully numeric format built directly on the Código Cuenta Cliente (CCC), the 20-digit domestic account identifier Spaniards used long before SEPA. The BBAN pattern is ^[0-9]{20}$.

Layout of an ES IBAN

The registry example ES91 2100 0418 4502 0005 1332 (a published test value from the SWIFT registry, not a live account) breaks down as:

  • ES91 - country code plus IBAN check digits
  • 2100 - entidad, the 4-digit bank code (2100 belongs to CaixaBank in this example)
  • 0418 - oficina, the 4-digit branch code
  • 45 - the two dígitos de control, Spain’s domestic check digits
  • 0200051332 - the 10-digit account number

A double layer of checking

Spain is notable for embedding two independent domestic check digits in the middle of the BBAN rather than at the end. The first control digit validates the entidad and oficina fields; the second validates the 10-digit account number. Both use a weighted modulo-11 scheme that any CCC-aware validator can recompute. Combined with the IBAN’s MOD-97 check digits, a Spanish IBAN offers three separate integrity checks, which makes accidental transposition errors very unlikely to slip through.

Domestic format and SEPA

The CCC (banco-sucursal-DC-cuenta, written 4-4-2-10) is still how many Spanish forms and older systems present account details; prefixing ES plus two check digits converts it to the IBAN with no reordering. Spain has been in SEPA from the start, so ES IBANs work throughout the euro payments area for credit transfers and direct debits.

One practical caution: Spain’s banking sector has consolidated heavily, and thousands of entidad and oficina codes have been merged or retired. An IBAN that passes every mathematical check may still point at a bank code that no longer exists. Formal validity is a statement about structure, not existence - the account behind a well-formed ES IBAN may be closed or fictitious, which is exactly why EU payment providers run Verification of Payee before executing transfers. For safe testing, use the generator on this page rather than inventing numbers.

Frequently asked questions

How long is a Spanish IBAN?

A Spanish IBAN is 24 characters: the letters ES, two IBAN check digits, and a 20-digit all-numeric BBAN. The BBAN is the old Código Cuenta Cliente (CCC) carried over unchanged from Spain's pre-SEPA domestic system.

What are the dígitos de control in a Spanish IBAN?

They are two domestic check digits sitting at positions 13-14 of the IBAN, between the branch code and the account number. The first digit checks the bank and branch codes, the second checks the account number, both using a weighted modulo-11 algorithm. They are independent of the IBAN's own MOD-97 check digits.

Does a valid Spanish IBAN guarantee the account is real?

No. Even with both the IBAN checksum and the domestic control digits passing, the number is only structurally plausible. The branch may have closed in one of Spain's many banking mergers, or the account may never have been opened. Verification of Payee name checks are what confirm an actual account holder.

Related: test IBAN for Spain ·all country formats ·what is an IBAN

Also from ZENOM

Would your buyer find all the answers about your business?

See what ZENOM is doing about it.

About ZENOM

Or bring a specific problem of your own.

Contact ZENOM