Country, Currency & Locale Codes.
ISO 3166 country codes, ISO 4217 currency codes and BCP 47 locale tags in one searchable table.
Runs in your browserAbout Country, Currency & Locale Codes
Country, Currency & Locale Codes puts the three code lists developers look up most often into one searchable table. The countries dataset has all 249 ISO 3166-1 entries with the alpha-2 code (UA), alpha-3 code (UKR), numeric code (804), English name, flag emoji and the currencies that are legal tender there. The currencies dataset lists ISO 4217 codes such as EUR or JPY with their numeric code, English name, symbol and number of minor units, which tells you how many decimal places to store: two for the euro, zero for the Japanese yen and three for the Bahraini dinar. The locales dataset lists more than 800 BCP 47 language tags like en-GB, uk-UA, pt-BR or zh-Hant with their English and native names, ready for Accept-Language handling, Intl formatting or translation file names. The data was exported from the Unicode CLDR via ICU, the same source browsers and operating systems use. Typical mistakes: storing money as floating-point numbers with two decimals for every currency, using UK instead of GB as the ISO code for the United Kingdom, writing locales with underscores in places that expect hyphens (en_US vs en-US), and treating a language as a country, for example assuming "en" means the United States. Type a two- or three-letter code for an exact match, or any word to search names.
How to Use
- Choose countries, currencies or locales.
- Type a code or part of a name to filter the table.
- Copy the code you need into your database, API or translation files.
Frequently Asked Questions
Where does the data come from?
From Unicode CLDR as shipped in ICU 78. Country and currency codes follow ISO 3166-1 and ISO 4217; locale names are CLDR display names.
Why does Kosovo not appear?
Kosovo has no officially assigned ISO 3166-1 code. XK is a user-assigned code used by the EU and some software, so it is not in the ISO list.
What are minor units?
The number of decimal places a currency uses. Store amounts as integers in the minor unit (cents, fils) and use this value to format them correctly.
Do I need an internet connection?
No. All three lists are bundled with the page and filtering happens in your browser.
Related Tools
All IANA time zone identifiers with their UTC offset, abbreviation and daylight saving offset.
Convert between Unix timestamps and dates.
Generate realistic fake data for testing.
Information about your current IP address.
Reference for all HTTP status codes.
Complete ASCII character reference (0–127).