Free tool
Check an IBAN
Paste an IBAN: the tool checks the length expected for the country, the check digits (ISO 13616, modulo 97) and, for a French IBAN, the RIB key and the bank, branch and account codes.
The check runs in your browser: the IBAN is neither sent nor stored.
Result
Valid IBAN: the length and check digits are correct.
Invalid IBAN.
An IBAN starts with two letters (the country) and two digits (the check digits), followed by letters and digits only.
Country code does not use IBANs, or does not exist.
A IBAN has characters, this one has : a character is missing or extra.
The check digits are , but the other characters give : probably a typing error.
The French RIB inside the IBAN
| Bank code | |
|---|---|
| Branch code | |
| Account number | |
| RIB key | |
The RIB key is consistent.
The RIB key should be : the original RIB contained an error.
A valid IBAN is not necessarily an open account: only the bank can confirm that. Before a transfer, verification of payee (VoP) also compares the account holder's name.
How IBAN check digits work
- Move the first four characters (country and check digits) to the end.
- Replace each letter with a number: A = 10, B = 11… Z = 35.
- The resulting large number, divided by 97, must leave a remainder of 1.
static boolean isValidIban(String iban) {
String s = iban.replaceAll("\\s", "").toUpperCase();
String moved = s.substring(4) + s.substring(0, 4);
StringBuilder digits = new StringBuilder();
for (char c : moved.toCharArray()) {
digits.append(Character.isLetter(c) ? String.valueOf(c - 'A' + 10) : String.valueOf(c));
}
return new BigInteger(digits.toString()).mod(BigInteger.valueOf(97)).intValue() == 1;
}
In production, also check the country length, or use a library such as iban4j. For transfer amounts, see our tutorials on handling money in Java and the Spring Boot payments API.
The same calculation in Java, tested and free to use (Apache 2.0), on GitHub
The most used free tools
- Lending Mortgage amortisation schedule Monthly payment, borrower insurance and a schedule to the cent, month by month, exported as PDF.
- Payments Check an IBAN Check digits, length by country and, for a French IBAN, the RIB key, bank and branch codes.
- Compliance Is your AI high-risk? Six questions, two minutes: the AI Act category of your use case and the obligations that follow.
- Markets Calculate a settlement date T+1, T+2… settlement dates from an ISIN or a date, on the TARGET, London, New York and Paris calendars.
Your systems compute this every day?
Payments, lending, markets: our consultants know the business rules as well as the code. Our legacy diagnostic finds fragile calculations and tells you what to fix first.