Phone Numbers in Morocco

Understanding Phone Numbers in Morocco

Quick Reference Guide

  • Country: Morocco
  • Country Code: +212
  • International Prefix: 00
  • National Prefix: 0
  • Regulatory Body: ANRT (Agence Nationale de Réglementation des Télécommunications)

Overview

Discover the intricacies of Morocco's telephone numbering plan. This guide is essential for telecom professionals, developers, and business owners who need to navigate Morocco's phone number structures, dialing rules, and regulatory updates.


Number Formats

General Number Structure

Moroccan phone numbers typically follow this structure:

  • Country Code: +212
  • National Prefix: 0
  • Area Code: 2-3 digits
  • Subscriber Number: 6-7 digits

The complete number length, including the country code, is generally 12 digits.

Landline Numbers

  • Format: 0X XX XX XX XX
  • Area Codes: Begin with 05 or 02.
  • Example: 0520 123 456

Validation Regex

^0(5|2)[0-9]{8}$

Mobile Numbers

  • Format: 06X XX XX XX XX
  • Prefix: Mobile numbers start with 06.
  • Example: 0612 345 678

Validation Regex

^06[0-9]{8}$

Toll-Free Numbers

  • Format: 080 XX XX XX
  • Prefix: Toll-free numbers start with 080.
  • Example: 080 123 456

Validation Regex

^080[0-9]{6}$

Premium Rate Numbers

  • Format: 089X XX XX XX
  • Prefix: Premium numbers start with 089.
  • Example: 0891 234 567

Validation Regex

^089[0-9]{7}$

Dialing Procedures

Domestic Calls

  • Landline to Landline: Dial the full 10-digit number (e.g., 0520123456).
  • Landline to Mobile: Dial the full 10-digit number (e.g., 0612345678).
  • Mobile to Mobile: Dial the full 10-digit number (e.g., 0612345678).

International Calls

  • Outgoing: Dial 00 + country code + area code + local number. Example: 00 33 1 23456789 to call France.
  • Incoming: Dial +212 followed by the 9-digit local number, omitting the initial 0. Example: +212 520123456.

Number Portability

Morocco supports mobile number portability (MNP), allowing subscribers to retain their numbers when switching providers, regulated by the ANRT.


Major Telecom Operators

  • Maroc Telecom: Offers extensive services across various areas.
  • Orange Maroc: Provides mobile and fixed-line services.
  • Inwi: Focuses on mobile services.

Number Allocation and Management

The ANRT manages number allocation, ensuring efficient use and accommodating future growth. The numbering plan is designed to support technological advancements and population growth.


Technical Considerations

Regular Expressions for Validation

  • Landline: ^0(5|2)[0-9]{8}$
  • Mobile: ^06[0-9]{8}$
  • Toll-Free: ^080[0-9]{6}$
  • Premium Rate: ^089[0-9]{7}$

ITU-T Recommendations

Morocco adheres to ITU-T Recommendation E.164, standardizing international telecommunication numbers.

Technical Restrictions

All numbers must comply with national regulations, with no specific restrictions on golden numbers or blocking.


Recent or Upcoming Changes

Currently, there are no significant changes to Morocco's numbering plan. The ANRT regularly reviews the plan to adapt to technological and demographic changes.

For the latest telecommunications regulations in Morocco, visit the ANRT official website.