ISO Country List — HTML select snippet
Complete ISO 3166-1 country list (alpha-2, alpha-3, numeric) as an HTML select snippet, CSV, JSON, XML, SQL and plain text.
Live preview
Full list
About the ISO 3166-1 country list
What is ISO 3166-1?
ISO 3166-1 is the part of the ISO 3166 standard that assigns codes to the names of countries, dependent territories and special areas of geographical interest. It is maintained by the ISO 3166 Maintenance Agency and currently contains 249 officially assigned entries. Each entry has three codes:
| Code | Form | Example | Typical uses |
|---|---|---|---|
| Alpha-2 | Two letters | FR, US, JP | Internet country-code top-level domains (.fr, with a few exceptions such as .uk for GB), BCP 47 locale tags (fr-FR), ISO 4217 currency codes (EUR is the exception), postal and shipping systems, the recommended choice for databases and forms. |
| Alpha-3 | Three letters | FRA, USA, JPN | More recognizable to humans; used on passports (machine-readable zone), by the IOC/FIFA with slight differences, and in statistics. |
| Numeric | Three digits (UN M.49) | 250, 840, 392 | Script-independent, useful where Latin letters are a problem; identical to the United Nations statistical codes. Always keep the leading zeros (004 Afghanistan) — store it as text, not as an integer. |
Things to know before using the list
- Codes are stable but not immutable: entries are added, split or renamed (Czechia in 2016, Eswatini in 2018, Türkiye in 2022;
ANNetherlands Antilles was retired in 2010 in favor ofBQ,CWandSX). Retired codes are kept in ISO 3166-3 with a transitional period. Keep your list updated and never reuse a code for something else. - The list includes territories that are not sovereign states (Greenland
GL, Puerto RicoPR, Hong KongHK, AntarcticaAQ). Depending on your use case you may need to filter or group them. - Kosovo has no ISO code;
XKis a widely used user-assigned code (the rangeAA,QM–QZ,XA–XZ,ZZis reserved for private use and will never be assigned by ISO).EUis reserved for the European Union and used in some contexts (VAT numbers, domain names), but is not a country. - The English short names in this list follow the ISO catalogue ("Korea (Republic of)", "Viet Nam", "Russian Federation"). For a user-facing dropdown you may prefer common names ("South Korea", "Vietnam", "Russia") and the localized names from CLDR — JavaScript can provide them with
new Intl.DisplayNames([locale], { type: 'region' }).of('KR'). - Sort user-facing lists by localized name, not by code, and consider placing the user's own country (or the most frequent ones) at the top.
- Subdivisions (states, provinces, regions) are defined by ISO 3166-2 as
CC-XXXcodes:US-CA,CA-ON,MX-JAL,FR-75. See the US, Canada and Mexico lists on this site.