Spanish IBAN format (ES) — length, structure, example

CountrySpain (ES)
IBAN length24 characters
SEPA memberyes
Domestic check digit validatedyes

Check a Spain IBAN

Spaces and hyphens are fine — checked instantly as you type, only in your browser.

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:

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

Data source: ISO 13616 IBAN Registry Release 102 (June 2026). Last verified: 2026-07-05.