Skip to content
Buy me a coffee
Web Resources

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:

CodeFormExampleTypical uses
Alpha-2Two lettersFR, US, JPInternet 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-3Three lettersFRA, USA, JPNMore recognizable to humans; used on passports (machine-readable zone), by the IOC/FIFA with slight differences, and in statistics.
NumericThree digits (UN M.49)250, 840, 392Script-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; AN Netherlands Antilles was retired in 2010 in favor of BQ, CW and SX). 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 Rico PR, Hong Kong HK, Antarctica AQ). Depending on your use case you may need to filter or group them.
  • Kosovo has no ISO code; XK is a widely used user-assigned code (the range AA, QM–QZ, XA–XZ, ZZ is reserved for private use and will never be assigned by ISO). EU is 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-XXX codes: US-CA, CA-ON, MX-JAL, FR-75. See the US, Canada and Mexico lists on this site.