ISO 3166 Alpha-2 Country Code Lookup

Find 2-letter country codes used in URLs, domains, and APIs

Look up the ISO 3166-1 alpha-2 two-letter country code for any nation, the same codes used in country domains, locale tags, and APIs. Search by code or country name and see the matching alpha-3 and numeric codes too.

What is an ISO 3166-1 alpha-2 code?

It is the two-letter country code defined by the ISO 3166 standard, such as GB for the United Kingdom or US for the United States. It is the most widely used country code, appearing in country domains, language tags, and countless APIs.

The ISO 3166-1 alpha-2 standard gives every country a two-letter code, and those codes turn up everywhere: in country-code top-level domains, in locale tags like en-GB, and as the country field in countless APIs and databases. This tool finds the alpha-2 code for any country and shows its matching alpha-3 and numeric codes.

How it works

ISO 3166-1 maintains three parallel codes for each country: a two-letter alpha-2 code, a three-letter alpha-3 code, and a three-digit numeric code. The alpha-2 code is the most common because it is short and was adopted as the basis for country-code top-level domains. The tool matches your text against both the alpha-2 code and the country name, so you can search either way.

One historical quirk is worth knowing: the United Kingdom’s official alpha-2 code is GB, even though its internet domain is .uk. When a system asks for an ISO country code, use GB.

Tips and example

To find a country’s code, type its name — searching Georgia returns GE. To go the other way, type the code you have, such as JP, to confirm it is Japan. The result line also shows the alpha-3 and numeric forms, so you can convert between the three representations in one step.