Tool to check BBAN numbers. The BBAN (Basic Bank Account Number) checksum algorithm allows to check if a full bank account BBAN number is correct.
BBAN Number - dCode
Tag(s) : Checksum
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
A RIB (Bank Account Statement) is a document containing the information needed to identify a bank account. It includes the bank code, the sort code, the account number, and the RIB key (control key).
In France, a RIB has 23 characters:
— Bank code: 5 digits
— Sort code: 5 digits
— Account number: 11 characters (numbers and possibly letters)
— Checksum key: 2 digits between 01 and 97
Example: Example: 12345 12345 0123456789A 01
The RIB corresponds to the national version of the BBAN (Basic Bank Account Number), a standardized format across Europe.
It is impossible to publicly verify that a bank account number actually corresponds to an existing account (i.e., that there is indeed a bank containing this bank account and that this account is active and has money in it): this data is subject to banking secrecy.
On the other hand, the presence of the control key allows the verification of the technical validity of a RIB.
If the key calculation fails, the bank account number is false/erroneous.
If the calculation succeeds, the bank account number is technically valid, but this does not guarantee its authenticity (a fraudster can provide a valid bank account number from a stolen/spoofed account).
The algorithm for the validation calculator checks the BBAN key via a modulo 97:
Example: The bank number is: 12345 12345 0123456789A 03
Step 1: Remove the key BBAN code.
Example: Key 03 is changed to 00, the rest of the calculation is done with 12345 12345 0123456789A 00.
Step 2: replace any letters by figures in the table
| A, J | 1 |
| B, K, S | 2 |
| C, L, T | 3 |
| D, M, U | 4 |
| E, N, V | 5 |
| F, O, W | 6 |
| G, P, X | 7 |
| H, Q, Y | 8 |
| I, R, Z | 9 |
Example: A=1, the BBAN becomes a number 12345123450123456789100
Step 3: Calculate the value of the result number modulo 97, then subtract the result to 97.
Example: $ 12345123450123456789100 \mod 97 \equiv 94 $ and $ 97 - 94 = 3 $
The checksum key is therefore 03 (the key removed previously), the BBAN is valid.
The number 97 is a prime number (the largest two-digit prime number).
Using a modulo based on a prime number effectively detects most input errors or digit permutations.
dCode retains ownership of the "BBAN Number" source code. Any algorithm for the "BBAN Number" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "BBAN Number" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "BBAN Number" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "BBAN Number" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: BBAN Number on dCode.fr [online website], retrieved on 2025-11-08,