Phone numbers · MX
Mexico phone number format
Mexico numbers use the country code +52. A mobile number looks like 222 123 4567 at home and +522221234567 in international E.164 format.
| Type | Example (national) | International | E.164 | Digits |
|---|---|---|---|---|
| Mobile | 222 123 4567 | +52 222 123 4567 | +522221234567 | 10 |
| Landline | 200 123 4567 | +52 200 123 4567 | +522001234567 | 10 |
| Toll-free | 800 123 4567 | +52 800 123 4567 | +528001234567 | 10 |
| Premium-rate | 900 123 4567 | +52 900 123 4567 | +529001234567 | 10 |
| Shared-cost | 300 123 4567 | +52 300 123 4567 | +523001234567 | 10 |
| Personal (forwarding) number | 500 123 4567 | +52 500 123 4567 | +525001234567 | 10 |
- Country calling code
- +52
- National (trunk) prefix
- None
- International call prefix
- 0[09]
- Separate VoIP range
- No
- Time zones
- America/Cancun, America/Ciudad_Juarez, America/Matamoros, America/Mazatlan, America/Mexico_City, America/New_York, America/Ojinaga, America/Tijuana
Validate in code
Check a Mexico number.
Send the number as typed plus country: "MX". You get it back in E.164 with its line type, ready to store.
curl https://veqen-app.com/v1/phone/check \
-H "Authorization: Bearer $VEQEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"country": "MX", "phone": "222 123 4567"}'import os, requests
r = requests.post(
"https://veqen-app.com/v1/phone/check",
headers={"Authorization": f"Bearer {os.environ['VEQEN_API_KEY']}"},
json={"country": "MX", "phone": "222 123 4567"},
timeout=10,
)
result = r.json()
print(result["risk"]["verdict"], result["risk"]["reasons"])const res = await fetch("https://veqen-app.com/v1/phone/check", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEQEN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"country": "MX", "phone": "222 123 4567"}),
});
const result = await res.json();
console.log(result.risk.verdict, result.risk.reasons);Questions
Mexico numbers
What is the country code for Mexico?
+52. Dial it after your international access code, or use +52 from a mobile phone.
How do I format a Mexico phone number in E.164?
Add +52 in front of the number with no spaces, e.g. +522221234567.
How many digits is a Mexico mobile number?
10 digits after the country code.
Does Mexico have VoIP phone numbers?
There is no separate VoIP range in the numbering plan, so VoIP numbers look like ordinary numbers.