IBAN Structure Spain

Last reviewed: · Source: ISO 13616 / SWIFT IBAN Registry

Spain's IBAN is 24 characters long in the format ESkk BBBB GGGG KKCC CCCC CCCC. After ES and the IBAN check digits come a 4-digit bank code (Código de entidad), a 4-digit branch code (Código de oficina), two national control digits (Dígitos de control) and the 10-digit account number. Notably, the Spanish IBAN carries two check systems — the international MOD-97 (ISO 7064) and national control digits inherited from the older CCC format (Código Cuenta Cliente). This calculator checks the IBAN structure and international MOD-97; bank-specific national rules and account existence can only be confirmed by the account-holding bank. For payments from EU/EEA banks to Spain, required routing details depend on the bank, currency and route; check them in advance with your bank.

Structural fields are based on the official SWIFT IBAN Registry. The editorial method and validation boundary are documented on our German editorial page (German).

Overview

CountrySpain (ES)
IBAN length24 characters
FormatESkk BBBB GGGG KKCC CCCC CCCC

Visual breakdown

Fictitious format example, not payment data:

ES9121000418450200051332
Country codeCheck digitsBank codeBranch codeNational check digit(s)Account number

Character-by-character explanation

SegmentCharactersLengthExplanation
Country codeES2ES for Spain (ISO 3166-1)
Check digits912Two check digits per MOD-97
Bank code210044-digit bank code (Código de entidad)
Branch code041844-digit branch code (Código de oficina)
National check digit(s)4522 Spanish control digits (Dígitos de control)
Account number02000513321010-digit account number

Validate a Spain IBAN

Use the free IBAN Checker to verify any Spain IBAN — length, country format and the ISO 7064 MOD-97 check digit — entirely in your browser.

Open the IBAN Checker

Frequently asked questions

How do I check the length of an IBAN from Spain?
Remove spaces and count 24 characters. The first two characters are ES; the remaining positions follow ESkk BBBB GGGG KKCC CCCC CCCC. A different length is formally invalid for this country format.
What do the check digits in a Spain IBAN mean?
The two check digits are calculated from the complete IBAN using ISO 7064 MOD-97. They help detect format and transcription errors. A passing checksum does not confirm that an account exists or identify its account holder.
What should I do when an IBAN is formally invalid?
Check the country code, character count, letters and digits, and the check digits. Compare the entry with your bank records or ask the bank for the correct IBAN. This checker validates structure and checksum; it does not verify account ownership or payment approval.

IBAN structure for other countries