🇲🇽Mexico (MX)
ISO 3166 country code - North America / Central America
About Mexico
Mexico (MX) is located in North America, Central America. The official currency is the Mexican Peso (MXN). It has 32 administrative subdivisions defined in ISO 3166-2.
Alpha-2MX
Alpha-3MEX
Numeric484
Currency
$ MXN - Mexican Peso
Code Example
import { country } from '@koshmoney/countries';
// Look up Mexico by alpha-2 code
const mx = country.getCountry('MX');
// => { name: 'Mexico', alpha2: 'MX', alpha3: 'MEX', numeric: '484' }
// Look up by alpha-3 code
country.getCountryByAlpha3('MEX');
// Look up by numeric code
country.getCountryByNumeric('484');Subdivisions (32)
| Code | Name | Type |
|---|---|---|
| MX-AGU | Aguascalientes | State |
| MX-BCN | Baja California | State |
| MX-BCS | Baja California Sur | State |
| MX-CAM | Campeche | State |
| MX-CHH | Chihuahua | State |
| MX-CHP | Chiapas | State |
| MX-CMX | Ciudad de México | Federal District |
| MX-COA | Coahuila de Zaragoza | State |
| MX-COL | Colima | State |
| MX-DUR | Durango | State |
| MX-GRO | Guerrero | State |
| MX-GUA | Guanajuato | State |
| MX-HID | Hidalgo | State |
| MX-JAL | Jalisco | State |
| MX-MEX | México | State |
Showing 15 of 32. View all 32 subdivisions →
FAQ
- What is the ISO code for Mexico?
- Mexico has three ISO 3166-1 codes: Alpha-2 "MX", Alpha-3 "MEX", and Numeric "484".
- How many subdivisions does Mexico have?
- Mexico has 32 subdivisions defined in ISO 3166-2, including Aguascalientes, Baja California, Baja California Sur, and more.
- How to look up Mexico in JavaScript?
- Install @koshmoney/countries via npm, then use country.getCountry('MX') to get all ISO codes, or subdivision.getByCountry('MX') for subdivisions.
Related Articles
Related Countries
Use Mexico data in your project
Get ISO codes, subdivisions, currency, and more with a single npm package.
npm install @koshmoney/countries