Country code
Morocco: +212
Morocco uses country code +212. From the United States, dial 011 212 6 50 12 34 56. A number is written +212 6 50 12 34 56.
How to call Morocco
The table uses the example number below. Replace it with the number you are calling. Drop the 0 at the start of the national number when you dial from abroad.
| Calling from | Exit code | Dial |
|---|---|---|
| Any mobile phone | None | +212 6 50 12 34 56 |
| United States | 011 | 011 212 6 50 12 34 56 |
| Canada | 011 | 011 212 6 50 12 34 56 |
| United Kingdom | 00 | 00 212 6 50 12 34 56 |
| Australia | 0011 | 0011 212 6 50 12 34 56 |
| Germany | 00 | 00 212 6 50 12 34 56 |
| France | 00 | 00 212 6 50 12 34 56 |
| India | 00 | 00 212 6 50 12 34 56 |
| Japan | 010 | 010 212 6 50 12 34 56 |
| Mexico | 00 | 00 212 6 50 12 34 56 |
| South Africa | 00 | 00 212 6 50 12 34 56 |
How a Morocco number is built
Digit counts are the national number only, after the country code and without the 0 trunk prefix.
| Line | Digits | Pattern |
|---|---|---|
| Mobile | 9 digits | (?:6(?:[0-79]\d|8[0-247-9])|7(?:[016-8]\d|2[0-8]|3[01]|5[0-5]))\d{6} |
| Landline | 9 digits | A pattern of 125 characters, applied by the validator below |
| Toll free | 9 digits | 80[0-7]\d{6} |
| Premium rate | 9 digits | 89\d{7} |
- Example, national form
- 06 50 12 34 56
- Example, international form
- +212 6 50 12 34 56
Validate a Morocco number
Paste a number and the tool checks it against the numbering plan. It returns the standard formats and the line type the plan assigns.
Type the number the way it is written in Morocco, or start with + and the country code.
Area codes and places in Morocco
The start of a number shows the place its range was first assigned to. 76 ranges are listed in the source.
| Starts with | Place |
|---|---|
| +212 520 | Casablanca |
| +212 521 | Casablanca/Central Morocco |
| +212 5220 | Casablanca |
| +212 5222 | Casablanca |
| +212 5223 | Casablanca |
| +212 5224 | Casablanca |
| +212 5225 | Casablanca |
| +212 5226 | Casablanca |
| +212 5227 | Casablanca |
| +212 5228 | Casablanca |
| +212 5229 | Casablanca |
| +212 5232 | Mohammedia |
Show the other 64 rows
| Starts with | Place |
|---|---|
| +212 5233 | El Jedida/Mohammedia |
| +212 5234 | Settai |
| +212 5235 | Oued Zem |
| +212 5237 | Settat |
| +212 5242 | El Kelaa des Sraghna |
| +212 5243 | Marrakech |
| +212 5244 | Marrakech |
| +212 5246 | El Youssoufia/Safi |
| +212 5247 | Essaouira |
| +212 5248 | Ouarzazate |
| +212 525 | Southern Morocco |
| +212 5282 | Agadir/Ait Meloul/Inezgane |
| +212 5283 | Inezgane/Taroudant |
| +212 5285 | Oulad Teima/Taroudant |
| +212 5286 | Tiznit |
| +212 5287 | Guelmim/Tan Tan |
| +212 5288 | Agadir/Es-Semara/Tarfaya |
| +212 5289 | Dakhla/Laayoune |
| +212 529 | Casablanca |
| +212 5296 | Marrakech |
| +212 5297 | Agadir |
| +212 5298 | Marrakech |
| +212 5299 | Agadir |
| +212 530 | Rabat/Kènitra |
| +212 531 | Tangier/Al Hoceima/Larache/Tètouan/Chefchaouen |
| +212 532 | Fès/Errachidia/Meknès/Nador/Oujda/Taza |
| +212 5352 | Taza |
| +212 5353 | Midelt |
| +212 5354 | Meknès |
| +212 5355 | Meknès |
| +212 5356 | Fès |
| +212 5357 | Goulmima |
| +212 5358 | Ifrane |
| +212 5359 | Fès |
| +212 5362 | Berkane |
| +212 5363 | Nador |
| +212 5365 | Oujda |
| +212 5366 | Figuig/Oujda |
| +212 5367 | Bouarfa/Oujda |
| +212 5368 | Figuig |
| +212 5372 | Rabat |
| +212 5373 | Kénitra |
| +212 5374 | Ouazzane |
| +212 5375 | Khémisset |
| +212 5376 | Rabat/Témara |
| +212 5377 | Rabat |
| +212 5378 | Salé |
| +212 5379 | Souk Larbaa |
| +212 5380 | Rabat |
| +212 5381 | Rabat |
| +212 5384 | Tangier |
| +212 5385 | Tangier |
| +212 5386 | Fez/Meknes |
| +212 5387 | Fez/Meknes |
| +212 5388 | Tangier |
| +212 5389 | Fez/Meknes |
| +212 5393 | Tangier |
| +212 5394 | Asilah |
| +212 5395 | Larache |
| +212 5396 | Fnideq/Martil/Mdiq |
| +212 5397 | Tétouan |
| +212 5398 | Al Hoceima/Chefchaouen |
| +212 5399 | Al Hoceima/Larache/Tangier |
| +212 549 | Casablanca/Marrakech/Agadir |
76 rows. Names are where the range was first assigned; numbers move between places and carriers.
Who first issued each range in Morocco
79 ranges are listed in the source with the network that first held them. Numbers port between networks, so the current network can differ.
| Starts with | First issued to |
|---|---|
| +212 60 | Inwi |
| +212 61 | Maroc Telecom |
| +212 612 | Orange |
| +212 614 | Orange |
| +212 617 | Orange |
| +212 619 | Orange |
| +212 620 | Orange |
| +212 621 | Orange |
| +212 622 | Maroc Telecom |
| +212 623 | Maroc Telecom |
| +212 624 | Maroc Telecom |
| +212 625 | Orange |
Show the other 67 rows
| Starts with | First issued to |
|---|---|
| +212 626 | Inwi |
| +212 627 | Inwi |
| +212 628 | Maroc Telecom |
| +212 629 | Inwi |
| +212 630 | Inwi |
| +212 631 | Orange |
| +212 632 | Orange |
| +212 633 | Inwi |
| +212 634 | Inwi |
| +212 635 | Inwi |
| +212 636 | Maroc Telecom |
| +212 637 | Maroc Telecom |
| +212 638 | Inwi |
| +212 639 | Maroc Telecom |
| +212 640 | Inwi |
| +212 641 | Maroc Telecom |
| +212 642 | Maroc Telecom |
| +212 643 | Maroc Telecom |
| +212 644 | Orange |
| +212 645 | Orange |
| +212 646 | Inwi |
| +212 647 | Inwi |
| +212 648 | Maroc Telecom |
| +212 649 | Orange |
| +212 65 | Maroc Telecom |
| +212 656 | Orange |
| +212 657 | Orange |
| +212 660 | Orange |
| +212 661 | Maroc Telecom |
| +212 662 | Maroc Telecom |
| +212 663 | Orange |
| +212 664 | Orange |
| +212 665 | Orange |
| +212 666 | Maroc Telecom |
| +212 667 | Maroc Telecom |
| +212 668 | Maroc Telecom |
| +212 669 | Orange |
| +212 67 | Maroc Telecom |
| +212 674 | Orange |
| +212 675 | Orange |
| +212 679 | Orange |
| +212 680 | Inwi |
| +212 681 | Inwi |
| +212 682 | Maroc Telecom |
| +212 684 | Orange |
| +212 687 | Inwi |
| +212 688 | Orange |
| +212 689 | Maroc Telecom |
| +212 690 | Inwi |
| +212 691 | Orange |
| +212 6921 | Al Hourria Telecom |
| +212 6922 | Al Hourria Telecom |
| +212 693 | Orange |
| +212 694 | Orange |
| +212 695 | Inwi |
| +212 696 | Maroc Telecom |
| +212 697 | Maroc Telecom |
| +212 698 | Inwi |
| +212 699 | Inwi |
| +212 70 | Inwi |
| +212 71 | Inwi |
| +212 72 | Inwi |
| +212 73 | Orange |
| +212 75 | Maroc Telecom |
| +212 76 | Maroc Telecom |
| +212 77 | Orange |
| +212 78 | Orange |
79 rows. The first issuer of the range; numbers port between carriers, so the current carrier can differ.
Other places that use +212
- Western Sahara
Questions about calling Morocco
- What is the country code for Morocco?
- The country code for Morocco is +212. Written in full, a number looks like +212 6 50 12 34 56.
- How do I call Morocco from the United States?
- Dial 011, then 212 6 50 12 34 56. On a mobile phone you can dial +212 6 50 12 34 56 instead.
- Do I dial the 0 at the start of a Morocco number from abroad?
- No. The 0 is the trunk prefix used for calls inside Morocco (06 50 12 34 56). From abroad it is dropped after +212 (+212 6 50 12 34 56).
- How many digits is a Morocco phone number?
- Mobile numbers have 9 digits after the country code. Landline numbers have 9 digits.
- How do I call another country from Morocco?
- Dial 00, then the country code and the number. On a mobile phone, + replaces 00.
- Which other places use +212?
- Western Sahara also use +212, so the digits after the code are what tell the places apart.
Check numbers in bulk with the API
| Product | Credits | Docs |
|---|---|---|
| Phone Numbering-Plan Validation | 1 credit per valid number | API docs |
| Country Calling Codes | 1 credit per lookup (an unknown code, country or name is free) | API docs |
Number patterns, lengths and examples: libphonenumber-js 1.13.15, released 2026-10-08, read 2026-10-19, built on Google's libphonenumber metadata. Place names and first issuers: libphonenumber geocoding and carrier files, read 2026-10-19. Library. LookValid is not connected to Google or to any phone company named here.