+212 country code: Morocco

Morocco uses country code +212, which it shares with Western Sahara.

Source: libphonenumber metadata, snapshot of 1 December 2026. By the ReverseIt Editorial Team.

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.

Example numbers by type
TypeNational formatInternational format
Fixed line05 20 12 34 56+212 5 20 12 34 56
Mobile06 50 12 34 56+212 6 50 12 34 56
Toll-free080-1234567+212 80 1234567
Premium rate089-1234567+212 89 1234567
VoIP05 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.

National number lengths (digits) by type
TypeDigits
Fixed line9
Mobile9
Toll-free9
Premium rate9
VoIP9

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).

Operators by number of prefixes
OperatorPrefixesExamples (after +212)
Orange30612, 614, 617, 619, 620, 621
Maroc Telecom2561, 622, 623, 624, 628, 636
Inwi2260, 626, 627, 629, 630, 633
Al Hourria Telecom26921, 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.