Skip to content
Buy me a coffee
Web Resources

Mexico State List — HTML select snippet

List of Mexican states with ISO 3166-2 codes as an HTML select snippet, CSV, JSON, XML, SQL and plain text.

Live preview

Full list

About Mexican state codes

ISO 3166-2:MX

Mexico is a federation of 31 states and Mexico City (Ciudad de México, CDMX), a federal entity with a status similar to a state since 2016 — before that it was the Distrito Federal (MX-DIF, now MX-CMX). ISO 3166-2:MX assigns each entity a code of the form MX-XXX, where the three letters are derived from the name: MX-JAL Jalisco, MX-NLE Nuevo León, MX-BCN Baja California, MX-BCS Baja California Sur.

Other abbreviation systems

Unlike the US and Canada, Mexico has no single official two-letter postal abbreviation set; you will meet several conventions:

  • The ISO short codes (this list without the MX- prefix): AGU, BCN, CHH… — the most reliable for data exchange.
  • The INEGI numeric codes (01 Aguascalientes … 32 Zacatecas) used by the national statistics institute and in the CURP/RFC identifiers.
  • Informal two-letter abbreviations (Ags., B.C., Chih., Q. Roo, N.L., CDMX) in addresses and on license plates.

Tips

  • Names contain accented characters (Michoacán, Nuevo León, Querétaro, San Luis Potosí, Yucatán, México): make sure your database and pages use UTF-8 and sort with a locale-aware collation (es), otherwise "Yucatán" may sort after "Zacatecas".
  • The state named México (Estado de México, MX-MEX) surrounds Mexico City and is distinct from it; write it as "Estado de México" in user interfaces to avoid confusion with the country.
  • Mexican postal codes (códigos postales) are 5 digits and their first two digits identify the state (01–16 Mexico City boroughs, 44–49 Jalisco, 64–67 Nuevo León…).