Skip to main content
Check Digit Calculator
Banking

French RIB Key Calculator

Calculate a French RIB account key from bank, branch and account codes. Review letter conversion and the weighted Modulus 97 formula.

Last updated:

Banking & Financial Standards

Calculate bank account control keys.

Length: 10 chars
Calculated Check Character / Checksum
--Ready
Complete Validated Sequence:
--
Arithmetic Steps & Mathematical Specification

Initialising algorithm engine for French RIB Key Calculator...

How French RIB Key Calculator Works?

The French RIB Key Calculator works by converting letters in the account number to digits, combining bank, branch, and account codes with weights 89, 15, and 3, and subtracting the remainder modulo 97 from 97. The 2-digit result is the clé RIB.

  1. 1Enter the 5-digit bank code (code banque), 5-digit branch code (code guichet), and 11-character account number.
  2. 2Replace letters in the account: 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.
  3. 3Compute 89 × bank + 15 × branch + 3 × account.
  4. 4Take the remainder modulo 97 and subtract it from 97.
  5. 5Pad the key to 2 digits.

French RIB Key Calculator Formula

The RIB key formula is Key = 97 − ((89·B + 15·G + 3·C) mod 97).

Key = 97 − ((89 × bank + 15 × branch + 3 × account) mod 97)
  • B is the bank code.
  • G is the branch code.
  • C is the account number with letters converted.
Worked example: 20041 01005 0500013M026
M → 4, account = 05000134026
89 × 20041 + 15 × 1005 + 3 × 5000134026 = 15002200802
mod 97 = 91
Key = 06

French RIB Key Calculator Conversion Table

The RIB conversion table maps account letters to digits and lists sample RIBs with their keys.

LettersDigitSample bank / branch / accountKey
A J120041 01005 0500013M02606
B K S230002 00550 0000157841Z25
C L T330004 00001 0001000123486
D M U410107 00175 0001234567840
E N V511315 00001 0123456789A92
F O W612345 67890 ABCDEFGHIJK68
G P X7——
H Q Y8——
I R Z9——

What is French RIB Key Calculator?

A French RIB Key Calculator is a tool that computes the 2-digit clé RIB of a French Relevé d'Identité Bancaire (RIB). The 23-character RIB is the domestic French account format.

The RIB key sits at the end of the BBAN in every French IBAN, so French IBANs carry 2 independent mod 97 checks.

What are the uses of French RIB Key Calculator?

There are 3 main uses of the French RIB Key Calculator, including IBAN creation, payroll setup, and supplier onboarding.

  • IBAN creation: French banks build FR IBANs from RIB data.
  • Payroll setup: Employers verify employee RIBs.
  • Supplier onboarding: Purchasing teams check supplier RIB documents.