| Field | Value |
|---|
| Result | Cleaned IBAN | Country | Remainder | Reason |
|---|
| Code | Country | Total length | BBAN length | Example structure |
|---|
What Is an IBAN?
An International Bank Account Number, or IBAN, is an internationally agreed way of identifying a bank account across national borders. It was designed to remove ambiguity from cross-border payments by adding a country code and a mathematical checksum to the domestic account number. The format is defined in ISO 13616 and the country-specific layouts are published in the SWIFT IBAN Registry.
IBANs are mandatory for transfers inside the Single Euro Payments Area (SEPA) and are also adopted by many countries in the Middle East, North Africa, Eastern Europe, the Caucasus and the Caribbean. Countries that do not use IBANs, such as the United States, Canada and Australia, rely on domestic account numbers plus a bank identifier code instead.
An IBAN contains up to 34 alphanumeric characters and has no spaces when transmitted electronically. The human-readable form groups the characters in blocks of four, for example GB82 WEST 1234 5698 7654 32.
Anatomy of an IBAN
Every IBAN is made of three parts in a fixed order. Only the first four positions are universal; the rest depends on the country.
| Part | Positions | Length | Meaning |
|---|---|---|---|
| Country code | 1 to 2 | 2 letters | ISO 3166-1 alpha-2 code of the country where the account is held. |
| Check digits | 3 to 4 | 2 digits | Computed from the rest of the IBAN using MOD 97 so that the whole value has a remainder of 1. |
| BBAN | 5 to end | Up to 30 characters | Basic Bank Account Number: a country-specific bank code, branch code, account number and sometimes a national check digit. |
Country code and check digits
The country code is always two uppercase letters. The two check digits range from 02 to 98; the values 00 and 01 are never used because they would make the checksum impossible, and 99 is reserved. A check digit pair of 00 is the temporary placeholder used when computing the real value.
Basic Bank Account Number
The BBAN has a fixed length and a fixed internal layout for each country. In Germany it is 18 digits (an 8-digit bank code plus a 10-digit account number). In the United Kingdom it is 18 characters (a 4-letter bank code, a 6-digit sort code and an 8-digit account number). In France it is 23 characters and includes a two-digit national key. The Country Formats tab lists the total and BBAN length for every country in the built-in reference.
The MOD 97 Checksum, Step by Step
The checksum is a single modular arithmetic operation on a very large integer. Because the number can be far longer than a normal integer variable, this tool processes it digit by digit, carrying only the remainder as described in ISO 13616.
- Clean the IBAN: strip separators, uppercase the letters.
- Move the first four characters to the end of the string.
- Replace each letter with two digits: A = 10, B = 11, ... Z = 35.
- Starting with a remainder of 0, repeatedly apply
remainder = (remainder x 10 + next digit) mod 97. - The IBAN is valid only when the final remainder equals 1.
Worked example with a United Kingdom IBAN
Take GB82 WEST 1234 5698 7654 32. Cleaning gives GB82WEST12345698765432. Moving the first four characters to the end gives WEST12345698765432GB82. Replacing letters gives 32 5 28 29 12345698765432 16 11 82, which concatenates to 325282912345698765432161182. Applying the running remainder yields 1, so the IBAN is valid.
Why 98 and not 97?
To compute check digits, set them to 00 and compute the remainder r of the rearranged string. The digits that make the remainder become 1 are 98 - r, because adding that value to the last two positions shifts the remainder by the same amount modulo 97. The result is always written with two digits, so a value below 10 gets a leading zero.
Worked Examples
| Country | IBAN | Length | Check digits | MOD 97 result |
|---|---|---|---|---|
| United Kingdom | GB82 WEST 1234 5698 7654 32 | 22 | 82 | 1, valid |
| Germany | DE89 3704 0044 0532 0130 00 | 22 | 89 | 1, valid |
| France | FR14 2004 1010 0505 0001 3M02 606 | 27 | 14 | 1, valid |
| Netherlands | NL91 ABNA 0417 1643 00 | 18 | 91 | 1, valid |
| Belgium | BE68 5390 0754 7034 | 16 | 68 | 1, valid |
| Spain | ES91 2100 0418 4502 0005 1332 | 24 | 91 | 1, valid |
| Norway | NO93 8601 1117 947 | 15 | 93 | 1, valid |
| United Kingdom, one digit changed | GB82 WEST 1234 5698 7654 33 | 22 | 82 | not 1, invalid |
Notice that changing a single digit breaks the checksum. That is precisely the purpose of the check digits: they catch transcription errors before money moves. They cannot, however, detect a deliberately constructed alternative IBAN with a valid checksum, which is why this tool never claims to verify that an account exists.
Country Length Reference
The table below shows widely used formats. Select the Country Formats tab above to search the complete built-in list of over seventy country codes, and to see the BBAN structure where it is published.
| Country | Code | Total length | BBAN length | BBAN breakdown |
|---|---|---|---|---|
| Germany | DE | 22 | 18 | 8-digit bank code, 10-digit account number |
| United Kingdom | GB | 22 | 18 | 4-letter bank code, 6-digit sort code, 8-digit account number |
| France | FR | 27 | 23 | 5-digit bank, 5-digit branch, 11-character account, 2-digit key |
| Netherlands | NL | 18 | 14 | 4-letter bank code, 10-digit account number |
| Spain | ES | 24 | 20 | 4-digit bank, 4-digit branch, 2 check digits, 10-digit account |
| Italy | IT | 27 | 23 | 1 letter, 5-digit bank, 5-digit branch, 12-character account |
| Belgium | BE | 16 | 12 | 3-digit bank, 7-digit account, 2-digit national check |
| Switzerland | CH | 21 | 17 | 5-digit bank code, 12-character account number |
| Poland | PL | 28 | 24 | 8-digit bank code, 16-digit account number |
| Sweden | SE | 24 | 20 | 3-digit bank, 17-digit account, 1 check digit |
| Norway | NO | 15 | 11 | 4-digit bank, 6-digit account, 1 check digit |
For other country codes, compare them with the International Dialing Code Finder and the Postal Code Finder, which use the same two letter ISO country identifiers.
Common Mistakes
- Assuming a valid checksum means a real account. It only proves the string is internally consistent.
- Using 00 or 01 as check digits. Valid check digits always fall between 02 and 98.
- Deleting leading zeros. A BBAN is a fixed-width string, not a number.
- Mixing up the IBAN and the BIC. The IBAN identifies the account; the Business Identifier Code identifies the bank.
- Computing the remainder as a floating point number. The expanded value can be 60 digits long, so it must be reduced digit by digit.
- Forgetting that letters expand to two digits. A is 10, not 1, and Z is 35.
- Ignoring country length. A checksum can pass by coincidence on a malformed string, so the length is an important cross-check.
Key Takeaways
- A well-formed IBAN leaves a remainder of exactly 1 when processed with MOD 97.
- The check digits are computed as 98 minus the remainder of the version with 00 in their place.
- An IBAN has up to 34 characters and always starts with a two letter country code.
- The BBAN length and internal structure are fixed per country.
- Format validation cannot confirm account ownership or that an account is open.
- Spaces, dashes and lowercase letters are cosmetic and are removed before validation.
Authoritative References
- ISO 13616, Financial services, International bank account number (IBAN), Parts 1 and 2.
- SWIFT IBAN Registry, the official release of country-specific IBAN formats and lengths.
- ISO 3166-1 alpha-2, Codes for the representation of names of countries and their subdivisions.
- European Payments Council, SEPA Credit Transfer and SEPA Direct Debit scheme rulebooks.
- ISO 9362, Banking, Business Identifier Codes (BIC).
Last updated: December 5, 2026 · All checks are performed locally in your browser. No data is stored or transmitted.
IBAN Validator FAQ
An International Bank Account Number is a standardised identifier for a bank account. It starts with a two letter country code, followed by two check digits and a country specific Basic Bank Account Number.
Move the first four characters to the end, replace letters with numbers where A is 10 and Z is 35, then compute the remainder modulo 97. A valid IBAN leaves a remainder of exactly 1.
They are calculated from the rest of the IBAN so that a mistyped digit, a swapped pair of characters or a missing character is almost always detected before a payment is sent.
No. It verifies the format and checksum only. It cannot confirm that the account is open, that the name matches, or that the bank identifier is real.
Spaces and lowercase letters are normal in printed IBANs. This tool removes spaces, dashes and converts letters to uppercase before validating, so they do not cause a failure.
IBANs are mandatory across the Single Euro Payments Area and are also used in many countries in the Middle East, North Africa, Eastern Europe and the Caribbean. The country table in this tool lists over seventy supported codes.
An IBAN identifies one account, while a Business Identifier Code identifies the bank. International payments often require both values.
No. Validation, check digit calculation and batch processing all run locally in your browser. Nothing is sent to a server or stored.