Country code

Morocco: +212

Morocco uses country code +212. From the United States, dial 011 212 6 50 12 34 56. A number is written +212 6 50 12 34 56.

Country code +212MATrunk prefix 0Exit code 00Shared with 1 place

How to call Morocco

The table uses the example number below. Replace it with the number you are calling. Drop the 0 at the start of the national number when you dial from abroad.

How to dial Morocco from other countries
Calling fromExit codeDial
Any mobile phoneNone+212 6 50 12 34 56
United States011011 212 6 50 12 34 56
Canada011011 212 6 50 12 34 56
United Kingdom0000 212 6 50 12 34 56
Australia00110011 212 6 50 12 34 56
Germany0000 212 6 50 12 34 56
France0000 212 6 50 12 34 56
India0000 212 6 50 12 34 56
Japan010010 212 6 50 12 34 56
Mexico0000 212 6 50 12 34 56
South Africa0000 212 6 50 12 34 56

How a Morocco number is built

Digit counts are the national number only, after the country code and without the 0 trunk prefix.

Number structure for Morocco
LineDigitsPattern
Mobile9 digits(?:6(?:[0-79]\d|8[0-247-9])|7(?:[016-8]\d|2[0-8]|3[01]|5[0-5]))\d{6}
Landline9 digitsA pattern of 125 characters, applied by the validator below
Toll free9 digits80[0-7]\d{6}
Premium rate9 digits89\d{7}
Example, national form
06 50 12 34 56
Example, international form
+212 6 50 12 34 56

Validate a Morocco number

Paste a number and the tool checks it against the numbering plan. It returns the standard formats and the line type the plan assigns.

Type the number the way it is written in Morocco, or start with + and the country code.

Area codes and places in Morocco

The start of a number shows the place its range was first assigned to. 76 ranges are listed in the source.

Area codes for Morocco
Starts withPlace
+212 520Casablanca
+212 521Casablanca/Central Morocco
+212 5220Casablanca
+212 5222Casablanca
+212 5223Casablanca
+212 5224Casablanca
+212 5225Casablanca
+212 5226Casablanca
+212 5227Casablanca
+212 5228Casablanca
+212 5229Casablanca
+212 5232Mohammedia
Show the other 64 rows
Area codes for Morocco, continued
Starts withPlace
+212 5233El Jedida/Mohammedia
+212 5234Settai
+212 5235Oued Zem
+212 5237Settat
+212 5242El Kelaa des Sraghna
+212 5243Marrakech
+212 5244Marrakech
+212 5246El Youssoufia/Safi
+212 5247Essaouira
+212 5248Ouarzazate
+212 525Southern Morocco
+212 5282Agadir/Ait Meloul/Inezgane
+212 5283Inezgane/Taroudant
+212 5285Oulad Teima/Taroudant
+212 5286Tiznit
+212 5287Guelmim/Tan Tan
+212 5288Agadir/Es-Semara/Tarfaya
+212 5289Dakhla/Laayoune
+212 529Casablanca
+212 5296Marrakech
+212 5297Agadir
+212 5298Marrakech
+212 5299Agadir
+212 530Rabat/Kènitra
+212 531Tangier/Al Hoceima/Larache/Tètouan/Chefchaouen
+212 532Fès/Errachidia/Meknès/Nador/Oujda/Taza
+212 5352Taza
+212 5353Midelt
+212 5354Meknès
+212 5355Meknès
+212 5356Fès
+212 5357Goulmima
+212 5358Ifrane
+212 5359Fès
+212 5362Berkane
+212 5363Nador
+212 5365Oujda
+212 5366Figuig/Oujda
+212 5367Bouarfa/Oujda
+212 5368Figuig
+212 5372Rabat
+212 5373Kénitra
+212 5374Ouazzane
+212 5375Khémisset
+212 5376Rabat/Témara
+212 5377Rabat
+212 5378Salé
+212 5379Souk Larbaa
+212 5380Rabat
+212 5381Rabat
+212 5384Tangier
+212 5385Tangier
+212 5386Fez/Meknes
+212 5387Fez/Meknes
+212 5388Tangier
+212 5389Fez/Meknes
+212 5393Tangier
+212 5394Asilah
+212 5395Larache
+212 5396Fnideq/Martil/Mdiq
+212 5397Tétouan
+212 5398Al Hoceima/Chefchaouen
+212 5399Al Hoceima/Larache/Tangier
+212 549Casablanca/Marrakech/Agadir

76 rows. Names are where the range was first assigned; numbers move between places and carriers.

Who first issued each range in Morocco

79 ranges are listed in the source with the network that first held them. Numbers port between networks, so the current network can differ.

First issuers of Morocco number ranges
Starts withFirst issued to
+212 60Inwi
+212 61Maroc Telecom
+212 612Orange
+212 614Orange
+212 617Orange
+212 619Orange
+212 620Orange
+212 621Orange
+212 622Maroc Telecom
+212 623Maroc Telecom
+212 624Maroc Telecom
+212 625Orange
Show the other 67 rows
First issuers of Morocco number ranges, continued
Starts withFirst issued to
+212 626Inwi
+212 627Inwi
+212 628Maroc Telecom
+212 629Inwi
+212 630Inwi
+212 631Orange
+212 632Orange
+212 633Inwi
+212 634Inwi
+212 635Inwi
+212 636Maroc Telecom
+212 637Maroc Telecom
+212 638Inwi
+212 639Maroc Telecom
+212 640Inwi
+212 641Maroc Telecom
+212 642Maroc Telecom
+212 643Maroc Telecom
+212 644Orange
+212 645Orange
+212 646Inwi
+212 647Inwi
+212 648Maroc Telecom
+212 649Orange
+212 65Maroc Telecom
+212 656Orange
+212 657Orange
+212 660Orange
+212 661Maroc Telecom
+212 662Maroc Telecom
+212 663Orange
+212 664Orange
+212 665Orange
+212 666Maroc Telecom
+212 667Maroc Telecom
+212 668Maroc Telecom
+212 669Orange
+212 67Maroc Telecom
+212 674Orange
+212 675Orange
+212 679Orange
+212 680Inwi
+212 681Inwi
+212 682Maroc Telecom
+212 684Orange
+212 687Inwi
+212 688Orange
+212 689Maroc Telecom
+212 690Inwi
+212 691Orange
+212 6921Al Hourria Telecom
+212 6922Al Hourria Telecom
+212 693Orange
+212 694Orange
+212 695Inwi
+212 696Maroc Telecom
+212 697Maroc Telecom
+212 698Inwi
+212 699Inwi
+212 70Inwi
+212 71Inwi
+212 72Inwi
+212 73Orange
+212 75Maroc Telecom
+212 76Maroc Telecom
+212 77Orange
+212 78Orange

79 rows. The first issuer of the range; numbers port between carriers, so the current carrier can differ.

Other places that use +212

  • Western Sahara

Questions about calling Morocco

What is the country code for Morocco?
The country code for Morocco is +212. Written in full, a number looks like +212 6 50 12 34 56.
How do I call Morocco from the United States?
Dial 011, then 212 6 50 12 34 56. On a mobile phone you can dial +212 6 50 12 34 56 instead.
Do I dial the 0 at the start of a Morocco number from abroad?
No. The 0 is the trunk prefix used for calls inside Morocco (06 50 12 34 56). From abroad it is dropped after +212 (+212 6 50 12 34 56).
How many digits is a Morocco phone number?
Mobile numbers have 9 digits after the country code. Landline numbers have 9 digits.
How do I call another country from Morocco?
Dial 00, then the country code and the number. On a mobile phone, + replaces 00.
Which other places use +212?
Western Sahara also use +212, so the digits after the code are what tell the places apart.

Check numbers in bulk with the API

LookValid products for phone numbers and what one lookup costs
ProductCreditsDocs
Phone Numbering-Plan Validation1 credit per valid numberAPI docs
Country Calling Codes1 credit per lookup (an unknown code, country or name is free)API docs

See every country code.

Number patterns, lengths and examples: libphonenumber-js 1.13.15, released 2026-10-08, read 2026-10-19, built on Google's libphonenumber metadata. Place names and first issuers: libphonenumber geocoding and carrier files, read 2026-10-19. Library. LookValid is not connected to Google or to any phone company named here.