Spain IBAN calculator and checker

A Spanish IBAN has 24 characters: ES, two check digits, then the bank code (entidad), branch code (oficina), control digits (DC) and account number (número de cuenta). Enter the local details to build one, or paste an IBAN to check it, all in your browser.

Calculate or check a Spanish IBAN

Enter the bank code (entidad), branch code (oficina), control digits (DC) and account number (número de cuenta). The calculator pads short numbers with zeros, works out any national check digits you leave empty and adds the two IBAN check digits.

Switch to Check to paste an IBAN instead: it tests the length, characters, check digits and national check, and shows the bank, branch and account parts. Nothing you type leaves the page.

ES IBAN format

A Spanish IBAN is 24 characters: ES, two check digits, then the bank code (entidad), branch code (oficina), control digits (DC) and account number (número de cuenta).

In the printed format, k marks the check digits, a and b the bank, s the branch, sort code or prefix, c the account number and x a national check character.

IBAN length
24 characters
Check digits
2 digits after ES
Bank code (entidad)
4 digits
Branch code (oficina)
4 digits
Control digits (DC)
2 digits
Account number (número de cuenta)
10 digits
National check digit
DC, the 2 digits after the branch code
SEPA
Yes, EU member
Printed format
ESkk bbbb ssss xxcc cccc cccc
Example IBAN
ES91 2100 0418 4502 0005 1332

Frequently asked questions

  • 24 characters: ES, two check digits, then the bank code (entidad), branch code (oficina), control digits (DC) and account number (número de cuenta). Printed in groups of four, it looks like ES91 2100 0418 4502 0005 1332.

  • The two digits after the bank and branch codes. The first checks the entidad and oficina, the second the ten-digit account number, both with weights 1, 2, 4, 8, 5, 10, 9, 7, 3, 6 modulo 11. Leave them empty and the calculator works them out.

  • Yes. Spain is an EU member state, so it is in SEPA: euro payments to a Spanish IBAN can go by SEPA credit transfer.

  • With the ISO 7064 mod 97-10 algorithm. The bank code (entidad), branch code (oficina), control digits (DC) and account number (número de cuenta) and the country code ES are turned into digits, and the two check digits are chosen so the whole number leaves a remainder of 1 when divided by 97. The calculator does this for you and rejects any input that cannot make a valid ES IBAN.

  • Yes. The calculator and the checker run entirely in your browser: the details you enter are never sent to a server, stored or shared. There is no sign-up and no fee.

  • Yes. The calculator covers 41 countries and the checker all 89 in the SWIFT IBAN registry. Pick a different country in the form above, or open its page from the list below.

Paying an IBAN from stablecoins? Holyheld Business converts USDC to EUR and pays it out by SEPA. See pricing or the guide to off-ramping USDC to an IBAN.