MX
Mexico
ISO 3166 Country Code
North America
Country Codes
Alpha-2 Code (ISO 3166-1 alpha-2)
MX
Alpha-3 Code (ISO 3166-1 alpha-3)
MEX
Numeric Code (ISO 3166-1 numeric)
484
Common Usage
HTML lang attribute
<html lang="mx">
URL locale parameter
https://example.com/mx/
JavaScript/TypeScript
const country = "MX"; const countryName = "Mexico";
API Response (JSON)
{
"country": "MX",
"countryName": "Mexico",
"alpha3": "MEX",
"numeric": "484"
}ISO 3166 Standard
ISO 3166 is the international standard for country codes. The alpha-2 code (MX) is the most commonly used format for domain names, language tags, and internationalization. The alpha-3 code (MEX) is used in shipping, banking, and official documents. The numeric code (484) is language-independent and useful for systems with character encoding limitations.