InputTestHub

IBAN Validator

Validates an IBAN from any of the 87 countries in the ISO 13616 registry: the mod-97 checksum, the country length and the structure, reported separately.

Security Nothing uploaded No sign-up Free, unlimited
Security tool
Enter something above.
In short An IBAN is checked by moving its first four characters to the end, replacing every letter with its position in the alphabet plus nine — A becomes 10, Z becomes 35 — and dividing the resulting number by 97. A valid IBAN leaves remainder 1. That single rule is why a mistyped account number can be caught before the money moves rather than after, and it catches every single-character error and almost every swap of two neighbouring characters. Three things are worth knowing that most checkers do not say. First, the length is not universal: it is fixed per country and ranges from Norway's fifteen characters to Saint Lucia's thirty-two, so a number of the right shape and the wrong length is still wrong. Second, the check digits are always between 02 and 98 — the algorithm cannot produce 00, 01 or 99 — and a checker that only looks at the remainder will accept an impossible pair, which one of the registry's own example IBANs happens to demonstrate. Third, "mod-97 catches all transpositions" is only true for two digits: a letter expands to two digits when converted, so swapping a letter with a neighbouring digit can slip through, and this tool found exactly one such case in 1,183 tested across all 87 countries. Above all, a pass proves the number is internally consistent and nothing else. It cannot tell you the account exists, is open, or belongs to the person you are paying — a random string of the right shape gets through about once in 97 attempts.

How to use the IBAN Validator

  1. Paste the IBAN — spaces, dashes and lower case are all fine.
  2. Read the three checks: mod-97, length and structure.
  3. If one fails, the page names which and what that usually means.

About the IBAN Validator

A validator that knows all 87 countries in the ISO 13616 registry and reports the checksum, the length and the structure separately, because they fail at different things.

What people use it for

  • Checking an IBAN before making a transfer.
  • Validating bank details in a form.
  • Finding out which country an IBAN belongs to and how long it should be.

Details

Countries87, the whole ISO 13616 registry
ShortestNorway, 15 characters
LongestSaint Lucia, 32 characters
The ruleRotate four characters, letters become 10-35, remainder on 97 must be 1
Check digitsAlways 02 to 98. 00, 01 and 99 cannot be produced
What it catchesEvery single-character error; all adjacent digit swaps
What it missesA letter swapped with a neighbouring digit — 1 case in 1,183 tested
PrivacyThe arithmetic runs in your browser. Nothing you type is sent anywhere

The maths behind it

This tool uses ISO 7064 MOD-97-10: move the first four characters to the end, replace each letter with its position in the alphabet plus nine, read the result as one long number, and a valid IBAN leaves remainder 1 when divided by 97. Every intermediate value is shown on screen, so the result can be checked by hand.

Three checks, reported separately on purpose. Length, structure and checksum fail at different things, and knowing which failed tells you what to look for.

Where this tool stops

It checks arithmetic and shape. It does not look up the bank, confirm the account exists, or verify the national check digits that Belgium, Spain, France, Portugal, Norway and Finland compute inside their own account numbers — those are separate rules and passing mod-97 says nothing about them.

Frequently asked questions

How does the IBAN check digit work?
Move the first four characters to the end, replace each letter with its position in the alphabet plus nine (A = 10 through Z = 35), and read what is left as one long number. Divide it by 97; a valid IBAN leaves remainder 1. The check digits at positions three and four are chosen when the IBAN is created to make that come out right.
Does a valid IBAN mean the account exists?
No. It means the number is internally consistent, which usually means it was typed correctly. A random string of the right length passes about once in every 97 tries, and no arithmetic can reach into a bank to see whether an account is open or whose it is. Only the bank can tell you that.
Why does my IBAN fail when it looks right?
Check the three results separately, because they mean different things. A length failure means a character is missing or extra — often a leading zero dropped by a spreadsheet. A structure failure means a letter sits where the country expects a digit. If length and structure both pass and only the checksum fails, it is a genuine typo inside the number, and most often two neighbouring characters swapped.
Can an invalid IBAN ever pass this check?
One narrow kind can, and this page would rather say so. Mod-97 is guaranteed to catch a swap of two adjacent digits, but a letter becomes two digits during conversion, so swapping a letter with a neighbouring digit changes the number in a way the guarantee does not cover. Across all 87 registry examples, 1,183 adjacent swaps were tested and exactly one survived every check — inside a Romanian account, whose structure allows letters and digits in the same field so nothing else could object either.
Is it safe to paste my IBAN here?
Yes. The checking happens entirely in your browser; there is no request that could send it anywhere. An IBAN is not a secret in the way a card number is — it is printed on every invoice you send — but it is still yours, and it does not leave your machine.
Is the IBAN Validator free?
It is free, with no account, no trial and no daily cap. Every security tool on inputtesthub.com works the same way: open the page and use it.
Is the IBAN Validator safe to use with private information?
No. The IBAN Validator runs entirely in your browser using JavaScript. Your input never reaches inputtesthub.com or any third party — open your browser's Network tab while you use it and you will see no request go out.
What is the equation behind the IBAN Validator?
It uses ISO 7064 MOD-97-10: move the first four characters to the end, replace each letter with its position in the alphabet plus nine, read the result as one long number, and a valid IBAN leaves remainder 1 when divided by 97. The full working is printed under the result, so you can follow every step rather than trusting a black box.
Who is the IBAN Validator for?
The most common reasons people reach for it: checking an IBAN before making a transfer. Validating bank details in a form. Finding out which country an IBAN belongs to and how long it should be. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
When is the IBAN Validator not the right tool?
It checks arithmetic and shape. It does not look up the bank, confirm the account exists, or verify the national check digits that Belgium, Spain, France, Portugal, Norway and Finland compute inside their own account numbers — those are separate rules and passing mod-97 says nothing about them. Knowing where a tool stops being trustworthy matters more than the cases where it works.
Which values should I know?
Countries is 87, the whole ISO 13616 registry. Shortest is Norway, 15 characters. Longest is Saint Lucia, 32 characters. These are printed on the page itself, so you do not have to take them on trust.
Does the IBAN Validator work on a phone?
Yes. The page is responsive and the page works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related security tools

All 100
01

Password Strength Checker

Estimates password entropy and crack time, and identifies the specific weaknesses in what you…

02

Hash Generator

Generates MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text, all at once.

03

MD5 Hash Generator

Generates an MD5 hash of any text or string, with optional HMAC and uppercase output.

05

SHA-1 Hash Generator

Generates SHA-1 hashes, still required by some legacy systems and Git object addressing.

06

SHA-512 Hash Generator

Generates SHA-512 hashes for checksums, signatures and archival fingerprints. Runs in your…

09

AES Text Encryption

Encrypts and decrypts text with AES-GCM 256-bit using a password, entirely in your browser.

10

XOR Cipher Tool

Applies a repeating-key XOR to text or hex, the operation behind many simple obfuscation…