{
  "url": "https://phonelookup.dev/country/ma",
  "iso": "MA",
  "slug": "ma",
  "name": "Morocco",
  "callingCode": 212,
  "exitCode": "00",
  "preferredExitCode": "",
  "trunkPrefix": "0",
  "mobilePortable": true,
  "mobileStarts": [
    "06",
    "07"
  ],
  "lineTypes": [
    {
      "type": "mobile",
      "label": "Mobile",
      "regex": "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}",
      "lengths": [
        9
      ],
      "localOnlyLengths": [],
      "exampleNational": "06 50 12 34 56",
      "exampleInternational": "+212 6 50 12 34 56",
      "exampleE164": "+212650123456"
    },
    {
      "type": "fixedLine",
      "label": "Fixed line",
      "regex": "5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-9])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}",
      "lengths": [
        9
      ],
      "localOnlyLengths": [],
      "exampleNational": "05 20 12 34 56",
      "exampleInternational": "+212 5 20 12 34 56",
      "exampleE164": "+212520123456"
    },
    {
      "type": "tollFree",
      "label": "Toll-free",
      "regex": "80[0-7]\\d{6}",
      "lengths": [
        9
      ],
      "localOnlyLengths": [],
      "exampleNational": "080-1234567",
      "exampleInternational": "+212 80-1234567",
      "exampleE164": "+212801234567"
    },
    {
      "type": "voip",
      "label": "VoIP",
      "regex": "(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}",
      "lengths": [
        9
      ],
      "localOnlyLengths": [],
      "exampleNational": "05 92 40 12 34",
      "exampleInternational": "+212 5 92 40 12 34",
      "exampleE164": "+212592401234"
    },
    {
      "type": "premiumRate",
      "label": "Premium-rate",
      "regex": "89\\d{7}",
      "lengths": [
        9
      ],
      "localOnlyLengths": [],
      "exampleNational": "089-1234567",
      "exampleInternational": "+212 89-1234567",
      "exampleE164": "+212891234567"
    }
  ],
  "formats": {
    "e164": "+212650123456",
    "international": "+212 6 50 12 34 56",
    "national": "06 50 12 34 56",
    "rfc3966": "tel:+212-6-50-12-34-56"
  },
  "carriers": [
    {
      "name": "Orange",
      "lineType": "mobile",
      "prefixCount": 30,
      "ranges": [
        "073",
        "077–078",
        "0612",
        "0614",
        "0617",
        "0619–0621",
        "0625",
        "0631–0632",
        "0644–0645",
        "0649",
        "0656–0657",
        "0660",
        "0663–0665",
        "0669",
        "0674–0675",
        "0679",
        "0684",
        "0688",
        "0691",
        "0693–0694"
      ]
    },
    {
      "name": "Maroc Telecom",
      "lineType": "mobile",
      "prefixCount": 25,
      "ranges": [
        "061",
        "065",
        "067",
        "075–076",
        "0622–0624",
        "0628",
        "0636–0637",
        "0639",
        "0641–0643",
        "0648",
        "0661–0662",
        "0666–0668",
        "0682",
        "0689",
        "0696–0697"
      ]
    },
    {
      "name": "Inwi",
      "lineType": "mobile",
      "prefixCount": 22,
      "ranges": [
        "060",
        "070–072",
        "0626–0627",
        "0629–0630",
        "0633–0635",
        "0638",
        "0640",
        "0646–0647",
        "0680–0681",
        "0687",
        "0690",
        "0695",
        "0698–0699"
      ]
    },
    {
      "name": "Al Hourria Telecom",
      "lineType": "mobile",
      "prefixCount": 2,
      "ranges": [
        "06921–06922"
      ]
    }
  ],
  "sandbox": {
    "input": "+212650123456",
    "valid": true,
    "type": "Mobile",
    "carrier": "Maroc Telecom",
    "region": "MA",
    "formats": {
      "e164": "+212650123456",
      "international": "+212 6 50 12 34 56",
      "national": "06 50 12 34 56",
      "rfc3966": "tel:+212-6-50-12-34-56"
    },
    "parts": {
      "countryCode": "+212",
      "destinationCode": "6",
      "destinationKind": "network code",
      "subscriber": "50123456"
    }
  },
  "faq": [
    {
      "question": "How many digits does a phone number in Morocco have?",
      "answer": "Mobile numbers have 9 national digits. Fixed line numbers have 9 national digits. That is the national number, without the country code +212 and without the trunk prefix 0."
    },
    {
      "question": "What is the country code for Morocco?",
      "answer": "+212. From abroad, dial your own exit code, then 212, then the national number without its trunk prefix 0. From inside Morocco, the exit code for international calls is 00."
    },
    {
      "question": "Which prefixes are mobile numbers in Morocco?",
      "answer": "Mobile numbers start with 06 or 07 in national form; the mobile regular expression on this page gives the exact ranges (example: 06 50 12 34 56). The carrier table shows which prefix blocks were allocated to which operator."
    },
    {
      "question": "Can a mobile number in Morocco be ported to another carrier?",
      "answer": "Yes. Morocco has mobile number portability, so a prefix tells you the carrier a number was originally allocated to, not necessarily the one serving it today. Only a live carrier lookup (an HLR or MNP query) answers that."
    }
  ],
  "meta": {
    "dataAsOf": "2026-10-25",
    "dataPoints": 23,
    "references": [
      {
        "authority": "ITU",
        "title": "National numbering plan: Morocco",
        "url": "https://www.itu.int/oth/T0202000090/en"
      }
    ]
  },
  "neighbours": [
    "https://phonelookup.dev/country/dz.json",
    "https://phonelookup.dev/country/ss.json",
    "https://phonelookup.dev/country/tn.json",
    "https://phonelookup.dev/country/ly.json",
    "https://phonelookup.dev/country/gm.json",
    "https://phonelookup.dev/country/sn.json",
    "https://phonelookup.dev/country/mr.json",
    "https://phonelookup.dev/country/ml.json",
    "https://phonelookup.dev/country/gn.json",
    "https://phonelookup.dev/country/ci.json",
    "https://phonelookup.dev/country/bf.json",
    "https://phonelookup.dev/country/ne.json"
  ]
}
