ShareYourGroupShareYourGroupIBAN

IBAN format of Spain: 24 characters, starts with ES

An IBAN of Spain is 24 characters long and begins with ES. Here is what each part means, a made-up example, and how to check one.

Made-up example (not a real account)

ES98 1234 5678 9012 3456 7890

  • ESCountry
  • 98Check digits
  • 1234Bank code
  • 5678Branch code
  • 90National check digits
  • 1234567890Account number
Length
24 characters
Starts with
ES
After the check digits
4 digits, then 4 digits, then 1 digit, then 1 digit, then 10 digits
Single Euro Payments Area (SEPA)
Yes
Layout code in the registry
ES2!n4!n4!n1!n1!n10!n

Part by part

PositionPartMade ofIn the example
1 to 2Country code2 capital letters: ESES
3 to 4IBAN check digits2 digits98
5 to 8Bank code4 digits1234
9 to 12Branch code4 digits5678
13 to 14National check digits2 digits90
15 to 24Account number10 digits1234567890

The parts with a name here are: Bank code, branch code, national check digits, account number. The bank decides the bank code and the account number; you never have to work them out yourself. The layout code ES2!n4!n4!n1!n1!n10!n is how the registry writes this: a number, then n for digits, a for capital letters or c for letters or digits.

How to check an IBAN of Spain

  1. Count the characters without spaces. There must be exactly 24.
  2. The first two must be ES, and the next two must be digits.
  3. After those four, the rest must follow the layout: 4 digits, then 4 digits, then 1 digit, then 1 digit, then 10 digits.
  4. Run the check-digit test. The IBAN checker does all four steps for you and shows which one fails.

Writing it down

On paper, an IBAN is written in groups of four characters with spaces, as in the example above, so that it is easier to read and compare. In online banking and in files it is entered without spaces. Both forms are the same IBAN. Letters are always capitals.

How it compares

At 24 characters, it sits between the shortest IBAN in the registry (Norway, 15 characters) and the longest (Russia, 33 characters). The same length is used by Andorra, British Virgin Islands, Czechia, Moldova, Pakistan, Romania, Saudi Arabia, Slovakia, each with its own layout. After the country code it has digits only.

Common questions

How many characters does an IBAN of Spain have?

An IBAN of Spain always has 24 characters: the letters ES, two check digits and 20 more characters for the bank and the account.

What does an IBAN of Spain start with?

It starts with ES, the country code, followed by two check digits.

Is Spain in SEPA?

Yes. Spain is part of the Single Euro Payments Area, so euro transfers to and from it use the IBAN.

Layout checked in November 2026 against the SWIFT IBAN Registry data. The example is made up. For a payment, use only the IBAN given by the account holder or the bank, and check with the bank if in doubt.

Check an IBAN All countries