esc
ID checkers

RIB key calculator:
France, RIB to IBAN

Type the 21 characters of a RIB without its key to get the clé RIB and the IBAN, or paste a full RIB or FR IBAN to check both keys.

More tools for France Other countries

How to use RIB key calculator

  1. 01Type the RIBBanque, guichet, compte.
  2. 02Read the keysClé RIB and IBAN.
  3. 03Copy the IBANOr the full RIB.
Front and back of an ID card on one sheet of paper

30006 00001 12345678901 → clé 89, FR76 3000 6000 0112 3456 7890 189.

The clé RIB is 97 minus the remainder of 89 × code banque + 15 × code guichet + 3 × account number divided by 97, with letters in the account number turned into digits. A French IBAN is FR, two check digits and the full RIB, so the tool builds that too.

Calcul clé RIB and RIB to IBAN in one place: type the code banque, the code guichet and the account number and the tool works out the 2-digit clé and the French IBAN that goes with it. Paste a full RIB or an FR IBAN to check both keys before you set up a transfer or a direct debit.

The four parts of a RIB

  • Code banque, 5 digits: the bank.
  • Code guichet, 5 digits: the branch.
  • Numéro de compte, 11 characters: the account, which may contain letters.
  • Clé RIB, 2 digits from 01 to 97: the check.

The clé RIB formula

Clé = 97 − ((89 × code banque + 15 × code guichet + 3 × numéro de compte) mod 97). Letters in the account number are first turned into digits: A to I become 1 to 9, J to R become 1 to 9, and S to Z become 2 to 9.

Example: banque 30006, guichet 00001, compte 12345678901 gives a remainder of 8, so the clé is 97 − 8 = 89.

From RIB to IBAN

  1. Write the whole RIB, clé included, after FR: FR ?? 30006 00001 12345678901 89.
  2. For the IBAN check digits, write the RIB followed by FR00, turn letters into numbers (A = 10 … Z = 35, so F = 15 and R = 27) and divide by 97.
  3. The check digits are 98 minus the remainder: here 76, giving FR76 3000 6000 0112 3456 7890 189.
  4. The tool does all of this; the steps are here so you can see why an IBAN and its RIB always match.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

My account number has a letter in it. Does that work?

Yes. For the clé, A to I count as 1 to 9, J to R as 1 to 9 and S to Z as 2 to 9. For the IBAN, the letter stays as it is.

Can the clé RIB be 97?

Yes. Keys run from 01 to 97.

Does this tell me whether the account exists?

No. It checks the keys only. It doesn’t contact any bank.

Is my RIB sent anywhere?

No. Everything runs in your browser.

Why is my IBAN check fine but the clé RIB wrong?

The IBAN check digits only protect the IBAN as a whole. If the RIB inside was copied with a wrong clé, the IBAN built from it can still have correct check digits. The tool checks both separately.

Does it work for Monaco or overseas territories?

This tool only handles IBANs that start with FR.