Morocco phone number validator
How the phone number format works
- Format
- Morocco phone number in national or international (+212) format
- Example
- +212650123456
Things to watch for
- Accepts national or international (E.164, e.g. +212...) format
- Validated with Google's libphonenumber; confirms the number is possible/valid for this country, not that it is currently assigned or reachable
^[+]?[0-9 ()\-]{6,}$A Moroccan phone number is 10 digits in national form, starting with 0 — 06 or 07 for mobile, 05 for a regional landline. That leading 0 is a trunk prefix, dropped the instant +212 is added, so a mobile written as 0650 123 456 domestically becomes +212650123456 internationally: 9 digits after the country code, not 10.
How this validator works
Type the number in national form (0650123456) or full international form (+212650123456); this tool checks the 10-digit national length and the mobile or landline prefix against Morocco’s real numbering plan using Google’s libphonenumber, entirely in your browser. The most common failure here is a kept leading 0 after +212 — typing +2120650123456 instead of +212650123456 — which changes the digit count and fails validation immediately.
What a pass doesn’t tell you
A pass confirms the number matches a real Moroccan mobile or landline shape — it doesn’t confirm the SIM is active or the landline connected. A well-formed number is not proof it currently belongs to anyone in particular.
Scope: use this to catch a missing digit, a wrong mobile prefix, or a leftover 0 after +212 before a Moroccan number reaches a form or SMS platform — not as proof the number is reachable.
Content last reviewed 2026-07-07.
phone number FAQ
Why does a Moroccan mobile number lose a digit when written as +212?
The leading 0 in 0650 123 456 is a national trunk prefix, not part of the subscriber number — it's dropped the moment +212 is added, so the correct international form is +212650123456: nine digits after the country code, not ten.
How can I tell a Moroccan mobile number from a landline?
By the first two digits: 06 and 07 are reserved for mobile numbers, while 05 marks a landline tied to a region — both are 10 digits total in national form, so it's the prefix, not the length, that tells them apart.
Does a valid check confirm a Moroccan number is currently active?
No. It only confirms the digits match a real Moroccan mobile or landline pattern recognized under ANRT's numbering plan — not that the SIM is currently active or the line connected, which needs a carrier-side lookup this tool doesn't perform.