+212 country code: Morocco
Morocco uses country code +212, which it shares with Western Sahara.
Country code and number format
The country code for Morocco is +212. National numbers are 9 digits long, not counting the country code. Mobile numbers can be moved between operators in Morocco.
| Type | National format | International format |
|---|---|---|
| Fixed line | 05 20 12 34 56 | +212 5 20 12 34 56 |
| Mobile | 06 50 12 34 56 | +212 6 50 12 34 56 |
| Toll-free | 080-1234567 | +212 80 1234567 |
| Premium rate | 089-1234567 | +212 89 1234567 |
| VoIP | 05 92 40 12 34 | +212 5 92 40 12 34 |
Examples come from libphonenumber’s metadata. They show the format and may not be assigned numbers.
| Type | Digits |
|---|---|
| Fixed line | 9 |
| Mobile | 9 |
| Toll-free | 9 |
| Premium rate | 9 |
| VoIP | 9 |
Trunk prefix and exit code
Inside Morocco, people dial 0 before a national number. For an international call, drop it: write +212 and then the number without the 0.
To call abroad from Morocco, dial 00.
How to call Morocco from the United States, and the reverse
From the United States, dial 011, then 212, then the national number without the 0 at the front. In full: 011 212 520123456.
To call the United States from Morocco, dial 00, then 1, then the area code and the seven-digit number.
Work out other routes with the dialing calculator set to the US and Morocco, or the reverse.
Mobile prefixes and operators
libphonenumber links 79 number prefixes to 4 operators in Morocco. Orange leads with 30 prefixes. Next comes Maroc Telecom (25).
| Operator | Prefixes | Examples (after +212) |
|---|---|---|
| Orange | 30 | 612, 614, 617, 619, 620, 621 |
| Maroc Telecom | 25 | 61, 622, 623, 624, 628, 636 |
| Inwi | 22 | 60, 626, 627, 629, 630, 633 |
| Al Hourria Telecom | 2 | 6921, 6922 |
This is the operator a range was first allocated to. Numbers can be ported between operators here, so the operator serving a number today can be different.
Shared country code
+212 is shared by Morocco and Western Sahara. Numbers for Morocco start with [5-8] after the country code.