IBAN validator: modulo 97 check and length by country

Check an IBAN from 89 countries: length, BBAN format, modulo 97 check digits and French RIB key, with the exact reason for an error and groups of 4.

How to check an IBAN: the modulo 97 rule explained

An IBAN is valid when it has the length set for its country (27 characters in France, 22 in Germany) and its check digits work out: move the first 4 characters to the end, replace each letter with a number (A = 10 … Z = 35), and the resulting large number divided by 97 must leave a remainder of 1. The tool applies this ISO 13616 rule and tells you which step fails.

The checks, in order

  1. Characters: letters and digits only (spaces ignored).
  2. Country: the first two letters must be in the IBAN registry; the detected country is shown.
  3. Length: each country has a fixed length, from 15 (Norway) to 33 characters (Russia).
  4. BBAN format: the registry sets, position by position, a digit, a letter or either; the tool names the faulty position.
  5. Modulo 97 check: the expected remainder is 1; otherwise the tool computes the check digits that would match this BBAN.

Worked example

For FR14 2004 1010 0505 0001 3M02 606 (the SWIFT registry example, with a letter in the account number), the rearranged string is 20041010050500013M02606FR14 and, with M = 22, F = 15 and R = 27, it becomes 200410100505000132202606152714. Divided by 97 it leaves 1, so the IBAN is valid. With DE89 3704 0044 0532 0130 01 (last digit changed) the remainder is 28 and the tool reports wrong check digits.

RIB key for France and Monaco

The French BBAN holds the RIB: bank (5), branch (5), account (11) and key (2). The key is 97 − ((89 × bank + 15 × branch + 3 × account) mod 97), with letters in the account converted (A and J = 1, B, K and S = 2…). Here M is 4 and the expected key is 06, the one in the IBAN.

Calculate an IBAN from a French RIB

In France the BBAN is the RIB itself: the IBAN is FR, the check digits, then the 23 RIB characters (bank, branch, account, RIB key), with no bank-specific rule. The tool checks the RIB key first and gives no IBAN if it is wrong. Example: the RIB 20041 01005 0500013M026 06 followed by FR00 leaves a remainder of 84 modulo 97; the check digits are 98 − 84 = 14, so the IBAN is FR14 2004 1010 0505 0001 3M02 606.

Calculate an IBAN from a Spanish CCC

The CCC has 20 digits: bank (4), branch (4), two check digits (DC) and account (10); the IBAN is ES, the check digits, then the CCC. The first DC covers 00 followed by the bank and branch codes, the second covers the account: each digit is multiplied by 1, 2, 4, 8, 5, 10, 9, 7, 3 and 6, and the DC is 11 minus the remainder of the sum divided by 11 (11 gives 0, 10 gives 1). For 2100 0418 45 0200051332 the sums are 95 and 105, giving DC 4 and 5, and the IBAN is ES91 2100 0418 4502 0005 1332.

Calculate a German IBAN from the BLZ and account number

The Bundesbank standard rule (IBAN rule 0000 00) puts the 8-digit BLZ after DE and the check digits, then the account number padded to 10 digits: BLZ 370 400 44 with account 532013000 gives DE89 3704 0044 0532 0130 00. Since 2013, a bank whose IBAN is built differently registers its own IBAN rule with the Bundesbank, and the link between each BLZ and its rule only appears in the extended bank code file, available on the NExt platform. The tool therefore cannot tell whether your bank is affected: for a transfer, copy the IBAN from a statement or ask the bank. It does not check the account number check digit either, because the method depends on the bank (91 different methods in the file valid from 07/09 to 06/12/2026).

Limits

A valid IBAN may belong to a closed or non-existent account; only the bank, or the payee verification service before a SEPA transfer, confirms it.

Sources and dates: ISO 13616 and the SWIFT IBAN Registry, release 101 (structure of 89 countries, copied through the python-stdnum library because swift.com refuses direct downloads); RIB key algorithm as used by French banks (checked on 15/10/2026); CCC check digits from python-stdnum 2.2 (es.ccc module) and CaixaBank, checked against the SWIFT registry example; Deutsche Bundesbank IBAN rules and circular 73/2012 of 18/12/2012; Bundesbank public bank code file valid from 07/09 to 06/12/2026 (read on 22/10/2026).

Frequently Asked Questions

How many characters are in an IBAN?

It depends on the country, from 15 (Norway) to 33 (Russia). A German IBAN has 22 characters, a UK IBAN 22, a French IBAN 27 and a Spanish IBAN 24.

How are IBAN check digits calculated?

Put the country code followed by 00 after the BBAN, convert letters to numbers (A = 10 … Z = 35) and take the remainder of the division by 97. The check digits are 98 minus that remainder, written with 2 digits. For the French BBAN 20041010050500013M02606 the result is 14.

Does a valid IBAN prove that the account exists?

No. The modulo 97 check catches typing errors (every single-character error and most swaps), but not a closed or non-existent account. Before a SEPA transfer, your bank's payee name check completes the test.

Why does the tool show a RIB key for French IBANs?

The French BBAN contains its own national key, the RIB key, computed with modulo 97 on the bank, branch and account codes. An IBAN can pass the international check while the RIB key inside is wrong, usually because the RIB was copied with an error.

How do I calculate an IBAN from a bank code and account number?

Write the country code, two check digits and the national account identifier (BBAN): the RIB in France, the CCC in Spain, the BLZ followed by the account number padded to 10 digits in Germany. The check digits are 98 minus the remainder modulo 97 of the BBAN followed by the converted country code and 00. BLZ 37040044 with account 532013000 gives DE89 3704 0044 0532 0130 00.

Is a German IBAN calculated from the BLZ always right?

Not for every bank. Some banks have registered their own IBAN rules with the Bundesbank, and for them the real IBAN differs from the standard calculation. The list of banks concerned is only in the extended bank code file, which is not public, so copy the IBAN from a statement or ask the bank before a transfer.

Is this tool really free?

Yes, all tools on Kristools are 100% free and accessible without registration.

Is my data protected?

Yes. All processing is performed directly and securely inside your browser. No personal data is sent to our servers.