Test IBAN generator for Spain (valid, with BIC)

A Spanish IBAN has 24 characters: ES, 2 check digits calculated with the mod 97 algorithm (ISO 13616) and the 20-digit domestic account number, or CCC (bank, branch, check digits and account). The test IBANs generated by DataMockSeed use real bank codes so they validate, but the account number is random and belongs to no one.

Each IBAN includes a complete Spanish CCC (bank, branch, check digits and account) and the two IBAN check digits calculated with mod 97.

5 generated examples
ES9314654394759317757118Valid
ES6300816857347976867075Valid
ES8221002318401625087432Valid
ES3214657828849321639511Valid
ES8501280676117863220379Valid

How it's calculated

Spanish CCC (bank + branch + check digits + account) with IBAN check digits.

Generated sample
ES9314654394759317757118

The country code and '00' move to the end, letters become numbers and mod 97 is computed.

  1. 1
    BBAN + country + '00'
    14654394759317757118ES00
  2. 2
    Letters → numbers (A=10 … Z=35)
    14654394759317757118142800
  3. 3
    Mod 97 remainder
    5
  4. 4
    Check digits = 98 − remainder
    93

Frequently asked questions

How many digits does a Spanish IBAN have?

24 characters: the ES country code, 2 IBAN check digits and the 20 digits of the CCC (4 for the bank, 4 for the branch, 2 check digits and 10 for the account).

Are the banks in the generated IBANs real?

Yes. Real bank codes are used so the IBAN is consistent, but the account number is random and not linked to any real account.

Does the generator create IBANs for other countries?

Yes. Besides Spain, the full generator creates IBANs for Germany, France and Portugal, in compact format or grouped in blocks of 4 characters.

Keep exploring

Looking for more data types? Try the full generator.