IBAN Validator & Generator
Check an IBAN for its length, format and check digits, see what each part means, or build an IBAN from your bank details.
An IBAN passes when it has the right length for its country, the right format and a correct check digit calculation (MOD 97). This tool tests all three for the 89 countries in the IBAN registry, in your browser. A pass means the IBAN is correctly formed. It does not prove the account exists or who owns it.
Check an IBAN
The example is the official registry example for the United Kingdom, not a real account.
Build an IBAN
The example is the official registry example for the chosen country, not a real account.
Go Deeper
What an IBAN Is
IBAN stands for International Bank Account Number. It is an international standard (ISO 13616) that writes an account number in a fixed format so payments can be checked before they are sent. Every IBAN has the same three parts:
- A two-letter country code, such as GB for the United Kingdom or DE for Germany.
- Two check digits, calculated from the rest of the IBAN to catch typing mistakes.
- The BBAN (basic bank account number), which holds the bank identifier and the account number in the format each country uses. Its length and mix of letters and digits differ by country.
IBANs range from 15 characters (Norway) to 33 characters (Russia) across the registry.
How an IBAN Is Validated
- Length. Each country has one fixed IBAN length.
- Format. Each position must be a digit, a letter, or either, as the country's format requires.
- Check digits (MOD 97). Move the first four characters to the end, replace each letter with a number (A is 10, B is 11, up to Z at 35), and divide the resulting number by 97. A valid IBAN leaves a remainder of 1.
Open "Show the working" in a result to see each step for your IBAN. The MOD 97 check catches every single-digit typo and almost all swapped digits, but it cannot tell whether the account is real.
How the Builder Works
Choose a country and the builder shows one box for each part of that country's format, such as the sort code and account number for the United Kingdom. Once every box is filled in, it works out the two check digits and puts the IBAN together. It labels the parts for well-known countries and shows the format for the rest.
- It calculates the IBAN check digits only. It cannot confirm that the bank identifier or account number is real.
- Several countries build their own national check digits into the account number, for example France, Spain, Italy and Belgium. Enter these as they appear in your domestic account details. The builder does not check them.
- For a UK IBAN, the four-letter bank identifier is not the sort code. It comes from the bank, so take it from your bank's documents or ask the bank for your IBAN.
IBAN Length and Format by Country
The table shows every country in the registry data we use, with the total length of its IBAN and the format of the part after the check digits. "Digits" means 0 to 9, "letters" means A to Z, and "letters or digits" means either.
| Country | Length | Format after the check digits |
|---|---|---|
| Albania (AL) | 28 | 8 digits, 16 letter or digits |
| Andorra (AD) | 24 | 4 digits, 4 digits, 12 letter or digits |
| Austria (AT) | 20 | 5 digits, 11 digits |
| Azerbaijan (AZ) | 28 | 4 letters, 20 letter or digits |
| Bahrain (BH) | 22 | 4 letters, 14 letter or digits |
| Belarus (BY) | 28 | 4 letter or digits, 4 digits, 16 letter or digits |
| Belgium (BE) | 16 | 3 digits, 7 digits, 2 digits |
| Bosnia and Herzegovina (BA) | 20 | 3 digits, 3 digits, 8 digits, 2 digits |
| Brazil (BR) | 29 | 8 digits, 5 digits, 10 digits, 1 letter, 1 letter or digit |
| Bulgaria (BG) | 22 | 4 letters, 4 digits, 2 digits, 8 letter or digits |
| Burundi (BI) | 27 | 5 digits, 5 digits, 11 digits, 2 digits |
| Costa Rica (CR) | 22 | 4 digits, 14 digits |
| Croatia (HR) | 21 | 7 digits, 10 digits |
| Cyprus (CY) | 28 | 3 digits, 5 digits, 16 letter or digits |
| Czechia (CZ) | 24 | 4 digits, 16 digits |
| Denmark (DK) | 18 | 4 digits, 9 digits, 1 digit |
| Djibouti (DJ) | 27 | 5 digits, 5 digits, 11 digits, 2 digits |
| Dominican Republic (DO) | 28 | 4 letter or digits, 20 digits |
| Egypt (EG) | 29 | 4 digits, 4 digits, 17 digits |
| El Salvador (SV) | 28 | 4 letters, 20 digits |
| Estonia (EE) | 20 | 2 digits, 14 digits |
| Falkland Islands (FK) | 18 | 2 letters, 12 digits |
| Faroe Islands (FO) | 18 | 4 digits, 9 digits, 1 digit |
| Finland (FI) | 18 | 3 digits, 11 digits |
| France (FR) | 27 | 5 digits, 5 digits, 11 letter or digits, 2 digits |
| Georgia (GE) | 22 | 2 letters, 16 digits |
| Germany (DE) | 22 | 8 digits, 10 digits |
| Gibraltar (GI) | 23 | 4 letters, 15 letter or digits |
| Greece (GR) | 27 | 3 digits, 4 digits, 16 letter or digits |
| Greenland (GL) | 18 | 4 digits, 9 digits, 1 digit |
| Guatemala (GT) | 28 | 4 letter or digits, 20 letter or digits |
| Honduras (HN) | 28 | 4 letters, 20 digits |
| Hungary (HU) | 28 | 3 digits, 4 digits, 1 digit, 15 digits, 1 digit |
| Iceland (IS) | 26 | 4 digits, 2 digits, 6 digits, 10 digits |
| Iraq (IQ) | 23 | 4 letters, 3 digits, 12 digits |
| Ireland (IE) | 22 | 4 letters, 6 digits, 8 digits |
| Israel (IL) | 23 | 3 digits, 3 digits, 13 digits |
| Italy (IT) | 27 | 1 letter, 5 digits, 5 digits, 12 letter or digits |
| Jordan (JO) | 30 | 4 letters, 4 digits, 18 letter or digits |
| Kazakhstan (KZ) | 20 | 3 digits, 13 letter or digits |
| Kosovo (XK) | 20 | 4 digits, 10 digits, 2 digits |
| Kuwait (KW) | 30 | 4 letters, 22 letter or digits |
| Latvia (LV) | 21 | 4 letters, 13 letter or digits |
| Lebanon (LB) | 28 | 4 digits, 20 letter or digits |
| Libya (LY) | 25 | 3 digits, 3 digits, 15 digits |
| Liechtenstein (LI) | 21 | 5 digits, 12 letter or digits |
| Lithuania (LT) | 20 | 5 digits, 11 digits |
| Luxembourg (LU) | 20 | 3 digits, 13 letter or digits |
| Malta (MT) | 31 | 4 letters, 5 digits, 18 letter or digits |
| Mauritania (MR) | 27 | 5 digits, 5 digits, 11 digits, 2 digits |
| Mauritius (MU) | 30 | 4 letters, 2 digits, 2 digits, 12 digits, 3 digits, 3 letters |
| Moldova (MD) | 24 | 2 letter or digits, 18 letter or digits |
| Monaco (MC) | 27 | 5 digits, 5 digits, 11 letter or digits, 2 digits |
| Mongolia (MN) | 20 | 4 digits, 12 digits |
| Montenegro (ME) | 22 | 3 digits, 13 digits, 2 digits |
| Netherlands (NL) | 18 | 4 letters, 10 digits |
| Nicaragua (NI) | 28 | 4 letters, 20 digits |
| North Macedonia (MK) | 19 | 3 digits, 10 letter or digits, 2 digits |
| Norway (NO) | 15 | 4 digits, 6 digits, 1 digit |
| Oman (OM) | 23 | 3 digits, 16 letter or digits |
| Pakistan (PK) | 24 | 4 letters, 16 letter or digits |
| Palestine (PS) | 29 | 4 letters, 21 letter or digits |
| Poland (PL) | 28 | 8 digits, 16 digits |
| Portugal (PT) | 25 | 4 digits, 4 digits, 11 digits, 2 digits |
| Qatar (QA) | 29 | 4 letters, 21 letter or digits |
| Romania (RO) | 24 | 4 letters, 16 letter or digits |
| Russia (RU) | 33 | 9 digits, 5 digits, 15 letter or digits |
| Saint Lucia (LC) | 32 | 4 letters, 24 letter or digits |
| San Marino (SM) | 27 | 1 letter, 5 digits, 5 digits, 12 letter or digits |
| Sao Tome and Principe (ST) | 25 | 4 digits, 4 digits, 11 digits, 2 digits |
| Saudi Arabia (SA) | 24 | 2 digits, 18 letter or digits |
| Serbia (RS) | 22 | 3 digits, 13 digits, 2 digits |
| Seychelles (SC) | 31 | 4 letters, 2 digits, 2 digits, 16 digits, 3 letters |
| Slovakia (SK) | 24 | 4 digits, 6 digits, 10 digits |
| Slovenia (SI) | 19 | 5 digits, 8 digits, 2 digits |
| Somalia (SO) | 23 | 4 digits, 3 digits, 12 digits |
| Spain (ES) | 24 | 4 digits, 4 digits, 1 digit, 1 digit, 10 digits |
| Sudan (SD) | 18 | 2 digits, 12 digits |
| Sweden (SE) | 24 | 3 digits, 16 digits, 1 digit |
| Switzerland (CH) | 21 | 5 digits, 12 letter or digits |
| Timor-Leste (TL) | 23 | 3 digits, 14 digits, 2 digits |
| Tunisia (TN) | 24 | 2 digits, 3 digits, 13 digits, 2 digits |
| Türkiye (TR) | 26 | 5 digits, 1 digit, 16 letter or digits |
| Ukraine (UA) | 29 | 6 digits, 19 letter or digits |
| United Arab Emirates (AE) | 23 | 3 digits, 16 digits |
| United Kingdom (GB) | 22 | 4 letters, 6 digits, 8 digits |
| Vatican City (Holy See) (VA) | 22 | 3 digits, 15 digits |
| Virgin Islands (British) (VG) | 24 | 4 letters, 16 digits |
| Yemen (YE) | 30 | 4 letters, 4 digits, 18 letter or digits |
Countries That Do Not Use IBAN
Many countries are not in the registry, including the United States, Canada, Australia, India, Japan, China, South Africa, Ghana, Kenya and Nigeria. They identify accounts in other ways. Nigerian accounts use a 10-digit NUBAN (see our NUBAN validator), and international payers usually need the account number, the bank name and the bank's SWIFT/BIC code, which you can find with our Nigeria SWIFT code finder.
For other systems, see our US ABA routing number checker, Canadian transit number lookup, Indian IFSC checker and Australian BSB checker.
The Data This Tool Uses
The country formats come from the SWIFT IBAN Registry, which is the official ISO 13616 registry. We used the registry's 89-country data as published in open-source libraries (python-stdnum's data file, generated from registry release 101, cross-checked against php-iban). We could not download the file from swift.com directly, so a newer release may add or change a country. The official registry is at swift.com. We tested the tool against the registry's example IBAN for every country, and all 89 validate. We last checked on 18 September 2026.
Frequently Asked Questions
What is an IBAN?
An IBAN (International Bank Account Number) is an international standard way of writing a bank account number, defined by ISO 13616. It has a two-letter country code, two check digits and a country-specific account identifier called the BBAN.
How do I validate an IBAN?
Paste it into the checker. Spaces, dashes and lowercase are ignored. The tool checks that the length matches the country, that every character is the right kind (digit or letter), and that the MOD 97 calculation leaves a remainder of 1. A valid IBAN passes all three.
How long is an IBAN?
It depends on the country. In the registry data we use, IBANs run from 15 characters (Norway) to 33 characters (Russia). The table on this page lists the length for every country.
Does a valid IBAN mean the account exists?
No. A valid IBAN is correctly formed, which catches most typing mistakes. It can still belong to no account, or to someone other than the person you expect. Confirm the IBAN with the account holder, and use your bank's payee check where it is offered.
Why does my IBAN fail the check?
The most likely cause is a mistyped, missing or swapped digit. If the length and format are right but the check digits fail, one character is probably wrong. Do not correct it yourself. Ask the account holder for the right IBAN.
Does Nigeria use IBAN?
No. Nigeria is not in the IBAN registry. Nigerian bank accounts have a 10-digit NUBAN, and someone paying you from abroad usually needs your account number, your bank's name and its SWIFT/BIC code. Use our NUBAN validator to check an account number and our Nigeria SWIFT code finder for the BIC.
Which countries use IBAN?
The registry data we use lists 89 countries, mostly in Europe, the Middle East, North Africa and parts of Latin America. Countries such as the United States, Canada, Australia, India, Japan, China, South Africa, Ghana, Kenya and Nigeria are not in it and use other account formats.
How does the IBAN builder work?
You choose a country and fill in each part of its account format, such as the sort code and account number for the United Kingdom. The tool then calculates the two check digits and assembles the IBAN. It cannot confirm that the bank or account is real.
Why is there no random IBAN generator?
A random IBAN that passes the check almost never belongs to a real account, and payments to it fail or are returned. If you need a test IBAN, the builder can fill in the official registry example for any country.
What are national check digits?
Some countries, including France, Spain, Italy and Belgium, build a second, domestic check into the account number itself. It is separate from the two IBAN check digits. This tool does not verify national check digits, so enter them exactly as they appear in your domestic account details.
Can I get my UK IBAN from my sort code and account number?
Almost. A UK IBAN also contains a four-letter bank identifier that comes from the bank and is not the sort code. Add it in the builder with your sort code and account number, and confirm the result with your bank. You can check the sort code and account number first with our UK sort code validator.
What is the difference between an IBAN and a SWIFT/BIC code?
An IBAN identifies a specific account. A SWIFT/BIC code identifies the bank. International payments often need both. Use our SWIFT code lookup to find a bank's BIC.
Is my IBAN stored or sent anywhere?
No. Everything runs in your browser. Nothing you type is sent to a server or saved by this page.
