Spain IBAN Generator

Random test IBANs for Spain that pass validation. Runs in your browser.

Check an IBAN in the IBAN validator →

Output
⚠ For testing only. Generated IBANs have the correct format and check digits, but they are random and not linked to any real account. Never use them to send or request money.

Spain IBAN format

Country code
ES
IBAN length
24 characters
BBAN structure
20 digits
Bank code
4 characters (Entidad)
Branch / sort code
4 characters
SEPA
Yes
Example (print)
ES25 9733 8225 5682 1785 3726
Example (electronic)
ES2597338225568217853726

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

PartCharactersPositions
Country codeES1–2
IBAN check digits (mod-97)253–4
Entidad (bank code)97335–8
Oficina (branch)82259–12
Dígitos de control5613–14
Account number821785372615–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

InputExpectedWhy
ES25 9733 8225 5682 1785 3726validprint format
ES2597338225568217853726validelectronic format
es25 9733 8225 5682 1785 3726validlower case — normalize first
ES2697338225568217853726invalidwrong check digits
ES259733822556821785372invalid23 characters, Spain needs 24
ES25973382255682178537261invalid25 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