Spanish CCC generator (20-digit bank account number)
The CCC (Código Cuenta Cliente) is the 20-digit Spanish bank account number: 4 digits for the bank, 4 for the branch, 2 check digits and 10 for the account. Each check digit is calculated with weights and mod 11. Today the CCC is embedded in the Spanish IBAN: ES, 2 check digits and the 20 CCC digits.
The 20-digit CCC includes two independent check digits: one for the bank and branch, and another for the account number.
How it's calculated
Bank + branch + 2 check digits + account number; the same calculation embedded in the Spanish IBAN.
Two independent check digits: one for bank + branch, another for the account.
- 1DC1 = check(00 + bank + branch)6
- 2DC2 = check(account)7
- 3Check digits67
Frequently asked questions
What is the difference between a CCC and an IBAN?
The CCC is the Spanish bank account format that predates the IBAN. The Spanish IBAN contains the full CCC, preceded by ES and 2 check digits calculated with mod 97.
Is the CCC still used?
Yes, in some forms and older internal systems that still ask for the 20-digit account number instead of the full IBAN.
How do you convert a CCC into an IBAN?
By prefixing it with ES and the 2 IBAN check digits, calculated with mod 97 over the CCC. The IBAN generator does this directly.
Keep exploring
Looking for more data types? Try the full generator.