I just moved to Spain and I’ve been dealing with a lot of contracts lately. I’ve noticed that whenever I need to provide or receive a bank account number, the format seems to change. Sometimes it’s a long string of letters and numbers, and other times it’s just numbers. I’m completely lost! How many digits are actually in a Spanish bank account? Can any long-time expats here shed some light on this?
After some digging around, I’ve finally started to figure it out. I wanted to share what I’ve learned to help others, and please correct me if I’ve gotten anything wrong. In Spain, and across the EU, the most commonly used format is the IBAN, which stands for International Bank Account Number. This is the standard for both domestic and cross-border transfers, especially for SEPA payments.
A standard Spanish IBAN has a total of 24 characters. Here’s how it’s structured:
The first 2 characters are the country code, which is ES for Spain.
The next 2 digits are a check code, used to validate the entire IBAN and prevent input errors.
The final 20 digits make up your actual domestic bank account number, formerly known as the Código Cuenta Cliente (CCC).
So, if you see a Spanish bank account number that starts with ES and has 24 characters, it’s most likely the full IBAN. It looks something like this: ESXX XXXX XXXX XX XXXXXXXXXX.

So why do you sometimes still see a 20-digit, numbers-only account? This is the CCC mentioned earlier, the old domestic format in Spain. Although IBAN is now the standard, you might still encounter the CCC in some informal situations or on older systems. These 20 digits also contain your banking information. I’ve put together a simple table to make it easier to understand:
| Digits | Meaning | Explanation |
| First 4 digits | Bank Code | For example, 2100 for CaixaBank, 0049 for Santander |
| Next 4 digits | Branch Code | The code for the specific branch where you opened the account |
| Next 2 digits | Check Digits | Used to validate the preceding bank and branch codes |
| Last 10 digits | Account Number | Your unique account identifier |
As you can see, the 20-digit CCC is actually embedded within the 24-character IBAN. For all transfers and payments now, it’s best to use the full 24-character IBAN to be safe and avoid errors. I hope this summary is helpful for newcomers! If I’ve made any mistakes, please feel free to correct or add to this!