Skip to Content

🇲🇽Mexico (MX)

ISO 3166 country code - North America / Central America

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)

CodeNameType
MX-AGUAguascalientesState
MX-BCNBaja CaliforniaState
MX-BCSBaja California SurState
MX-CAMCampecheState
MX-CHHChihuahuaState

...and 27 more. 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 Countries

Use Mexico data in your project

Get ISO codes, subdivisions, currency, and more with a single npm package.

npm install @koshmoney/countries