IBAN Validator and Check Digit Calculator

Verify an IBAN with the MOD 97 algorithm, compute check digits from a BBAN, browse country formats and check whole lists at once.

Free · Instant · Private
Quick answer: A valid IBAN always satisfies MOD 97 = 1. Move the first four characters (country code plus check digits) to the end, replace letters with numbers using A = 10 through Z = 35, then divide the resulting number by 97. A remainder of exactly 1 means the checksum passes. To create the check digits, set them to 00, compute the remainder and use 98 − remainder.
Check whether an IBAN is well formed
Spaces, dashes, dots and lowercase letters are cleaned automatically.
Validation result
Valid IBAN
FieldValue
Calculate the two IBAN check digits
Enter the country code and the Basic Bank Account Number (BBAN). The result is a format-valid test value, not a real account.
Complete IBAN
Validate a list of IBANs
One IBAN per line. Blank lines are skipped. Results can be copied as CSV.
Summary
ResultCleaned IBANCountryRemainderReason
CSV export
IBAN country length and BBAN structure reference
Filter by country name or two letter code. Lengths are the total number of characters including the country code and check digits.
CodeCountryTotal lengthBBAN lengthExample 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.

PartPositionsLengthMeaning
Country code1 to 22 lettersISO 3166-1 alpha-2 code of the country where the account is held.
Check digits3 to 42 digitsComputed from the rest of the IBAN using MOD 97 so that the whole value has a remainder of 1.
BBAN5 to endUp to 30 charactersBasic 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.

  1. Clean the IBAN: strip separators, uppercase the letters.
  2. Move the first four characters to the end of the string.
  3. Replace each letter with two digits: A = 10, B = 11, ... Z = 35.
  4. Starting with a remainder of 0, repeatedly apply remainder = (remainder x 10 + next digit) mod 97.
  5. 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

CountryIBANLengthCheck digitsMOD 97 result
United KingdomGB82 WEST 1234 5698 7654 3222821, valid
GermanyDE89 3704 0044 0532 0130 0022891, valid
FranceFR14 2004 1010 0505 0001 3M02 60627141, valid
NetherlandsNL91 ABNA 0417 1643 0018911, valid
BelgiumBE68 5390 0754 703416681, valid
SpainES91 2100 0418 4502 0005 133224911, valid
NorwayNO93 8601 1117 94715931, valid
United Kingdom, one digit changedGB82 WEST 1234 5698 7654 332282not 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.

CountryCodeTotal lengthBBAN lengthBBAN breakdown
GermanyDE22188-digit bank code, 10-digit account number
United KingdomGB22184-letter bank code, 6-digit sort code, 8-digit account number
FranceFR27235-digit bank, 5-digit branch, 11-character account, 2-digit key
NetherlandsNL18144-letter bank code, 10-digit account number
SpainES24204-digit bank, 4-digit branch, 2 check digits, 10-digit account
ItalyIT27231 letter, 5-digit bank, 5-digit branch, 12-character account
BelgiumBE16123-digit bank, 7-digit account, 2-digit national check
SwitzerlandCH21175-digit bank code, 12-character account number
PolandPL28248-digit bank code, 16-digit account number
SwedenSE24203-digit bank, 17-digit account, 1 check digit
NorwayNO15114-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

  1. Assuming a valid checksum means a real account. It only proves the string is internally consistent.
  2. Using 00 or 01 as check digits. Valid check digits always fall between 02 and 98.
  3. Deleting leading zeros. A BBAN is a fixed-width string, not a number.
  4. Mixing up the IBAN and the BIC. The IBAN identifies the account; the Business Identifier Code identifies the bank.
  5. Computing the remainder as a floating point number. The expanded value can be 60 digits long, so it must be reduced digit by digit.
  6. Forgetting that letters expand to two digits. A is 10, not 1, and Z is 35.
  7. 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

What is an IBAN?

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.

How does the IBAN checksum work?

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.

What are the two check digits for?

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.

Can this tool tell me whether an account exists?

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.

Do spaces, dashes and lowercase letters affect IBAN validation?

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.

Which countries use IBANs?

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.

What is the difference between an IBAN and a BIC or SWIFT code?

An IBAN identifies one account, while a Business Identifier Code identifies the bank. International payments often require both values.

Is my IBAN data uploaded anywhere?

No. Validation, check digit calculation and batch processing all run locally in your browser. Nothing is sent to a server or stored.