Test IBAN Generator
Generate valid IBANs for 89 countries to use as test data. Your browser builds each number and calculates the check digits.
IBAN
Length
Regular expression
A regular expression checks the shape only. The check digits still need the calculation below.
The national check digits inside the account number are valid too.
The account number is random: it has the right length and characters, but no national check digits are calculated.
How an IBAN is built
An IBAN has at most 34 characters. Each country sets its own length, from 15 in Norway to 33 in Russia.
BE
Country code
Two letters: the ISO 3166 code of the country where the account is held.
68
Check digits
Two digits calculated from the rest of the IBAN. They catch typing mistakes.
5390 0754 7034
BBAN
The national account number. It usually holds the bank code and the account number, and each country decides which positions are digits or letters.
How the check digits are calculated
Write the BBAN, then the country code, then 00. Replace every letter with a number: A is 10, B is 11 and so on up to Z, which is 35. Divide that number by 97. The check digits are 98 minus the remainder.
Example: BE with BBAN 539007547034 gives 539007547034111400. That number mod 97 = 30 and 98 − 30 = 68, so the IBAN is BE68 5390 0754 7034.