Check if a Spanish IBAN is valid by verifying format, IBAN check digits (mod-97), CCC check digits, and bank identification.
IBAN (International Bank Account Number) is an international alphanumeric code that uniquely identifies a bank account. In Spain, it has 24 characters: the prefix ES, 2 check digits and 20 digits from the old CCC.
A Spanish IBAN consists of: ES (country code) + 2 check digits + 4 entity digits + 4 branch digits + 2 CCC check digits + 10 account number digits.
The CCC (Customer Account Code) includes two check digits. The first verifies the entity and branch, the second verifies the account number. They are calculated using a weight algorithm.
IBAN check digits are calculated using the MOD-97 algorithm (ISO 13616). Characters are rearranged, letters converted to numbers, and modulo 97 is computed.
Validating IBANs one by one? Custodita validates them automatically when importing mandates.
Try free — up to 10 mandates