Skip to content
AI Dialer

Latin America · +52

Mexico phone number format

  • Country code +52
  • No trunk prefix

Reviewed by Sujan ThapaliyaLast updated

What does a Mexico phone number look like?

10 digits: a 2- or 3-digit area code plus 7 or 8 digits. Landlines are written +52 XX XXXX XXXX and mobiles +52 XX XXXX XXXX. In full international (E.164) format a Mexico mobile is written +525587654321: the country code +52, and no spaces or punctuation.
The anatomy of a Mexico phone number under ITU-T E.164: country calling code 52, then the national destination code, then the subscriber number, to a maximum of fifteen digits after the plus. Nationally a Mexico number is written +52 XX XXXX XXXX; in E.164 the prefix and the spacing both come off.
National formatting is for people. E.164 is for databases, APIs, and caller ID — store Mexico numbers in the right-hand form.

Format rules

Country code
+52
National number length
10 digits: a 2- or 3-digit area code plus 7 or 8 digits
Trunk prefix
None
The local number is already the international number.
Landline pattern
+52 XX XXXX XXXX
Mobile pattern
+52 XX XXXX XXXX

Examples

Mexico phone number examples

These are format patterns showing digit grouping and prefix rules. They are examples of shape, not working numbers; do not use them to test a live call path.

TypeWritten domesticallyInternational (E.164)
Landline55 1234 5678+525512345678
MobileXX XXXX XXXX+525587654321

A quirk of Mexico numbering

Since August 2019 Mexico dropped the old 01/044/045 prefixes. Mobile numbers no longer need a leading 1 after +52. If a guide tells you to dial +52 1, it is out of date.

Validation

How to validate a Mexico number

Validating a phone number is three separate checks, and conflating them is the usual source of bugs:

  1. Format: does it match the shape for Mexico? 10 digits: a 2- or 3-digit area code plus 7 or 8 digits, after the country code .
  2. Allocation: is the prefix actually in use? A number can be the right length and still belong to an unallocated range.
  3. Reachability: is there a live subscriber? Only a carrier lookup (HLR or equivalent) answers that, and it is the only check that catches disconnected numbers.

For form validation, check format only and be permissive: accept spaces, dashes, brackets, and a leading 0 then normalise. Rejecting a real customer because they typed their own number the way they normally write it is a far more expensive error than storing one badly formatted row.

Store in E.164 (+525587654321) and format for display at render time. Storing the display format is how a database ends up with the same person recorded four different ways.

Format any number instantly

Paste a number into the free phone number formatter to convert it to E.164 and see whether it matches Mexico’s format rules. No sign-up.

Frequently asked questions

What does a Mexico phone number look like?
10 digits: a 2- or 3-digit area code plus 7 or 8 digits. A landline is written +52 XX XXXX XXXX and a mobile +52 XX XXXX XXXX. In full international format that becomes +525587654321.
How do I write a Mexico number in international format?
Start with +52, then append the rest with no spaces or punctuation. +52 55 1234 5678 becomes +525512345678.
How many digits is a Mexico phone number?
10 digits: a 2- or 3-digit area code plus 7 or 8 digits.
How do I tell a Mexico mobile from a landline?
You cannot tell from the number alone in Mexico: mobile and fixed lines share the same format, so a carrier lookup is the only reliable way.
Should I store phone numbers with the plus sign?
Yes. Store every number in E.164: leading +, country code, national number, no spaces or punctuation, up to 15 digits. It is the only format that is unambiguous internationally, and it is what makes deduplication work. Format for display, store canonical.

Sources

  1. ITU-T Recommendation E.164 — The international public telecommunication numbering planInternational Telecommunication UnionThe international number format, the 15-digit maximum, and how country codes and national numbers compose.
  2. ITU-T International Numbering ResourcesInternational Telecommunication UnionThe assignment of country calling codes and the published national numbering plans they belong to.

Stop wrestling with number formats

Every number you import is validated and normalised to E.164 automatically, screened against your suppression lists, and formatted correctly for the country it belongs to before a single call goes out.

  • Automatic E.164 normalisation
  • DNC screening on import
  • 100+ countries