ISO 3166-2:MX is the entry for Mexico in ISO 3166-2, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), which defines codes for the names of the principal subdivisions (e.g., provinces or states) of all countries coded in ISO 3166-1.
Currently for Mexico, ISO 3166-2 codes are defined for 31 states and 1 federal entity. Mexico City has special status equal to the states.
Each code consists of two parts, separated by a hyphen. The first part is MX, the ISO 3166-1 alpha-2 code of Mexico. The second part is three letters.