Skip to content

Free · No sign-up · Nothing is sent

Validate and calculate an IBAN

IBAN

Paste the IBAN with or without spaces. Any country.

Valid means the numbers add up, not that the account exists or who owns it.

Check whether an IBAN is correct, or build a Spanish IBAN from a 20-digit account number. It tells you which bank and country it belongs to and, if it fails, which part fails.

Runs in your browser. Nothing you type is sent or stored: try it with your internet switched off.

What it checks

What this tool tells you (and what it does not)

  • Yes: whether the IBAN has its country's length, whether its check digits match and, for Spanish IBANs, whether the account's own check digits match too.
  • Yes: which bank a Spanish IBAN belongs to, and which country any IBAN is from.
  • No: whether the account exists, is open or who owns it. Only the bank knows that.

A valid IBAN is like a correctly written phone number: all the digits are there, but it does not guarantee someone will answer.

Collecting an IBAN for direct debits? With our online SEPA mandate your customer types their IBAN, it is checked just like here, they sign with a finger and send you the mandate as a PDF.

Structure

What each part of a Spanish IBAN means

A Spanish IBAN has 24 characters: ES, two check digits and the 20-digit domestic account number (CCC). Using the official SWIFT registry example ES91 2100 0418 4502 0005 1332:

PartExampleMeaning
CountryESISO 3166 country code.
IBAN check91Two digits computed from everything else with MOD 97. They catch typos.
Bank2100Institution code. 2100 is CaixaBank.
Branch0418The branch where the account was opened.
Account check45Two digits protecting bank, branch and account (the CCC check digits).
Account number0200051332Ten digits identifying the account within the branch.

Why a Spanish IBAN has two checks

The IBAN check digits (positions 3-4) protect the whole code. The account check digits (positions 13-14) are older and protect only the Spanish account. An IBAN can pass MOD 97 and still contain a wrong account — it happens when someone builds the IBAN from an account that was already mistyped. This tool checks both; many others only check the first.

How it works

How an IBAN is calculated from an account number

The method is ISO 13616 with the ISO 7064 MOD 97-10 algorithm, the same in every country. With the account 2100 0418 45 0200051332:

  1. 101

    Country at the end

    2100…1332 + ES00

    Write the account and append the country code with two provisional zeros.

  2. 202

    Letters to numbers

    E = 14 · S = 28

    Each letter becomes two digits: A is 10, B 11… Z 35. ES00 becomes 142800.

  3. 303

    Divide by 97

    21000418450200051332142800 mod 97 = 7

    Keep the remainder. The number is huge, so it is divided in chunks.

  4. 404

    Subtract from 98

    98 − 7 = 91

    That is the IBAN check. Result: ES91 2100 0418 4502 0005 1332.

To validate an IBAN, do the same with its real check digits: if the remainder of dividing by 97 is 1, it is valid.

Bank lookup

Which bank a Spanish IBAN belongs to

In a Spanish IBAN, digits 5 to 8 are the institution code that identifies the bank. In ES91 2100 0418… it is 2100: CaixaBank. Search any code or name in the official Bank of Spain list:

CodeInstitution
1000Instituto de Crédito Oficial
1451Caisse Régionale de Crédit Agricole Mutuel Sud-Méditerranée (Ariège et Pyrénées-Orientales)
1457De Lage Landen International B.V., Sucursal en España
1459Cooperatieve Rabobank U.A., Sucursal en España
1465Ing Bank, N.V. Sucursal en España
1472Crédit Agricole Leasing & Factoring, Sucursal en España
1473Edmond de Rothschild (Europe), Sucursal en España
1474Citibank Europe Plc, Sucursal en España
1479Natixis, S.A., Sucursal en España
1480Volkswagen Bank GmbH, Sucursal en España
1482John Deere Bank, S.A., Sucursal en España
1485Bank of America Europe DAC, Sucursal en España
1487Toyota Kreditbank GmbH, Sucursal en España
1488BANK PICTET & CIE (EUROPE) AG SUCURSAL EN ESPAÑA
1490Singular Bank, S.A.
1491Triodos Bank, N.V., S.E.
1492BNP Paribas Lease Group S.A. Sucursal en España
1493Caixa Banco de Investimento, S.A. Sucursal en España
1494Intesa Sanpaolo S.p.A., Sucursal en España
1496Genefim, Sucursal en España
1497Haitong Bank, S.A., Sucursal en España
1499Claas Financial Services, S.A.S., Sucursal en España
1500BPCE Lease, Sucursal en España
1501Deutsche Pfandbriefbank AG, Sucursal en España
1504Honda Bank GmbH, Sucursal en España
1508RCI Banque, S.A., Sucursal en España
1509Banco Primus, S.A., Sucursal en España
1514IC FINANCIAL SERVICES, SUCURSAL EN ESPAÑA
1520Mediobanca, Sucursal en España
1525Banque Chaabi du Maroc, Sucursal en España
1533BMW Bank GmbH, Sucursal en España
1538Industrial and Commercial Bank of China (Europe) S.A., Sucursal en España
1541Attijariwafa Bank Europe, Sucursal en España
1543Cofidis, S.A. Sucursal en España
1544MYINVESTOR BANCO, S.A.
1545CA Indosuez Wealth (Europe), Sucursal en España
1546CNH Industrial Capital Europe, S.A.S., Sucursal en España
1547Lombard Odier (Europe), S.A., Sucursal en España
1548Dell Bank International Designated Activity Company, Sucursal en España
1550Banca Popolare Etica Società Cooperativa per Azioni, Sucursal en España
1551SMBC Bank EU AG, Sucursal en España
1552Mirabaud & Cie (Europe) S.A., Sucursal en España
1553China Construction Bank (Europe), S.A., Sucursal en España
1554BFF Bank, S.P.A. Sucursal en España
1555Crédit Mutuel Leasing, Sucursal en España
1557Unicredit, S.p.A., Sucursal en España
1559Mizuho Bank Europe N.V., Sucursal en España
1560Younited, Sucursal en España
1563N26 BANK SE, SUCURSAL EN ESPAÑA
1564Goldman Sachs Bank Europe SE, Sucursal en España
1567J.P. MORGAN SE, SUCURSAL EN ESPAÑA
1569Banco de Investimento Global SA, Sucursal en España
1570The Governor and Company of the Bank of Ireland, Sucursal en España
1573The Bank of New York Mellon SA/SV, S.E
1574Bank Julius Baer Europe, S.A, Sucursal en España
1575Western Union International Bank GMBH, Sucursal en España
1576Bunq B.V., Sucursal en España
1577Oddo BHF SCA, Sucursal en España
1578SOLARIS SE, SUCURSAL EN ESPAÑA
1580BANQUE J. SAFRA SARASIN (LUXEMBOURG) SA, SUCURSAL EN ESPAÑA
1581MORGAN STANLEY EUROPE SE, SUCURSAL EN ESPAÑA
1583REVOLUT BANK UAB SUCURSAL EN ESPAÑA
1584RIVERBANK SA SUCURSAL EN ESPAÑA
1585AVARDA BANK AB SUCURSAL EN ESPAÑA
1586TRADE REPUBLIC BANK GMBH SUCURSAL EN ESPAÑA
1587BTG PACTUAL EUROPE SA SUCURSAL EN ESPAÑA
1588J.C.B. FINANCE S.A.S. SUCURSAL EN ESPAÑA
1589UNICREDIT NV/SA, SUCURSAL EN ESPAÑA
1590MONZO BANK EUROPE DESIGNATED ACTIVITY COMPANY, S.E
2000Cecabank, S.A.
2045Caja de Ahorros y Monte de Piedad de Ontinyent
2056Colonya - Caixa D'estalvis de Pollensa
2080Abanca Corporacion Bancaria, S.A.
2085Ibercaja Banco, S.A.
2095Kutxabank, S.A.
2100Caixabank, S.A.
2103Unicaja Banco, S.A.
3001Caja Rural de Almendralejo, Sociedad Cooperativa de Crédito
3005Caja Rural Central, Sociedad Cooperativa de Crédito
3007Caja Rural de Gijón, Sociedad Cooperativa Asturiana de Crédito
3008Caja Rural de Navarra, S. Coop. de Crédito
3009Caja Rural de Extremadura, Sociedad Cooperativa de Crédito
3016Caja Rural de Salamanca, Sociedad Cooperativa de Crédito
3017Caja Rural de Soria, Sociedad Cooperativa de Crédito
3018Caja Rural Regional San Agustín Fuente Álamo Murcia, Sociedad Cooperativa de Crédito
3020Caja Rural de Utrera, Sociedad Cooperativa Andaluza de Crédito
3023Caja Rural de Granada, Sociedad Cooperativa de Crédito
3025Caixa de Crédit dels Enginyers- Caja de Crédito de los Ingenieros, S. Coop. de Crédito
3029Caja de Crédito de Petrel, Caja Rural, Cooperativa de Crédito Valenciana
3035Caja Laboral Popular Coop. de Crédito
3045Caixa Rural Altea, Cooperativa de Crédito Valenciana
3058Cajamar Caja Rural, Sociedad Cooperativa de Crédito
3059Caja Rural de Asturias, Sociedad Cooperativa de Crédito
3060Caja Rural de Burgos, Fuentepelayo, Segovia y Castelldans, Sociedad Cooperativa de Crédito
3067Caja Rural de Jaén, Barcelona y Madrid, Sociedad Cooperativa de Crédito
3070Caixa Rural Galega, Sociedad Cooperativa de Crédito Limitada Gallega
3076Cajasiete, Caja Rural, Sociedad Cooperativa de Crédito
3080Caja Rural de Teruel, Sociedad Cooperativa de Crédito
3081Eurocaja Rural, Sociedad Cooperativa de Crédito
3085Caja Rural de Zamora, Cooperativa de Crédito
3089Caja Rural de Baena Ntra. Sra. de Guadalupe Sociedad Cooperativa de Crédito Andaluza
3095Caja Rural San Roque de Almenara S. Coop. de Crédito V.
3096Caixa Rural de L'Alcudia, Sociedad Cooperativa Valenciana de Crédito
3098Caja Rural de Nueva Carteya, Sociedad Cooperativa Andaluza de Crédito
3102Caixa Rural Sant Vicent Ferrer de La Vall D'Uixó, Coop. de Credit V.
3104Caja Rural de Cañete de Las Torres Ntra. Sra. del Campo Sociedad Cooperativa Andaluza de Crédito
3105Caixa Rural de Callosa d'en Sarrià, Cooperativa de Crédito Valenciana
3110Caja Rural Católico Agraria, S. Coop. de Crédito V.
3111Caixa Rural La Vall 'San Isidro', Sociedad Cooperativa de Crédito Valenciana
3112Caja Rural San José de Burriana, S. Coop. de Crédito V.
3113Caja Rural San José de Alcora S. Coop. de Crédito V.
3115Caja Rural 'Nuestra Madre del Sol', S. Coop. Andaluza de Crédito
3117Caixa Rural D'Algemesí, S. Coop. V. de Crédit
3118Caixa Rural Torrent Cooperativa de Credit Valenciana
3119Caja Rural San Jaime de Alquerías Niño Perdido S. Coop. de Crédito V.
3121Caja Rural de Cheste, Sociedad Cooperativa de Crédito Valenciana
3123Caixa Rural de Turís, Cooperativa de Crédito Valenciana
3127Caja Rural de Casas Ibáñez, S. Coop. de Crédito de Castilla-La Mancha
3130Caja Rural San José de Almassora, S. Coop. de Crédito V.
3134Caja Rural Nuestra Señora de la Esperanza de Onda, S. Coop. de Crédito V.
3135Caja Rural San José de Nules S. Coop. de Crédito V.
3138Ruralnostra, Sociedad Cooperativa de Crédito Valenciana
3140Caja Rural de Guissona, Sociedad Cooperativa de Crédito
3144Caja Rural de Villamalea, S. Coop. de Crédito Agrario de Castilla-La Mancha
3150Caja Rural de Albal, Coop. de Crédito V.
3152Caja Rural de Villar, Coop. de Crédito V.
3157Caja Rural La Junquera de Chilches, S. Coop. de Crédito V.
3159Caixa Popular-Caixa Rural, S. Coop. de Crédito V.
3160Caixa Rural Sant Josep de Vilavella, S. Coop. de Crédito V.
3162Caixa Rural Benicarló, S. Coop. de Credit V.
3165Caja Rural San Isidro de Vilafames S. Coop. de Crédito V.
3166Caixa Rural Les Coves de Vinromá, S. Coop. de Crédit V.
3174Caixa Rural Vinarós, S. Coop. de Credit. V.
3179Caja Rural de Alginet, Sociedad Cooperativa Crédito Valenciana
3183Arquia Bank, S.A.
3187Caja Rural del Sur, S. Coop. de Crédito
3190Caja Rural de Albacete, Ciudad Real y Cuenca, Sociedad Cooperativa de Crédito
3191Caja Rural de Aragón, Sociedad Cooperativa de Crédito
8640CA AUTO BANK, SPA, SUCURSAL EN ESPAÑA
0003Banco de Depósitos, S.A.
0011Allfunds Bank, S.A.
0019Deutsche Bank, Sociedad Anónima Española
0036Santander Investment, S.A.
0038CACEIS Bank Spain, S.A.
0049Banco Santander, S.A.
0061Banca March, S.A.
0073OPENBANK, S.A.
0078Banca Pueyo, S.A.
0081Banco de Sabadell, S.A.
0083Renta 4 Banco, S.A.
0091Banco de Albacete, S.A.
0108Société Genérale, Sucursal en España
0121Banco Occidental, S.A.
0128Bankinter, S.A.
0133Nuevo Micro Bank, S.A.
0136Aresbank, S.A.
0145Deutsche Bank, A.G., Sucursal en España
0149BNP Paribas S.A., Sucursal en España
0152Barclays Bank Ireland PLC, Sucursal en España
0154Crédit Agricole Corporate and Investment Bank, Sucursal en España
0159Commerzbank Aktiengesellschaft, Sucursal en España
0160MUFG Bank (Europe) N.V., Sucursal en España
0162HSBC Continental Europe, Sucursal en España
0169Banco de la Nación Argentina, Sucursal en España
0182Banco Bilbao Vizcaya Argentaria, S.A.
0184MORABANC, S.A.
0186Banco Mediolanum, S.A.
0188Banco Alcalá, S.A.
0198Banco Cooperativo Español, S.A.
0200ANDBANK ESPAÑA BANCA PRIVADA, S.A.
0211EBN Banco de Negocios, S.A.
0218FCE Bank Plc Sucursal en España
0219Bank of Africa Europe, S.A.
0220BANCO FINANTIA, S.A., SUCURSAL EN ESPAÑA
0225Banco Cetelem, S.A.
0226UBS Europe SE, Sucursal en España
0229Wizink Bank, S.A.
0232Banco Inversis, S.A.
0234CBNK BANCO DE COLECTIVOS, S.A.
0235Banco Pichincha España, S.A..
0240Banco de Crédito Social Cooperativo
0241A&G BANCO, S.A.
0242Sabadell Consumer Finance, S.A.
0244MIRALTA FINANCE BANK, S.A.

184 credit institutions. Source: Bank of Spain, list of monetary financial institutions, version of 20/11/2026.

If a code is missing, it may belong to a payment or e-money institution (many digital banks are), published by the Bank of Spain in a separate list, or to a bank that was absorbed by another.

Common errors

Why an IBAN can fail even if it looks right

  1. A letter «O» instead of a zero. In a Spanish IBAN, everything after ES is digits. The tool warns you if it finds an «O».
  2. A wrong digit or two swapped digits. This is the error the check always catches: 34 instead of 43, for example.
  3. A missing or extra character. A Spanish IBAN has 24. Copying from a PDF sometimes drops the last one.
  4. The form wants it without «ES» or in separate boxes.
  5. The account inside is wrong even though MOD 97 passes (see «two checks» above).
  6. It is a valid IBAN for a closed account. The tool cannot know that; only the bank can.

Differences

IBAN, account number, BIC and card number

TermWhat it isExample
IBANThe international code of your account, used for transfers and direct debits.ES91 2100 0418 4502 0005 1332
CCC (Spanish account number)The 20 domestic digits. The IBAN is the CCC with ES and two digits in front.2100 0418 45 0200051332
BIC or SWIFTIdentifies the bank, not your account. 8 or 11 characters. Not needed for SEPA transfers.CAIXESBBXXX
Card number (PAN)Your card's number, usually 16 digits. It is not the IBAN and cannot be derived from it.4… (16 digits)

Other countries

IBANs from other countries: origin and length

The first two letters are the country. Each country has a fixed length, from 15 characters in Norway to 32 in Saint Lucia. The most searched:

Starts withCountryCharacters
ESSpain24
DEGermany22
FRFrance27
PTPortugal25
ITItaly27
BEBelgium16
NLNetherlands18
GBUnited Kingdom22
IEIreland22
LULuxembourg20
LTLithuania20
MTMalta31
ATAustria20
CHSwitzerland21
SESweden24
PLPoland28
DKDenmark18
FIFinland18
NONorway15
ADAndorra24
The validator above recognises all 77 countries in the SWIFT IBAN registry.

For testing

Sample IBANs for testing

If you are building a form and need IBANs that pass validation, use the examples SWIFT publishes in its IBAN registry:

CountrySample IBAN
SpainES91 2100 0418 4502 0005 1332
GermanyDE89 3704 0044 0532 0130 00
United KingdomGB29 NWBK 6016 1331 9268 19

Do not use them for real payments or make up IBANs that could match other people's accounts.

Safety

Is it safe to share your IBAN?

An IBAN lets people pay money in and set up direct debits. It cannot be used to withdraw money or to pay with your card.

  • If you dispute a direct debit you authorised, you can ask for a refund within 8 weeks.
  • If you never authorised it, you have up to 13 months to claim it from your bank.

These are the time limits in the EU Payment Services Directive (PSD2), transposed in Spain by Royal Decree-law 19/2018. Onboarding Spanish customers? You can also check their DNI or NIE letter.

Code

Validate or calculate an IBAN in your own code

Same algorithm this tool uses, no libraries. Copy what you need:

validate-iban.js · JavaScript
// Validates an IBAN from any country (ISO 13616, MOD 97-10).
function isValidIban(text) {
  const iban = text.replace(/[\s.-]/g, "").toUpperCase();
  if (!/^[A-Z]{2}\d{2}[A-Z0-9]+$/.test(iban)) return false;
  // 1. Move country code and check digits to the end.
  const rearranged = iban.slice(4) + iban.slice(0, 4);
  // 2. Letters to numbers: A = 10, B = 11 … Z = 35.
  const digits = rearranged.replace(/[A-Z]/g, (c) => c.charCodeAt(0) - 55);
  // 3. Modulo 97 in chunks (the number does not fit in a Number).
  let rest = 0;
  for (let i = 0; i < digits.length; i += 7) {
    rest = Number(String(rest) + digits.slice(i, i + 7)) % 97;
  }
  return rest === 1; // You still need to check each country's length.
}

isValidIban("ES91 2100 0418 4502 0005 1332"); // true
iban-from-ccc.js · JavaScript
// Builds the Spanish IBAN from a 20-digit account number (CCC).
function ibanFromCcc(ccc) {
  const account = ccc.replace(/\D/g, "");
  if (account.length !== 20) throw new Error("A Spanish account has 20 digits");
  // "ES" = 14 28 plus provisional check digits "00".
  const digits = account + "142800";
  let rest = 0;
  for (let i = 0; i < digits.length; i += 7) {
    rest = Number(String(rest) + digits.slice(i, i + 7)) % 97;
  }
  const check = String(98 - rest).padStart(2, "0");
  return "ES" + check + account;
}

ibanFromCcc("2100 0418 45 0200051332"); // "ES9121000418450200051332"
validate_iban.py · Python
def is_valid_iban(text: str) -> bool:
    iban = "".join(text.split()).replace("-", "").upper()
    if len(iban) < 15 or not iban[:2].isalpha() or not iban[2:4].isdigit():
        return False
    rearranged = iban[4:] + iban[:4]
    digits = "".join(str(int(c, 36)) for c in rearranged)  # A=10 … Z=35
    return int(digits) % 97 == 1  # Python handles big integers

is_valid_iban("ES91 2100 0418 4502 0005 1332")  # True

For a full check, also compare the length with the country's and, for Spanish IBANs, verify the two account check digits (weights 1, 2, 4, 8, 5, 10, 9, 7, 3, 6, modulo 11).

FAQ

IBAN frequently asked questions

What is an IBAN?

The code that identifies a bank account across the SEPA area. Spanish IBANs have 24 characters: ES, two check digits and the 20-digit account number.

Is the IBAN the same as the account number?

Almost. A Spanish IBAN is the 20-digit account number (CCC) with «ES» and two check digits in front.

How do I know which bank an IBAN belongs to?

From digits 5 to 8, the institution code. 2100 is CaixaBank, 0049 Santander and 0182 BBVA. Search any code in the table on this page.

Does a valid IBAN mean the account exists?

No. It only means the numbers add up. Whether the account exists and who owns it is known only to the bank.

Why does an IBAN I copied correctly fail?

Usually an extra space or hyphen, a letter «O» instead of a zero, a character lost while copying, or a form that wants it without «ES».

Is the IBAN the same as the BIC or SWIFT code?

No. The IBAN identifies the account; the BIC identifies the bank. SEPA transfers only need the IBAN.

Is it dangerous to share my IBAN?

An IBAN only lets people pay you or set up a direct debit, and a debit you do not recognise can be refunded. It cannot be used to withdraw money.

Do you store the IBAN I type?

No. Everything runs in your browser and never leaves your device. The page works even offline once loaded.

About

About this validator

Built by Black Wings, a software studio in Valencia (Spain) working with small and medium businesses: custom software, integrations between apps and AI automation. Our validators are free, single-purpose tools that show how we work.

  • Standard: ISO 13616 (IBAN structure) and ISO 7064 MOD 97-10 (check digits).
  • Lengths by country: SWIFT IBAN registry, 77 countries.
  • Banks: Bank of Spain list of credit institutions, version of 20/11/2026.
  • Code: written by us in TypeScript, no external libraries, with automated tests on the official examples.

Privacy

What happens to what you type

Nothing leaves your browser. The IBAN or account number is checked with JavaScript on your own device: it is not sent to any server, not stored and not recorded in any analytics.

Try it: load the page, switch off your internet and it keeps working. The site measures visits (Google cookies only if you accept them), but what you type into the tool is never sent. More in our privacy policy.

Other validators

More free validators

Need this inside your own software?

Validating IBANs and tax IDs when a customer signs up, checking whole lists or connecting invoicing to the bank: that is the kind of work we do at Black Wings.

Tell us about it