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.