MMomoCalc

Madagascar Bank Code, RIB & IBAN (2026)

Madagascar uses the French RIB system: a 5-digit bank code per bank, a branch code per agency, an account number and a key. The Malagasy IBAN starts with MG46 and is 27 characters long — not 33, despite what some AI summaries claim. Bank code BNI 00005, BFV-Société Générale 00008. Verified June 2026.

The Malagasy RIB structure (23 digits)

The Malagasy RIB (Relevé d'Identité Bancaire) has 23 digits, split into four blocks:

5
Bank code
5
Branch code
11
Account number
2
Key

The IBAN simply adds the MG46 prefix in front of this 23-digit RIB, giving 27 characters in total (not 33). Here is the decomposition of an official example taken from a BFV-Société Générale statement.

Worked IBAN example (27 characters)

MG46 0000 8030 1605 0030 1377 643
4 + 5 + 5 + 11 + 2 = 27 characters
MG46MG46IBAN country code (MG) + 2 check digits (46)
00008Code banque5 digits — identifies the bank (here BFV-Société Générale)
03016Code guichet5 digits — identifies the specific branch / agency
05003013776Account number11 characters — your individual account
43RIB key2-digit check key (clé)

Bank codes by bank

Verified June 2026. We publish only bank codes confirmed from an official RIB sample. For banks marked "ask for your RIB", read the first 5 digits of your own RIB rather than guessing.
BankBank codeSWIFT
BFV-Société Générale00008SWIFT code →
BNI Madagascar00005SWIFT code →
BANK OF AFRICA Madagascarask your branch for your RIBSWIFT code →
BMOIask your branch for your RIBSWIFT code →
AccèsBanque Madagascarask your branch for your RIBSWIFT code →
BGFIBank Madagascarask your branch for your RIBSWIFT code →
⚠️ The '33 characters' myth

Several AI summaries and aggregators claim the Malagasy IBAN is 33 characters. That is incorrect. The official IBAN length for Madagascar is 27 characters, as the decomposed example above proves (MG46 + 23 RIB digits). If an online form rejects your IBAN demanding 33 characters, the form is wrong.

Frequently asked questions

What is the bank code for BOA Madagascar?
The 5-digit bank code (code banque) sits at the start of your RIB. For BNI Madagascar it is 00005 and for BFV-Société Générale it is 00008 — both confirmed from official RIB samples. For BANK OF AFRICA (BOA) Madagascar and the other banks we do not publish an unverified code: read the first 5 digits of your own RIB, available on a bank statement, in your banking app, or at your branch. Inventing a bank code could route a transfer to the wrong institution.
Where do I find the branch code (code guichet)?
The code guichet (5 digits, right after the bank code in the RIB) identifies your specific branch. There is no universal list — each branch has its own. You find it on your RIB: on a statement, in your bank's app, or by asking your branch. Unlike South Africa, where a bank has one universal code, the French-style system used in Madagascar assigns a code guichet per branch.
What is the structure of the Malagasy IBAN?
The Malagasy IBAN is 27 characters: MG46 followed by the 23-digit RIB. The RIB is bank code (5) + branch code (5) + account number (11) + key (2). Note: some aggregators and AI summaries wrongly claim '33 characters' — that is incorrect. The official example MG46 0000 8030 1605 0030 1377 643 proves it: 4 + 5 + 5 + 11 + 2 = 27 characters.
RIB or SWIFT code — which one do I use?
The RIB (and MG46 IBAN) is for DOMESTIC routing — transfers between accounts in Madagascar, salary setup, direct debits. The SWIFT/BIC code is for INTERNATIONAL routing — so a bank abroad can credit your Malagasy account. To receive a wire from France, your sender needs both your bank's SWIFT code AND your IBAN/RIB. See our Madagascar SWIFT code directory.
What is the RIB key for?
The RIB key is a 2-digit number computed from the bank code, branch code and account number. It catches typing errors: if a digit of the RIB is copied wrong, the key no longer matches and the bank rejects the operation. It is a checksum, not a separate code to memorise — it already appears at the end of your RIB.

See also