An IBAN’s length is fixed per country, from 15 characters in Norway up to 31 in Malta. This tool gives the official length and structure for each IBAN-participating country and validates any IBAN you paste against both its length and the MOD-97 check digits.
How it works
Every IBAN starts with the same four characters:
D E 8 9 3 7 0 4 0 0 4 4 0 5 3 2 0 1 3 0 0 0
^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ctry chk BBAN (country-specific)
- Characters 1-2 — country code: ISO 3166-1 alpha-2.
- Characters 3-4 — check digits: computed with MOD-97.
- Remaining — BBAN: the national account number, whose length and layout the country defines.
To validate the check digits, move the first four characters to the end,
replace each letter with two digits (A=10 … Z=35), and take the whole number
modulo 97. A correct IBAN yields a remainder of exactly 1.
Tips and examples
GB(United Kingdom) IBANs are 22 characters:GBkk BBBB SSSS SSAA AAAA AA.- The check digits alone catch most typos, but a wrong country code makes the length check fail first — always confirm the leading two letters.
- Strip all spaces and uppercase the string before validating; mixed case or stray spaces are the most common false-failure cause.