Skip to main content

Welcome to the new iris.ma

We rebuilt everything for you

Same team, same standards

Pay nowView my order

ExplainedPayment

The IBAN in Morocco: complete guide

The IBAN uniquely identifies a bank account, in Morocco as well as abroad. Here is the structure of the Moroccan IBAN, how its check digits are calculated, where to find it, and a tool to check yours or rebuild it from your RIB.
Reading time
8 min read
Last revised
Updated on

The answer in 20 seconds

A Moroccan IBAN has 28 characters: “MA”, two check digits, then the 24 digits of your RIB. It reads as follows: bank code (3), branch code (4), account number (15), RIB key (2).

The two digits that follow “MA” are not decorative: they are calculated by the mod-97-10 algorithm. That is what allows a bank to reject a badly copied IBAN before sending the money.

Check or rebuild a Moroccan IBAN

The calculation happens entirely in your browser. No IBAN is sent to iris.ma or stored.

28/28 characters

Valid IBAN: the mod-97 check digits are correct.

Breakdown of the IBAN entered
SegmentValueWhat it is for
Country codeMAMorocco, in 2 letters
Check digits64Calculated by the mod-97 algorithm
Bank code011Identifies the bank, in 3 digits
Branch code5190Branch or town where the account is held
Account number000012050005349The holder's account
RIB key21National check, in 2 digits

The essentials

  • Exactly 28 characters for a Moroccan IBAN: MA + 2 check digits + 24 digits.
  • Your RIB is the last 24 digits of your IBAN. Each one follows from the other.
  • The check digits are calculated with the mod-97-10 algorithm: a valid IBAN always leaves a remainder of 1.
  • The IBAN identifies an account; the BIC/SWIFT identifies a bank. For an international transfer, both are often provided.
  • You will find it on your statement, in your online banking area, or on the RIB certificate issued by your branch.
  • To pay for an iris.ma order by transfer, our bank details are given to you when the order is confirmed — see our payment methods.
01

What is the IBAN?

The IBAN (International Bank Account Number) is a standardised alphanumeric code that uniquely identifies a bank account, for national as well as international transactions. It was introduced to reduce transcription mistakes and to make communication between financial institutions easier.

The system has now been adopted in 88 countries and continues to spread. Originally drawn up by the European Committee for Banking Standards (ECBS) and formalised since 1997 by the international standard ISO 13616 – currently in its ISO 13616:2020 version –, the IBAN is registered and managed by SWIFT, which guarantees uniformity and greater security in exchanges.

Its four properties

  • Unique identification — the IBAN designates precisely a customer's account within a financial institution.
  • Standardised format — a country code, two check digits and a BBAN (Basic Bank Account Number) specific to each country. This framework limits the risk of entry mistakes.
  • Built-in validation — the two check digits, calculated with the mod-97-10 algorithm, make it possible to verify the integrity of the number before the transaction is executed.
  • International adoption — designed first for intra-European payments, the IBAN is today used in many countries, which makes cross-border exchanges easier.
02

What a Moroccan IBAN is made of

The rule to remember

28 characters in total: MA + 2 check digits + 24 RIB digits. If what you have entered is not exactly 28 characters long, something is missing or there is one too many.

The national part (the BBAN) of a Moroccan IBAN has 24 digits, which are exactly the RIB printed on your bank statement:

SegmentLengthRole
Country code2 letters“MA” for Morocco
Check digits2 digitsResult of the mod-97-10 calculation
Bank code3 digitsIdentifies the bank
Branch code4 digitsDesignates the branch or the town
Account number15 digitsThe unique number allocated to the holder
RIB key2 digitsAdditional check at national level

A Moroccan IBAN example, explained

Take the IBAN MA64 0115 1900 0001 2050 0053 4921, an example documented by the IBAN registry:

  • MA — country code of Morocco.
  • 64 — check digits, result of the mod-97-10 calculation.
  • 011 — bank code.
  • 5190 — branch code (bank branch).
  • 000012050005349 — bank account number.
  • 21 — RIB key, which strengthens the security of operations.

The total of 28 characters — 4 for “MA64” and 24 digits for the BBAN — complies with the Moroccan standard, which defines the IBAN with 24 digits in the national part.

How the check digits are calculated

The mod-97-10 algorithm turns the IBAN into a very large whole number and checks the remainder of its division by 97. In practice: the first four characters are moved to the end, each letter is replaced by its position in the alphabet plus 9 (M = 22, A = 10), then the division is made. If the remainder is 1, the IBAN is valid. That is exactly the calculation the tool at the top of this page makes, in your browser.

03

Where to find your IBAN

There are several ways to get your Moroccan IBAN:

  • On your bank account details slip (RIB) — your IBAN is usually shown there clearly, next to the 24 digits of the RIB.
  • In your online banking area — most Moroccan banks display it under “My accounts” or “Bank details”, with a button to download a certificate.
  • On your chequebook — many banks print it on the back of the cover.
  • At your branch — the signed RIB certificate is in fact the document required by most organisations that pay money to you.

If all you have to hand is the 24 digits of the RIB, the “Build the IBAN from a RIB” tab of the tool above calculates the check digits for you.

04

What is the IBAN for?

The IBAN is essential to secure and to simplify banking operations. It serves to:

  • Make international transfers easier — its standardised structure guarantees fast, reliable transmission of payments between banks in different countries. It is the starting point of any bank transfer to Morocco.
  • Simplify national transactions — by identifying the beneficiary's account unambiguously, it reduces entry mistakes in interbank transfers.
  • Improve traceability — every operation is easier to check thanks to the information the IBAN contains.
  • Optimise automated processing — the checking algorithm lets computer systems detect an entry mistake before the transaction is even confirmed.

And to pay for an order?

On iris.ma, the bank transfer is one of the payment methods offered, alongside the bank card, cash on delivery, the cheque and payment in at a branch. Our bank details are displayed to you when the order is confirmed and then sent by email: the detail is on the payment methods page. For companies and public bodies, our business area issues quotations and invoices in the name of your company, with its ICE.

05

Differences between IBAN, SWIFT, BIC and RIB

These codes are often confused although they do not designate the same thing.

CodeWhat it identifiesWhen you provide it
IBANAn account, uniquely and internationallySystematically, for any transfer
BIC / SWIFTA bank within the international networkIn addition to the IBAN, for an international transfer
RIBAn account, in the Moroccan national formatIn Morocco, on paper documents

IBAN and SWIFT / BIC

  • IBAN — identifies a bank account uniquely; it includes the country, the account number and check digits.
  • SWIFT / BIC — identifies the bank as a whole on the international network; it is used in addition to the IBAN to locate the institution precisely during an international transfer.

IBAN and RIB

  • IBAN — the internationalised, standardised version of the account number, which allows transfers to be made under strict validation rules.
  • RIB — contains the same information (account number, bank code, branch code, RIB key) but in a format specific to each country. The IBAN takes up that information and internationalises it.

IBAN and SEPA

  • IBAN — the central element of bank identification for international transfers.
  • SEPA (Single Euro Payments Area) — the single euro payments area in Europe, within which the IBAN and the BIC harmonise transactions. Morocco does not belong to the SEPA zone, but the IBAN still makes exchanges with European countries easier.

Frequently asked questions

How many digits does a Moroccan IBAN have?

28 characters in total: the two letters “MA”, two check digits, then the 24 digits of the RIB. Any other length points to an entry mistake.

How do you check that an IBAN is valid?

The tool at the top of this page applies the mod-97-10 algorithm in your browser: it tells you immediately whether the check digits are correct, and shows you the expected ones if there is a typo. Your bank and its mobile app run the same check.

What is the difference between my RIB and my IBAN?

No information separates them: the RIB is the last 24 digits of the IBAN. The IBAN simply adds the country code “MA” and two check digits that make it possible to detect a copying mistake.

What is the IBAN registry for?

It is the database managed by the standardisation authority (SWIFT for most countries) that lists the IBAN formats compliant with the ISO 13616 standard. It allows banks to check the validity of an IBAN before a transaction is executed.

Is the IBAN compulsory for all payments?

In Morocco, as in most countries that have adopted the standard, the IBAN is essential to make a transfer between two banks, inside the country as well as abroad.

Is my IBAN sensitive data?

An IBAN allows money to be sent to you, not to be taken from you without a mandate. It remains personal data: do not make it public. The tool on this page makes all its calculations locally, and no IBAN entered is transmitted to iris.ma.

Can I pay for my iris.ma order by bank transfer?

Yes. SGM2I's bank details are displayed after the order is confirmed and sent by email. Give your order number as the reference: the order leaves as soon as the payment arrives. See the payment methods and the transfer times.

Going further

A question about your order?

Our team answers Monday to Saturday. Quotes within 24 working hours, invoice in your company's name with its ICE, delivery anywhere in Morocco.

See all

Chat on WhatsApp

Scan with my phone

The simplest way: open your phone camera and point it at this code. The chat opens with your message ready.

Open WhatsApp Web

Works if your phone is already linked to this computer.

Prefer to call? (+212) 05 30 31 64 21