Postal code

Mexico postal codes

Mexico postal codes have the format ##### (5 digits), for example 02860. zipcodestack has 145,614 postal codes for Mexico in 32 states.

Format
#####
Example
02860
Codes in our database
145,614
Local name
código postal

Mexico postal code format

Pattern##### (# digit, @ letter)
Examples02860, 77520, 06082
Regex^(?:\d{5})$
Official lookupwww.correosdemexico.gob.mx

Format and regex from Google's address metadata (libaddressinput). The regex checks the shape of a code, not whether it exists.

Postal Codes by state

StateRangeCodes
Aguascalientes20000 – 20997412
Baja California21000 – 22997513
Baja California Sur23000 – 23997341
Campeche24000 – 24936288
Chiapas29000 – 309971,075
Chihuahua31000 – 339971,077
Coahuila de Zaragoza25000 – 279971,064
Colima28000 – 28989276
Distrito Federal01000 – 169101,395
Durango34000 – 359871,052
Guanajuato36000 – 389971,408
Guerrero39000 – 419971,388
Hidalgo42000 – 439981,141
Jalisco44009 – 499942,025
México50000 – 579502,382
Michoacán de Ocampo58000 – 619981,983
Morelos62000 – 62996432
Nayarit63000 – 63996451
Nuevo León64000 – 679961,107
Oaxaca68000 – 719981,807
Puebla72000 – 759971,568
Querétaro76000 – 76998532
Quintana Roo77000 – 77997315
San Luis Potosí78000 – 79997983
Sinaloa80000 – 829961,092
Sonora83000 – 85994991
Tabasco86000 – 86998522
Tamaulipas87000 – 89970996
Tlaxcala90000 – 90990396
Veracruz de Ignacio de la Llave91000 – 969982,350
Yucatán97000 – 97993509
Zacatecas98000 – 99998577

Postal Codes of the largest cities

Neighbouring countries

Mexico postal codes: FAQ

What is the postal code format in Mexico?

Mexico postal codes follow the pattern ##### (# = digit, @ = letter), i.e. 5 digits. Examples: 02860, 77520, 06082.

What regex validates Mexico postal codes?

^(?:\d{5})$ matches the official format (from Google's address metadata). It checks the shape only; whether a code exists needs a lookup in a postal code database such as the zipcodestack API.

What is the postal code of Mexico City?

Mexico City has 1770 postal codes, starting with 01000. The right one depends on the street; see the full list for Mexico City.

How many postal codes are there in Mexico?

The zipcodestack database contains 145,614 postal codes for Mexico, each with place name, region and coordinates.

Postal code API

Look up Mexico postal codes by API

zipcodestack looks up, validates and searches postal codes in 149 countries: city, state, coordinates, distances and radius search, as JSON.

/v1/search documentation International postal code API All documentation

300 free requests every month. No credit card required.

GET https://api.zipcodestack.com/v1/search?codes=02860&country=mx

{
  "results": {
    "02860": [{
      "postal_code": "02860",
      "country_code": "MX",
      "city": "…",
      "state": "…",
      "latitude": …,
      "longitude": …
    }]
  }
}

Free postal code tools

Start using our ZIP Code API for free today!

Get 300 requests / month for free