Phone validator, +212
This free phone number checker for Morocco shows whether a number is valid.
Type a number with or without +212. The check reads it against the numbering plan for Morocco in Google's libphonenumber metadata and returns its status, line type and E.164 form.
- E.164
- +12015550123
- National
- (201) 555-0123
- Country
- United States (US)
- Calling code
- +1
- Line type
- Landline or mobile
- Carrier (range holder)
- Not available
- Region
- New Jersey
- Time zones
- America/New_York
- Current carrier (live network)
- Unlock with a free account
- Ported number
- Unlock with a free account
- MCC / MNC
- Unlock with a free account
- Bulk CSV upload
- Unlock with a free account
- API access
- Unlock with a free account
A mobile number from Morocco is +212 followed by 9 digits, and the first one is 6 or 7.
- Digits after +212
- 9
- Starts with
- 6, 70–73, 75–78
- From abroad
- +212 6 50 12 34 56
- Written at home
- 06 50 12 34 56
- E.164
- +212650123456
After +212, a mobile number starts with 6, 70–73, or 75–78. Inside Morocco it is written 06 50 12 34 56.
Landline numbers never start with 6 or 7, so the first digit tells a mobile number from a landline.
A landline number from Morocco is +212 followed by 9 digits, and the first one is 5.
- Digits after +212
- 9
- Starts with
- 51–55
- From abroad
- +212 5 20 12 34 56
- Written at home
- 05 20 12 34 56
- E.164
- +212520123456
After +212, a landline number starts with 51–55. Inside Morocco it is written 05 20 12 34 56.
Numbers from Morocco come in 5 types, each with its own first digits.
Each row is a line type of the numbering plan, with the number of digits after +212 and the digits it starts with.
| Type | Digits after +212 | Starts with | Example |
|---|---|---|---|
| Landline | 9 | 51–55 | +212 5 20 12 34 56 |
| Mobile | 9 | 6, 70–73, 75–78 | +212 6 50 12 34 56 |
| Premium rate | 9 | 89 | +212 89 1234567 |
| Toll-free | 9 | 80 | +212 80 1234567 |
| VoIP | 9 | 59, 80 | +212 5 92 40 12 34 |
Examples come from Google's libphonenumber metadata. They are valid in format and are not assigned to real people.
Inside Morocco, numbers are dialed with a 0 that disappears after +212.
The 0 is a trunk prefix: it is dialed only inside Morocco, and an international or E.164 number never includes it.
- Written at home
- 06 50 12 34 56
- From abroad
- +212 6 50 12 34 56
- E.164
- +212650123456
4 common mistakes with numbers from Morocco: 3 of them fail the check
Each example below was run through the same check as the tool on this page, starting from the valid number +212 6 50 12 34 56.
Keeping the 0 after +212
Valid+212 06 50 12 34 56
The trunk prefix 0 is only dialed inside Morocco: after +212 it does not belong. The check reads it as +212650123456 anyway. Store that E.164 form: a system that compares numbers as text would see two different numbers.
One digit missing
Invalid+212 6 50 12 34 5
One digit shorter than +212 6 50 12 34 56. The check returns Invalid.
One digit too many
Invalid+212 6 50 12 34 560
One digit longer than +212 6 50 12 34 56. The check returns Invalid.
The wrong country selected
Invalid06 50 12 34 56
Typed as a national number with South Sudan selected in the country menu, it is read as a number on +211. The check returns Invalid.
Frequently asked questions
How many digits does a phone number from Morocco have?
What do mobile numbers from Morocco start with?
Should I keep the 0 after +212?
Does a valid result mean a number from Morocco is in use?
How should I store a number from Morocco?
Where do these rules come from?
Numbering plan from Google's libphonenumber v9.0.44 metadata, read through libphonenumber-js 1.13.17.
All data sources and licensesPut this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time