Flag of Mexico and es-MX

Locale Code: es-MX

The locale code represents Spanish language in Mexico.

See all locale codes


General information related to the locale code

Comprehensive es-MX locale data for Mexico
Country NameMexico
Country Name (Local)México
Country Flag🇲🇽
Country Area1964375 km2
Country Code (ISO 3166-1)MX
Language NameSpanish
Language Name (Local)Español
Language Code (ISO 639-1)es
ContinentCentral America
RegionNorth America
Capital NameMexico City
Capital Latitude19.42847
Capital Longitude-99.12766
Postal Code Format#####
Postal Code Regex^(\d{5})$


The currency used for the locale code es-MX is Mexican Peso.

Currency information for Mexico and es-MX locale
Currency NameMexican Peso
Currency Name (Local)Mexican peso
Currency CodeMXN
Currency Symbol$
Currency Numeric484
Currency Subunit Value100
Currency Subunit NameCentavos


Mexico has 3 timezones with UTC offsets ranging from UTC-08:00 to UTC-06:00.



Mexico shares borders with 3 countries and it's not landlocked.

Flag of Belize
Flag of Guatemala
Flag of United States of America
United States of America
Ready to say

Greet your customers
in their mother language

Start 14-day trial
No credit card required
country flags

What is 'es-MX' locale code?

Every locale code is a unique identifier for a specific language and country (or region). It is used in software development to localize applications and websites. Locale code is a combination of ISO 639-1 language code and ISO 3166-1 country code. For example, es_MX is a locale code for Spanish language in Mexico. Locale codes are used to define the language and country settings for date, time, currency, and number formatting. They are also used to translate user interfaces and messages in software applications. Locale codes are essential for building multilingual and internationalized software products. They are used in programming languages, frameworks, and libraries to provide internationalization and localization features. Locale codes are also used in databases, operating systems, and web browsers to provide language and country-specific settings. Locale codes are standardized by the International Organization for Standardization (ISO) and are widely used in software development.