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.

5 generated examples
21002236675963757899Valid
01287289018669756596Valid
00810074412039790957Valid
14653399818090468082Valid
00499491113471964974Valid

How it's calculated

Bank + branch + 2 check digits + account number; the same calculation embedded in the Spanish IBAN.

Generated sample
21002236675963757899

Two independent check digits: one for bank + branch, another for the account.

  1. 1
    DC1 = check(00 + bank + branch)
    6
  2. 2
    DC2 = check(account)
    7
  3. 3
    Check digits
    67

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.