Home SWIFT/BIC code Morocco

Morocco SWIFT/BIC code validator

How the SWIFT/BIC code format works

Format
8 or 11-character bank identifier code, country code MA in positions 5-6
Example
BCMAMAMC

Things to watch for

  • Structure: 4-letter bank code + MA (country) + 2-character location code, plus an optional 3-character branch code
  • An 8-character code (or one ending XXX) refers to the bank's head office in Casablanca, Morocco's financial capital — most major banks share MC as the location code
  • No checksum digit — this is a format check only; it confirms positions 5-6 read MA, not that the bank or branch actually exists
Regex for SWIFT/BIC code
^[A-Z]{4}MA[A-Z0-9]{2}([A-Z0-9]{3})?$

A Moroccan SWIFT/BIC code identifies the bank on an international wire transfer into or out of Morocco, separate from the domestic RIB and IBAN-format account number Moroccan banks also use. Every Moroccan BIC has MA fixed at positions 5-6, right after the 4-letter bank code, and nearly all of the country’s largest banks anchor their SWIFT head office in Casablanca.

Major Moroccan bank BIC prefixes

Bank BIC Location
Attijariwafa Bank BCMAMAMC Casablanca
Banque Populaire BCPOMAMC Casablanca
Bank of Africa (BMCE) BMCEMAMC Casablanca

How this validator works

This tool checks that the code is 8 or 11 characters, the first 4 characters are letters, positions 5-6 read MA, and the location and optional branch segments use only letters and digits — entirely client-side, with nothing sent to a server.

What a pass doesn’t tell you

A pass confirms the code fits the Moroccan BIC pattern, not that BCMA, BCPO, or BMCE still names an operating bank, or that the branch suffix is current. A BIC has no checksum digit, so a fabricated code that matches the shape still validates.

Scope: format validation only. It does not check the accompanying domestic account number (RIB) entered alongside it on a Moroccan transfer.

SWIFT/BIC code FAQ

What's the SWIFT code format for a Moroccan bank?

A Moroccan BIC is 8 or 11 characters: a 4-letter bank code, MA fixed at positions 5-6, a 2-character location code, and an optional 3-character branch code — for example BCMAMAMC for Attijariwafa Bank.

Why do most Moroccan BICs end in MC?

MC is the SWIFT location code for Casablanca, Morocco's commercial and financial capital — most of the country's largest banks register their head office there, even though Rabat is the political capital.

Does an 8-character code work for a Moroccan bank?

Yes — the 8-character BIC and its 11-character form ending XXX both identify the same head office and are accepted interchangeably on international transfer instructions.

← More SWIFT/BIC code validators