International · Validation
IBAN validator.
Verify an International Bank Account Number's real ISO 7064 MOD 97-10 checksum, and check its length against the ISO 13616 structure for the most common countries. Everything runs in your browser: nothing you type is transmitted anywhere.
How the IBAN checksum works
An IBAN's first 2 characters are a country code and the next 2 are check digits, followed by that country's own BBAN (Basic Bank Account Number) format. The check digits are computed with ISO 7064's MOD 97-10 algorithm:
- Move the 4 leading characters (country code + check digits) to the end of the string.
- Convert every letter to a number: A=10, B=11 … Z=35 (digits are left as-is).
- Read the whole result as one large decimal integer and take it mod 97.
- The IBAN is valid if, and only if, the remainder is exactly 1.
This tool computes that remainder digit-by-digit (a running mod-97) rather than building one huge number, which is exactly equivalent for numbers of any length — Malta's 31-character BBAN included.
Country lengths (sanity check, not a full registry)
| Country | Code | IBAN length |
|---|---|---|
| Germany | DE | 22 |
| United Kingdom | GB | 22 |
| France | FR | 27 |
| Spain | ES | 24 |
| Italy | IT | 27 |
| Netherlands | NL | 18 |
| Belgium | BE | 16 |
| Ireland | IE | 22 |
| Portugal | PT | 25 |
| Austria | AT | 20 |
| Switzerland | CH | 21 |
| Poland | PL | 28 |
| Sweden | SE | 24 |
| Denmark | DK | 18 |
| Finland | FI | 18 |
These 15 lengths were cross-checked between Wikipedia's IBAN article and iban.com's published structure table with no contradiction between the two. Every other ISO 13616 country is still checksum-validated by this tool — it just skips the extra length sanity check for countries outside this table.
Verification
Before shipping, the algorithm above was tested against two real, valid, published IBANs used as the independent open-source python-stdnum library's own doctests — a Greek IBAN and a Belgian one — and confirmed both reduce to remainder 1, while a deliberately corrupted check-digit variant does not.
What a passing checksum does and doesn’t tell you
A valid MOD 97-10 remainder only proves the IBAN's characters are internally consistent — it does not confirm the account actually exists or is open at that bank. Canada does not use IBANs at all; for a Canadian account, use the Bank Institution & Transit Lookup instead. This tool runs entirely in your browser: nothing you type is transmitted, stored, or logged.
What an IBAN is made of
An International Bank Account Number is a standard way of writing a bank account so that payments can be routed across borders and typing errors caught before money moves. An IBAN can be up to 34 alphanumeric characters. It begins with a two-letter country code, then two check digits, then a country-specific Basic Bank Account Number (BBAN) of up to 30 characters. SWIFT is the official IBAN registrar under ISO 13616-2, which is why each country’s exact length and BBAN layout come from the SWIFT registry. On paper IBANs are usually grouped in fours with spaces; in electronic messages the spaces are left out, which is why this tool ignores them.
Wikipedia reports that, as of December 2024, 89 countries used the IBAN system, including most of Europe, where it is mandatory within the EEA and for euro transactions, and many countries in the Middle East and the Caribbean. If you searched for a way to “lettura iban” or a “vérification iban gratuit”, the same algorithm applies in every language: the checksum rule is international, only the country length and BBAN layout differ.
The mod 97 check, step by step
- Check that the length matches what the country requires (a Great Britain IBAN is 22 characters, a Belgian IBAN 16).
- Move the first four characters, the country code and the check digits, to the end.
- Replace each letter with a number, A = 10, B = 11 and so on to Z = 35.
- Read the result as one large integer and divide it by 97. The IBAN is valid only if the remainder is exactly 1.
This is the MOD 97-10 method from ISO/IEC 7064, and it is designed to catch single-character errors, transpositions and most other common entry mistakes. The big number is why validators compute the remainder digit by digit instead of in one step; this tool does the same.
Worked example
Wikipedia gives the fictitious British IBAN GB82 WEST 1234 5698 7654 32. Remove the spaces and move GB82 to the end: WEST12345698765432GB82. Convert letters (W = 32, E = 14, S = 28, T = 29, G = 16, B = 11): 3214282912345698765432161182. That 28-digit number divided by 97 leaves remainder 1, so the check passes. Change the final digit of the account number from 2 to 3 and the remainder is no longer 1, so the validator reports the IBAN as invalid. The Irish example IE64 IRCE 9205 0112 3456 78 from the same article also leaves remainder 1.
Common mistakes
- Passing the checksum but failing the bank. A valid IBAN proves only that the characters are consistent. The account may be closed, mis-assigned to someone else or never have existed. Always confirm the beneficiary name through your bank’s own checks.
- Wrong length for the country. The checksum can pass by chance on a number that is too short or long. The length table above covers 15 common countries; other countries are checksum-checked but not length-checked.
- Using an IBAN for Canada or the US. Neither uses IBAN. US banks use ABA routing transit numbers (see the ABA validator), and Canadian institutions use Payments Canada routing numbers domestically and SWIFT internationally. Use the bank institution and transit lookup for Canadian accounts.
- Confusing O and 0, or I and 1. IBANs use letters and digits, so a copied value with a letter O where a zero belongs will fail the check.
- Mixing up IBAN and BIC. The BIC or SWIFT code identifies the bank; the IBAN identifies the account.
The same MOD 97-10 method protects the Legal Entity Identifier (LEI validator) and the Dutch VAT number in the EU VAT validator. If you work with SEPA payments, the SEPA IBAN tools cover the payment-format side.
Frequently asked questions
How do I validate an IBAN?
Remove spaces, move the first four characters to the end, turn letters into numbers (A = 10 to Z = 35) and divide the resulting integer by 97. The IBAN is valid when the remainder is 1 and the length matches the country.
How long can an IBAN be?
Up to 34 characters. The two-letter country code and two check digits are followed by a country-specific BBAN of up to 30 characters, and each country fixes its own total length.
Does a valid IBAN mean the account exists?
No. The MOD 97-10 check only shows the characters are consistent. It cannot show that the account exists, is open or belongs to the person you think it does.
Who maintains the list of IBAN formats?
SWIFT is the official registrar for IBAN formats under ISO 13616-2. Country lengths and BBAN structures change over time, so check the registry for production use.
Do Canada and the United States use IBANs?
No. According to Wikipedia, US banks use ABA routing transit numbers and Canadian institutions use Payments Canada routing numbers domestically and SWIFT internationally. Use the Canadian bank institution and transit lookup for Canadian accounts.
Why does my IBAN fail even though I copied it from a statement?
Typical causes are a letter O in place of a zero, a missing or extra character, or an IBAN copied from a document that groups the digits differently. Remove the spaces, compare the length with the country’s table above and re-enter it.
Is my IBAN sent to a server when I validate it?
No. The calculation runs in your browser, and nothing you type is transmitted, stored or logged.