veriastra_
Free Morocco Phone Format Tool

Morocco (+212 / 00212): 9 digits

Locals write 0612-345678. An API wants +212612345678. Paste any Morocco number below to see it normalised, validated, and identified.

veriastra — phoneready
$

# free & rate-limited · no signup · live results from the same engine as the API

Since the engine is the same one the API runs, a key does not buy you a better answer. It buys volume, bulk jobs and a signed receipt.

this page calledPOST /api/lookup-phone
without a key3 free, then a proof of work · 5/min · 50/day
with a key1 credit · $0.0015 to $0.0032 each
in bulk10,000 rows in one job, CSV or NDJSON back
The rules

How Morocco numbers are written

Country calling code
+212
Dialled from abroad
00212 (011 212 from the US and Canada)
ISO country code
MA
National number length
9 digits
Trunk prefix
0 (dropped in E.164)
Written locally
0612-345678
E.164 format
+212612345678

What +212 means

+212 is the country calling code for Morocco. The same code is written 00212 when you dial out from most of Europe, Africa and Asia, and 011 212 from the US and Canada. All three reach the same place: only the exit code in front of it changes. Whichever one you use, the national trunk 0 is dropped once the country code is in front.

Mobile numbers

Mobiles start with 6 or 7 (written 06x and 07x nationally).

Converting to E.164

Take the number as written locally (0612-345678), drop the leading 0, then prefix +212. The result is +212612345678: no spaces, no dashes, no parentheses. Store that, and format for display only when you show it to a human.

Why not do it with a regex

A pattern that matches Morocco numbers today breaks the moment a new mobile range is allocated, and it cannot tell you whether the number is actually assigned. The tool above runs the same numbering-plan engine as our phone validation API, so it also reports line type and region rather than just shape.

That is how a Morocco number is written. Whether a whole list is worth dialling is the free call list cleaner, or check one number on the spam phone checker.