+52 test data

🇲🇽 Mexico phone number generator

Generate Mexico phone number examples for development, QA, input masks and documentation. Results are not live subscriber lines.

Generate an example

International display+525512345678
Do not call or text generated values. Mexico uses a unified 10-digit national format. Examples are structural and may coincide with assigned numbers.

Mexico format reference

Calling code+52
National patternxx xxxx xxxx
E.164 example+525512345678
Typical length10 national digits

Convert a Mexico number to E.164

1. Clean the input

Remove spaces, parentheses and hyphens while preserving the digits and country context.

2. Apply the trunk rule

Keep the full 10-digit national number and add +52; omit historic 01, 044 and 045 prefixes.

3. Store one canonical value

Use +525512345678 for machine storage and format it for display at the edge of your application.

Mexico phone test cases

CaseFixtureExpected test behavior
National displayxx xxxx xxxxAccept punctuation, then normalize.
Valid E.164 structure+525512345678Accept for format testing; do not infer reachability.
Invalid length+52551234567Reject before storing or sending to an API.

Manually reviewed country notes

What makes Mexico phone input different

Mexico uses a unified ten-digit national format. Modern E.164 conversion keeps those ten digits after +52 and excludes the historic 01, 044 and 045 dialing prefixes that were removed from the national dialing scheme.

IFT's dialing guidance explains the format but does not designate this example as a fictional subscriber line. Use it only as local test data with outbound communications disabled.

Check 1

Keep exactly ten national digits for this fixture.

Check 2

Do not store historic 01, 044 or 045 prefixes.

Check 3

Preserve the two-digit geographic or service prefix as part of the national value.

Reviewed Mexico normalization cases

These cases document the fixture contract used by GetPhoneNum. They test parsing and normalization only; they never prove that a subscriber exists.

InputExpected resultReason
55 1234 5678+525512345678Add +52 to ten national digits
+52 55 1234 5678+525512345678Normalize an international input
044 55 1234 5678+525512345678Remove a historic dialing prefix
551234567RejectOne national digit short
+525512345678Structure onlyDo not infer assignment

Reviewed by GetPhoneNum Editorial Team · Last reviewed August 11, 2026

Frontend checks

Test empty input, pasted punctuation, a missing country code, one digit too few and one digit too many. Avoid using a single global regex for every country.

Test a JavaScript regex

Production validation

Numbering plans change. Use a maintained numbering library and treat carrier, line type and reachability as separate checks.

Browse calling-code references

Related generators and tools

Continue testing international phone formats

Mexico phone number FAQ

Are these Mexico phone numbers real?

They are generated test fixtures, not verified subscriber lines. Even a structurally valid value may coincide with an assigned number unless it comes from an officially reserved fictional range.

What does the +52 calling code mean?

+52 is the international country calling code for Mexico. In E.164 format it appears after the leading plus sign and before the national number.

Can generated numbers receive calls, SMS or verification codes?

No capability is provided or verified. Do not call, text or use generated values for account verification.

Official numbering reference

Numbering rules can change. Check the IFT 10-digit dialing guidance before enforcing production rules.

Need repeatable Mexico fixtures?

Create up to 100 local fixtures in the browser, download the open dataset, or use the API design reference to define a deterministic contract for automated test suites.