🇲🇦 Morocco (+212)

Morocco Phone Number Validator & Carrier Lookup

In Morocco, each mobile prefix maps to one operator — 0661 is Maroc Telecom, 0665 Orange, 0600 Inwi — yet since portability arrived in 2007 the prefix no longer tells you who serves a number today. Veriphone returns the originally allocated operator and line type from the national numbering plan, and resolves the network serving a ported number with mode=current.

Try it — Morocco numbers

Free — no account required. Protected by reCAPTCHA.

+212
Dial code
9
Digits after +212
3
Mobile operators
< 20ms
Lookup latency

Morocco phone number format

Morocco numbers carry the +212 country code with a national trunk prefix of 0, dropped in E.164 format. Mobile and fixed-line ranges are distinguished by their leading digits and returned as a line_type you can filter on.

Mobile — E.164 format
+212 6 50 12 34 56
Domestic form: 06 50 12 34 56 — the trunk prefix 0 is dropped for international format. 9 digits after +212.
Fixed line — E.164 format
+212 5 20 12 34 56
Domestic form: 05 20 12 34 56 — the trunk prefix 0 is dropped for international format. 9 digits after +212.

Morocco mobile operators & prefixes

Each mobile prefix is allocated to a specific operator. Veriphone returns that operator from the ANRT (Agence Nationale de Réglementation des Télécommunications) numbering plan, along with line type.

Each prefix belongs to one operator — but a number can be ported. The prefix tells you the operator a number was originally allocated to. Because Morocco allows number portability, a number can keep its prefix after switching networks, so the prefix alone doesn't guarantee the operator serving it today. A Standard lookup returns the allocated operator; add mode=current to resolve the operator serving a ported number now.
Maroc Telecom
061, 065, 067, 075–076, 0622–0624, 0628, 0636–0637, 0639 +7 more
Incumbent operator (Ittissalat Al-Maghrib / IAM), the largest by subscribers.
Orange
077–078, 0612, 0614, 0617, 0619–0621, 0625, 0631–0632, 0644–0645 +11 more
Rebranded from Médi Telecom (Méditel) in 2016; second operator.
Inwi
060, 070–072, 0626–0627, 0629–0630, 0633–0635, 0638, 0640, 0646–0647 +5 more
Operated by Wana Corporate (Al Mada group); third national operator.

Plus a smaller allocation: Al Hourria Telecom. Veriphone resolves each to its host network.

Fixed-line area codes

For landline numbers, Veriphone returns the city or region where the numbering plan resolves one. Mobile numbers are non-geographic and carry no city.

Casablanca
0522
Rabat
0537
Marrakech
0524
Fès / Meknès
0535
Tangier / Tétouan
0539
Agadir
0528
Oujda / Nador
0536
Settat / El Jadida
0523
Ported numbers. Morocco has had number portability since 2007, so the operator that originally received a block is not always the one serving a given number now. Standard lookups return the original allocation on record — accurate for most numbers, stale for the ported subset. For those, add mode=current: Veriphone resolves the serving operator from national portability records and flags the number as ported. Use Standard for bulk validation and list cleaning; use Current where the serving operator matters, such as SMS routing.

Questions about Morocco number validation

Can you tell Maroc Telecom, Orange, and Inwi apart from the prefix?

For the original allocation, yes — each mobile prefix belongs to one operator (for example 0661 is Maroc Telecom, 0665 is Orange, 0600 is Inwi), and Veriphone returns it from the full numbering plan. The catch is portability: since 2007 a number can keep its prefix after switching networks, so a 0661 number is not guaranteed to be on Maroc Telecom today. Use a Standard lookup for the allocated operator; add mode=current to resolve the network serving a ported number now.

Does Veriphone resolve ported Moroccan numbers to the current operator?

Yes — with mode=current. A Current lookup resolves the number's serving operator from national portability records and returns it alongside the original allocation on record, with a ported flag. Standard lookups return the originally allocated operator only. A common pattern is to validate everything with Standard, then run Current on the subset where the serving operator matters. Current lookups do not indicate whether a device is switched on or reachable.

How do I filter mobiles from landlines for an SMS campaign?

Moroccan mobile numbers begin with 06 or 07; fixed lines begin with 05. The line_type field returns mobile or fixed_line directly, so you can filter on mobile before sending rather than parsing prefixes yourself.

Can it tell which city a Moroccan landline is in?

For part of the fixed-line range, yes — the response includes a city or region where the numbering plan resolves one (for example Casablanca or Rabat). Elsewhere it returns the country. Mobile numbers are not geographic and carry no city.

Start validating Morocco phone numbers

1,000 free lookups. No credit card. Carrier and line type on every valid number.

Create free account