Spain IBAN format
A Spain IBAN starts with ES, then two check digits calculated with ISO 7064 mod-97, then the 20-character BBAN (20 digits). Every IBAN generated here passes the checksum and the national check digits, so it is accepted by form validation and IBAN libraries.
Spain IBAN position by position
Example: ES25 9733 8225 5682 1785 3726
| Part | Characters | Positions |
|---|---|---|
| Country code | ES | 1–2 |
| IBAN check digits (mod-97) | 25 | 3–4 |
| Entidad (bank code) | 9733 | 5–8 |
| Oficina (branch) | 8225 | 9–12 |
| Dígitos de control | 56 | 13–14 |
| Account number | 8217853726 | 15–24 |
The BBAN is the old CCC: 4-digit entidad, 4-digit oficina, 2 control digits (dígitos de control) and the 10-digit account number. The two control digits check the bank/branch and the account separately; the generated IBANs satisfy both.
Test cases for Spain IBAN fields
| Input | Expected | Why |
|---|---|---|
ES25 9733 8225 5682 1785 3726 | valid | print format |
ES2597338225568217853726 | valid | electronic format |
es25 9733 8225 5682 1785 3726 | valid | lower case — normalize first |
ES2697338225568217853726 | invalid | wrong check digits |
ES259733822556821785372 | invalid | 23 characters, Spain needs 24 |
ES25973382255682178537261 | invalid | 25 characters |
FAQ
How many characters does a Spain IBAN have?
24 characters, for example ES2597338225568217853726.
Is Spain in SEPA?
Yes — euro transfers and SEPA direct debits work with this IBAN format.
Are these real Spain bank accounts?
No. They are random numbers with a valid structure, for testing only. A transfer to them would be rejected.
How do I check an IBAN someone gave me?
Use the IBAN validator: it shows the country, checksum result and where a typo probably is.
More test data for Spain
Spain VAT number · Spain phone numbers · Spain addresses
Other countries
Austria · Belgium · Bulgaria · Croatia · Cyprus · Czech Republic · Denmark · Estonia · Finland · France · Germany · Greece · Hungary · Iceland · Ireland · Italy · Latvia · Liechtenstein · Lithuania · Luxembourg · Malta · Monaco · Netherlands · Norway · Poland · Portugal · Romania · Saudi Arabia · Slovakia · Slovenia · Sweden · Switzerland · Turkey · Ukraine · United Arab Emirates · United Kingdom