CCC and IBAN ES Converter (Spain)

Paste Spanish account numbers as CCC or IBAN to check the control digits and get the IBAN.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Paste numbers

    CCC or IBAN, one per line.

  2. 2
    Check

    See valid or not.

  3. 3
    Read the parts

    Bank, branch, control digits, account and IBAN.

  4. 4
    Export

    Download the results.

About this tool

Spanish bank accounts used to be identified by the 20-digit CCC: 4 digits for the bank, 4 for the branch, 2 control digits and 10 for the account. Since SEPA, the IBAN is used: ES, two check digits and the 20 digits of the CCC, 24 characters in total. Both include checks that catch typing errors. This tool verifies the CCC control digits and the IBAN, and converts one into the other.

Who this is for

Employers entering payroll accounts, landlords and tenants, accountants and developers.

The CCC control digits

The first control digit checks the bank and branch: the 8 digits, preceded by 00, are multiplied by the weights 1, 2, 4, 8, 5, 10, 9, 7, 3, 6 and added; 11 minus the remainder of dividing by 11 gives the digit (10 becomes 1, 11 becomes 0). The second control digit applies the same weights to the 10-digit account number.

The IBAN

The Spanish IBAN is ES, two check digits and the CCC. The check digits are calculated by moving ES00 to the end, converting letters to numbers (E = 14, S = 28) and computing 98 minus the remainder modulo 97.

When you need it

SEPA transfers and direct debits use the IBAN. Forms such as payroll, rent and tax refunds ask for it. The BIC is usually not needed for transfers within the SEPA area.

Security

Bank details are not secret, but they can be misused. Check statements for unauthorised direct debits, which you can return within eight weeks, or 13 months if unauthorised. Confirm any change of supplier bank details by phone.

Batch use

Paste one number per line, with or without spaces. The tool accepts CCC or IBAN and shows each part and the IBAN.

Account ownership

A valid IBAN does not confirm who owns the account. From October 2025, EU banks verify the payee's name before transfers, which helps prevent fraud.

Bank codes

The first four digits identify the bank: for example 2100 for CaixaBank, 0049 for Banco Santander, 0182 for BBVA and 0081 for Banco Sabadell. Bank mergers mean that old codes may still appear on accounts opened at banks that no longer exist; they continue to work because the account number does not change. Your bank can confirm the current BIC and branch if needed.

Developers

When validating forms, strip spaces, check the length, verify the IBAN check digits and then the CCC control digits. Store accounts as text to keep leading zeros. Never log full account numbers in plain text in shared systems, and mask them in screenshots and emails when possible.

Worked example

The CCC 2100 0418 45 0200051332 has correct control digits 45, and its IBAN is ES91 2100 0418 4502 0005 1332. Changing the control digits to 46 makes it invalid.

Limits

A format check, not a confirmation that the account exists.

Worked example

CCC 2100 0418 45 0200051332 converts to IBAN ES91 2100 0418 4502 0005 1332.

Quick facts

Frequently asked questions

What is a CCC?

The 20-digit Spanish account code: bank, branch, control digits and account.

How are the control digits calculated?

With weights 1, 2, 4, 8, 5, 10, 9, 7, 3, 6 modulo 11.

How do I get the IBAN?

ES, two check digits and the CCC; the tool calculates it.

Does a valid IBAN prove the account exists?

No; banks verify the payee's name before transfers.

Can I check many accounts?

Yes, paste one per line.

Is my data stored?

No. It stays in your browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages