ISO Country Codes (ISO 3166-1 Alpha-2, Alpha-3, Numeric)
Search the full list of 2-letter, 3-letter and numeric country codes, or paste names or codes to convert them.

How to use the ISO Country Codes tool
- Under What do you want to do?, choose Search the list to look up one country, or Convert a list of codes or names to process several entries at once.
- For a search, type a country name or any code into Search. DE, DEU and 276 all return Germany. A currency code such as EUR or a domain such as .de also works.
- For a conversion, paste codes or names into Codes or names, one per line. Aliases such as UK and USA are understood.
- Under Convert to, pick Alpha-2, Alpha-3, Numeric or Country name.
- Tick Also show region, currency, calling code and domain if you want those details added to the result.
- Under Sort by, choose Name, Alpha-2, Alpha-3 or Numeric. Tick Descending to reverse the order.
- Read the result lines: Countries shown for searches, Converted for matched entries, and Not recognised for anything that did not match.
The example buttons fill in sample inputs so you can see the output: Germany (DE / DEU / 276), UK → GB, Euro countries, and Convert a list. Under the result, Copy result copies the output, and Copy link saves a page address that keeps all your inputs, so opening it restores the same result. Print / save as PDF prints your inputs, the result, the date and the “How it was calculated” steps, which show each step with your own values.
What are ISO country codes?
ISO country codes are defined by ISO 3166-1, the international standard that gives each country or territory three codes. These are alpha-2 (two letters, such as DE), alpha-3 (three letters, such as DEU) and numeric (three digits, such as 276). The list has 249 entries, including dependent territories such as Åland Islands (AX) and Puerto Rico (PR), and the numeric codes match the UN M49 codes.
The codes identify countries and territories, not languages or currencies. When a country changes its name the code usually stays (Türkiye kept TR), but codes can change when a country splits or renames itself completely, as with Czechoslovakia or Burma.
Which ISO 3166-1 code should I use?
Use the format that the system you are working with expects. Alpha-2 codes are used for internet country domains (with exceptions, such as .uk for GB), in IBANs, in UN/LOCODEs and on shipping documents. Alpha-3 codes appear on passports in the machine-readable zone and are common in statistics. Numeric codes do not depend on the alphabet, which makes them useful when data must be sorted or matched across different languages and scripts.
Some codes are easy to get wrong. The United Kingdom is GB / GBR / 826, and “UK” is not an ISO 3166-1 code because it is reserved. The United States is US / USA / 840. Numeric codes keep their leading zeros, so Afghanistan is 004, not 4.
This page covers country codes only. ISO 3166-2 defines subdivision codes such as US-CA for California or CN-SH for Shanghai. Kosovo uses XK by convention but is not an ISO 3166-1 code, and EU is an exceptionally reserved code rather than a country entry.
Sources
- ISO 3166 country codes — codes as listed in the public-domain datasets/country-codes package (ODC-PDDL-1.0).
- UN M49 standard country or area codes — numeric codes and regions.
Worked examples
| Input | Result |
|---|---|
| Search for DE | Germany: DE, DEU, 276 |
| Search for 826 | United Kingdom of Great Britain and Northern Ireland: GB, GBR, 826 |
| UK → Alpha-3 | GBR (United Kingdom of Great Britain and Northern Ireland) |
| USA → Numeric | 840 (United States of America) |
Calculated by the tool above with these values.
Frequently asked questions
What does ISO 3166 mean?
ISO 3166 is the international standard for country and territory codes. ISO 3166-1 covers the country codes themselves, and ISO 3166-2 covers subdivisions such as states and provinces. This tool covers ISO 3166-1 only.
Is UK an ISO country code?
No. The ISO 3166-1 code for the United Kingdom is GB, with GBR as the alpha-3 code and 826 as the numeric code. The tool still recognises UK as an alias, so it converts it to GB.
Can I search by currency or internet domain instead of a country name?
Yes. The search box accepts a currency code such as EUR, which returns the euro countries, and a domain such as .de. You can also enter any 2-letter, 3-letter or numeric code.
Why do some numeric codes start with zero?
Numeric codes are always three digits, so codes below 100 keep their leading zeros. Afghanistan is 004. Dropping the zeros can make a code fail to match, so keep the full three digits when you store or compare them.
Can I use the results in commercial work?
Yes. Results may be used on products, packaging and documents without attribution.
Is anything I type sent to a server?
No. Everything runs in your browser, and nothing you type is uploaded. The tool is free and needs no sign-up.
Related tools
- UNLOCODE lookup — find the code of a port, airport or terminal for a booking or bill of lading.
- HTS code lookup — find the US import classification number and its duty rates.
- HS tariff code lookup — find the international 6-digit HS code for a commercial invoice.
- Schedule B lookup — find the 10-digit US export code for an AES filing.
- Container check digit calculator — check the ISO 6346 check digit of a shipping container number.
- Barcode generator — Code 128, Code 39, EAN, UPC, ITF-14, Codabar and GS1-128, single or a sheet of labels.