iban calculator spain

Spanish IBAN Calculator (ES)

Generate and validate a Spanish IBAN using bank code, branch code, and account number.


Validate an existing Spanish IBAN

What is a Spanish IBAN?

An IBAN (International Bank Account Number) is a standardized format used across Europe and many other countries to identify bank accounts accurately. In Spain, the IBAN always starts with ES and contains 24 total characters (letters + digits).

If you are sending or receiving a SEPA transfer, setting up payroll, paying taxes, or adding a beneficiary in online banking, using the correct IBAN is essential. A single wrong digit can cause delays, failed payments, or money being sent to the wrong destination.

Spanish IBAN format explained

The structure of an IBAN in Spain is:

ESkk bbbb oooo dd cccccccccc

  • ES = country code (Spain)
  • kk = IBAN check digits (computed with MOD-97)
  • bbbb = bank code (entidad)
  • oooo = branch code (oficina)
  • dd = national control digits (DC)
  • cccccccccc = 10-digit account number

The last 20 digits are often called the Spanish BBAN/CCC base. This calculator computes both the national control digits and the international IBAN check digits for you.

How the calculator works

1) National check digits (DC)

The calculator first computes the two Spanish control digits using the standard weighted MOD-11 method:

  • First digit is based on 00 + bank code + branch code
  • Second digit is based on the 10-digit account number
  • Both use official weight values and the Spanish adjustment rules (10→1, 11→0)

2) IBAN check digits

Once the 20-digit Spanish BBAN is ready, the IBAN check digits are calculated by:

  • Appending the numeric country code for ES (1428) and 00
  • Running MOD-97 on the resulting long number
  • Setting check digits to 98 - remainder

This produces a valid Spanish IBAN in the exact format banks expect.

Why validate before making a transfer?

Validation helps you catch problems before money moves:

  • Typos when entering account data manually
  • Missing or extra digits
  • Incorrect national control digits in CCC/BBAN
  • Wrong IBAN check digits

In business workflows (payroll, supplier payments, invoicing), IBAN validation reduces payment exceptions, support tickets, and reconciliation work.

Common mistakes with Spanish IBANs

  • Confusing O and 0 (letter O vs zero)
  • Using an old account number without recalculating DC
  • Copying with spaces, then accidentally deleting a digit
  • Assuming all 24-digit strings starting with ES are valid

Good systems normalize input (remove spaces), validate length and prefix, then verify MOD-97 and CCC logic. This page does exactly that.

Quick FAQ

Is this calculator only for Spain?

Yes. It is purpose-built for Spanish IBANs (ES) and Spanish national check-digit rules.

Does spacing matter in IBAN input?

No. Spaces are ignored during validation. You can paste with or without spaces.

Can a valid IBAN still fail a transfer?

Yes. Valid format does not guarantee the account is open or able to receive payments. It only confirms structural correctness.

Final note

Use this tool when you need to calculate IBAN Spain details quickly and reliably. Whether you search for código IBAN España, calcular IBAN, validar IBAN, or CCC check digits, this calculator covers the core workflow from account components to full IBAN verification.

🔗 Related Calculators