ES · ISO 13616

Spain IBAN — format, length, example & validator

IBANs issued in Spain are 24 characters long and begin with the country code ES. Validate a Spain IBAN below, or read on for the full structure, an example, and how the MOD 97 check digits work.

Valid ES IBAN — passes all checks

Free · client-side · no data uploaded

Country code
ES
Total length
24 chars
Check-digit algo
MOD 97-10
ISO 13616 pattern
4!n4!n1!n1!n10!n
4 digits (digits (0–9)), then 4 digits (digits (0–9)), then 1 digit (digits (0–9)), then 1 digit (digits (0–9)), then 10 digits (digits (0–9))

How a Spain IBAN is structured

A Spain IBAN is read left to right: a 2-letter ISO 3166 country code (ES), 2 MOD 97 check digits, then a 20-character BBAN. The BBAN is split into 5 fields: 4 digits, 4 digits, 1 digit, 1 digit, 10 digits.

Country code
ISO 3166 — Spain
ES
Check digits
MOD 97-10 checksum
91
BBAN field 1
4 digits · digits (0–9)
2100
BBAN field 2
4 digits · digits (0–9)
0418
BBAN field 3
1 digit · digits (0–9)
4
BBAN field 4
1 digit · digits (0–9)
5
BBAN field 5
10 digits · digits (0–9)
0200051332

Spain IBAN example

A sample Spain IBAN that passes all checks (format, length, MOD 97):

Formatted
ES91 2100 0418 4502 0005 1332
ES9121000418450200051332

How Spain IBAN check digits work

The two digits at positions 3–4 are a MOD 97-10 checksum computed from the country code and the BBAN. To verify it, the IBAN is rearranged (BBAN first, country code and check digits last), letters are converted to numbers (A = 10, B = 11, …), and the whole integer is taken mod 97. A valid IBAN has a remainder of 1. This catches any single-digit typo and most transposition errors — which is why a one-character mistake is enough to make a Spain IBAN fail validation instantly.

Spain IBAN FAQ

How long is a Spain IBAN?
A Spain IBAN is always 24 characters long: 2 letters for the country code (ES), 2 check digits, and a 20-character BBAN. Any Spain IBAN that is shorter or longer than 24 characters is invalid.
What country code does a Spain IBAN start with?
A Spain IBAN starts with the ISO 3166 country code ES. The first two characters are always ES, followed by two MOD 97 check digits, then the country-specific BBAN.
How do I validate a Spain IBAN?
Paste the IBAN into the validator on this page — it checks the character set, the 24-character length, and the MOD 97 check digits, all in your browser. You can also open the full IBAN validator with a Spain example pre-filled.
Does a valid Spain IBAN mean the account exists?
No. Validation only confirms the IBAN is structurally well-formed and the check digits are correct per ISO 13616. It does not verify the account exists, is open, or belongs to anyone. Always confirm with the recipient or their bank before sending money.
Spain IBAN format →Spain IBAN example →Open full validator

⚠️ Validation only checks structure and check digits against ISO 13616. A valid Spain IBAN does not guarantee the account exists or is open. Always confirm with the recipient or their bank before initiating a transfer.