A little help goes a long way. Find a tool/

Reference

Country Code Lookup

Free ISO 3166 country code lookup: enter a code (GB, GBR, 826) or a country name and get the full set — alpha-2, alpha-3 and numeric codes for all 249 entries.

YOUR WORKSPACEFree to use. No sign-up.
—
Enter a country name or a code above.

Browse all 249 codes

Every officially assigned ISO 3166-1 entry, sorted by name.

Deep dive guides

A LITTLE CONTEXT · 4 MIN READCountry Codes Explained: Alpha-2, Alpha-3 and Numeric

How country code lookup works

ISO 3166-1 is the international standard that assigns every country — and quite a few territories — three interchangeable code elements: a two-letter alpha-2 (GB), a three-letter alpha-3 (GBR) and a three-digit numeric (826). This tool resolves all three directions: type any of the codes, or part of a country name, and get the full identity. DE, DEU and 276 are all Germany. The alpha-2 codes are the ones you meet daily: internet domains (.uk, .de), locale tags like en-GB, and the country fields in payment and shipping forms.

Lookups are forgiving. Codes match case-insensitively (gb, De and dEu all work); numeric codes work with or without leading zeros (76 and 076 are both Barbados); and name search handles the informal spellings ISO does not assign — UK resolves to GB with a note, USA finds the United States, and Holland, Burma, Swaziland and Czech Republic all map to their current official entries. Partial names search the whole 249-entry table and list matches alphabetically, exact matches first.

The table includes all 249 officially assigned entries — not just UN member states — so you also get Antarctica (AQ), overseas territories (GF for French Guiana, CW for Curaçao) and special entries like the Holy See (VA). Names follow the ISO short-name convention (Korea, Republic of; Taiwan, Province of China), which is why some look formal or surprising; the informal names still resolve through the built-in alias list. This is the same code space your browser, bank and courier software use, so a code that is not in this table will not be in their drop-downs either.

Frequently asked questions

Is "UK" a valid country code?
Not officially. The ISO 3166-1 alpha-2 code for the United Kingdom is GB; UK is only exceptionally reserved (it lives on in the .uk domain names). This tool resolves UK to GB and flags it as an informal alias — useful when validating user input, where people keep typing UK.
What is the numeric code for?
The three-digit numeric code exists because digits survive language and script changes — China stays 156 whether the surrounding text is Chinese, Arabic or Cyrillic. Standards that must be script-independent, such as UN trade data and bibliographic records, prefer the numeric codes for exactly that reason.
Why does the list include territories like Greenland?
ISO 3166-1 assigns codes to "countries and dependent territories that are well defined geographically" — 249 entries including Greenland (GL), Hong Kong (HK) and Curaçao (CW). These codes appear everywhere from shipping forms to top-level domains, so a complete reference must include them, not just UN member states.
Why do some names look formal or reversed?
The tool uses the official ISO short names in their UN style — Korea, Republic of or Bolivia, Plurinational State of — because that is what the standard assigns. Informal names (South Korea, Bolivia) still resolve through the built-in alias list, so you can search either way.
Is this the same as a top-level domain list?
Country-code top-level domains (.uk, .jp, .de) are derived from alpha-2 codes but are a separate system with its own rules — .uk exists even though the ISO code is GB, and a few ccTLDs were grandfathered from older codes. This tool covers the underlying ISO 3166-1 codes the domain system borrowed.