Morocco Phone Number Format

Country code +212 — Complete guide to Morocco phone number formats, mobile and landline structures, and area codes.

Number Format Overview

Phone numbers in Morocco use the international country code +212. When dialing from outside Morocco, you must include this country code before the local number.

International Format

+212 [area code] [local number]

From the United States

011 212 [area code] [local number]
When dialing a number within Morocco, local dialing rules apply. You may need to include a trunk prefix (often 0) before the area code for domestic calls, but you should omit this prefix when dialing internationally.

Mobile vs. Landline Numbers

Mobile Numbers

Mobile phone numbers in Morocco typically:

  • Begin with specific mobile prefixes
  • May have a different length than landline numbers
  • Are often 8-10 digits after the country code
+212 XX XXXX XXXX
Landline Numbers

Landline numbers in Morocco typically:

  • Start with a geographic area code
  • Area codes identify the city or region
  • Total length varies by area code
+212 (area) XXXX XXXX

Example Phone Numbers

These are example formats only and are not real phone numbers:

Type Local Format International Format From US
Landline (Rabat) (0XX) XXXX XXXX +212 XX XXXX XXXX 011 212 XX XXXX XXXX
Mobile 0XXX XXX XXXX +212 XXX XXX XXXX 011 212 XXX XXX XXXX
Toll-Free 0800 XXX XXXX +212 800 XXX XXXX 011 212 800 XXX XXXX

Morocco Area Codes

Major area codes in Morocco:

Area Code City / Region
528 Agadir
5299 Agadir et alentours
5282 Agadir, Inezgane et Ait Meloul
5229 Casablanca
5290 Casablanca
5228 Casablanca
5227 Casablanca
5226 Casablanca
5225 Casablanca
5224 Casablanca
5223 Casablanca
520X Casablanca
5222 Casablanca
5242 El Kelaa des Sraghna
5288 Es-Semara, Agadir et Tarfaya
5247 Essaouira
55 Fes
5287 Guelmim et Tan Tan
5283 Inezgane et Taroudannt
48 Läayoune
5289 Laayoune et Dakhla
44 Marrakech
5243 Marrakech
5244 Marrakech
5298 Marrakech et alentours
525X Marrakech, Agadir, Dakhla, Essaouira, La
55 Meknes
5232 Mohammedia
5233 Mohammedia et El Jadida
56 Nador
524 Ouarzazate
5248 Ouarzazate
5235 Oued Zem
56 Oujda
37 Rabat
5246 Safi et El Youssoufia
23 Settat
5237 Settat
5234 Settat
39 Tanger (Tangiers)
5285 Taroudannt et Oulad Teima
39 Tétouan
5286 Tiznit

Dialing Tips

  • Remove the leading zero: When dialing internationally, drop the trunk prefix (usually 0) that is used for domestic calls in Morocco.
  • Use the + notation: From a US mobile phone, use +212 instead of 011 212.
  • Verify the number length: Make sure you have the correct number of digits. If your call does not connect, check whether you need to add or remove an area code digit.
  • Save contacts in international format: Always store phone numbers with the full +212 prefix so they work from any country.
Morocco Quick Info
Country Code+212
ISO CodeMA
CapitalRabat
International Prefix011 (from US)
Nearby Countries