IBAN Validator
Validate an International Bank Account Number with the MOD 97-10 check, step by step.
Loading sheet…
Validate an International Bank Account Number with the MOD 97-10 check, step by step.
Loading sheet…
② letters → numbers (A=10 … Z=35): 3214282912345698765432161182
| ③ Piecewise chunk | mod 97 |
|---|---|
| 321428291 | 70 |
| 702345698 | 29 |
| 297654321 | 24 |
| 2461182 | 1 |
An International Bank Account Number is up to 34 alphanumeric characters: a two-letter ISO 3166-1 country code, two check digits and the country-specific Basic Bank Account Number (BBAN). Each country fixes the total length (e.g. DE = 22, GB = 22, FR = 27, NO = 15). It is printed in groups of four for readability.
Move the first four characters to the end, convert letters to two-digit numbers (A = 10, …, Z = 35), and interpret the result as a large integer N:
N \bmod 97 = 1 \iff \text{valid}To generate the check digits, set them to “00”, compute the remainder and subtract it from 98:
cc = 98 - \left(N_{00} \bmod 97\right)Because N may exceed 30 digits, the remainder is computed piecewise: take 9 digits, reduce mod 97, prepend the 2-digit remainder to the next 7 digits, and repeat, valid since (a\cdot 10^k + b) \bmod 97 = ((a \bmod 97)\cdot 10^k + b) \bmod 97.
Using the prime 97 detects all single-character substitutions and all adjacent transpositions, and ≈ 99.97 % of other errors. Try the “swap” button to see a transposition caught.