---
title: "Morocco phone number validator"
url: "https://lookvalid.com/tools/phone-number-validator/morocco.md"
canonical_url: "https://lookvalid.com/tools/phone-number-validator/morocco"
last_updated: "2026-10-30"
type: "tool"
summary: "Validate Morocco phone numbers: 9 digits behind +212, 8 worked test numbers and a free validator."
related: ["https://lookvalid.com/country-code/morocco.md", "https://lookvalid.com/tools/phone-format.md", "https://lookvalid.com/tools/phone-number-validator.md"]
---

# Morocco phone number validator

> **For AI agents:** the complete index of LookValid pages is [llms.txt](https://lookvalid.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Validate Morocco phone numbers: 9 digits behind +212, 8 worked test numbers and a free validator.

A number is valid in Morocco when the digits after +212 match one of 5 number types, with 9 digits in all. A mobile number starts 6, 70 to 73 or 75 to 78.

## Rules by number type

| Type | Starts with | Digits | Sample |
| --- | --- | --- | --- |
| Mobile | 6, 70 to 73 or 75 to 78 | 9 | +212 650123456 |
| Landline | 51 to 55 | 9 | +212 518436780 |
| Toll free | 80 | 9 | +212 807813986 |
| Premium rate | 89 | 9 | +212 892653277 |
| VoIP | 59 or 80 | 9 | +212 592403782 |

## Test numbers

| Number | Case | Result |
| --- | --- | --- |
| +212 650123456 | Example number | Passes: Valid mobile number. |
| +212 518436780 | Landline range | Passes: Valid landline number. |
| +212 807813986 | Toll free range | Passes: Valid toll-free number. |
| +212 892653277 | Premium rate range | Passes: Valid premium-rate number. |
| 0650123456 | Written the local way | Passes: Valid mobile number. |
| +212 65012345 | One digit short | Fails: Too short: 8 digits follow the country code, where Morocco allows 9 digits. |
| +212 6501234566 | Too many digits | Fails: Too long: 10 digits follow the country code, where Morocco allows 9 digits. |
| +212 150123456 | Right length, unused start | Fails: 9 digits suits mobile, landline, toll-free, premium-rate or VoIP numbers, but a number starting 15 is not in any of those ranges. |

## Mistakes to look for

**Keeping the 0 after +212.** The 0 only exists for calls made inside Morocco. Behind the plus sign and the country code it has to go; a strict system will refuse the number as typed. Example: +212 0650123456. Result: Valid mobile number. The 0 after +212 is only for local dialling and is dropped from the international form. Store it as +212650123456.

**Typing 00 and a plus sign together.** 00 is the dialled form of the plus sign. One of the two is enough, never both. Example: +00212650123456. Result: It starts with +002, but numbers in Morocco start with +212.

## Questions

**What makes a phone number valid in Morocco?**

After the country code, its digits must match the pattern of at least one number type in the plan: mobile, landline, toll free, premium rate or VoIP. The count is 9 digits in all, and each type has its own count and its own starting digits, shown in the table above.

**How do I write a mobile number for Morocco?**

A mobile number is 9 digits long after +212 and starts 6, 70 to 73 or 75 to 78. Written for international use it reads +212 650123456; the E.164 form for storing is +212650123456.

**Does the leading 0 count when I validate a number?**

Written the local way, it is removed before the check, so 0650123456 and +212650123456 give the same result. Behind a plus sign the check still accepts it, with a note to store the number without it.

**Does a valid result mean the number is in service?**

No. The check reads the numbering plan only: it never rings the number and cannot tell whether a subscriber holds it today. It rules out numbers that cannot exist.

Data: version 1.13.15 of the libphonenumber-js package, published 8 October 2026, which carries Google's libphonenumber rules. Test numbers are computed from those rules and never dialled. See the [Morocco country code page](https://lookvalid.com/country-code/morocco.md), the [phone format tool](https://lookvalid.com/tools/phone-format.md) and the [phone number validator](https://lookvalid.com/tools/phone-number-validator.md).

## Related

- [Morocco country code +212](https://lookvalid.com/country-code/morocco.md)
- [Phone Number Format by Country and E.164](https://lookvalid.com/tools/phone-format.md)
- [Free Phone Number Validator: Check This Number](https://lookvalid.com/tools/phone-number-validator.md)
