Country Codes Table
| Code | Country |
|---|---|
| US | United States |
| CN | China |
| JP | Japan |
| DE | Germany |
| IN | India |
| GB | United Kingdom |
| FR | France |
| IT | Italy |
| BR | Brazil |
| CA | Canada |
| RU | Russia |
| KR | South Korea |
| AU | Australia |
| MX | Mexico |
| ES | Spain |
| ID | Indonesia |
| NL | Netherlands |
| SA | Saudi Arabia |
| TR | Turkey |
| CH | Switzerland |
| PL | Poland |
| SE | Sweden |
| BE | Belgium |
| TH | Thailand |
| IE | Ireland |
| AR | Argentina |
| AT | Austria |
| NO | Norway |
| AE | United Arab Emirates |
| IL | Israel |
| MY | Malaysia |
| SG | Singapore |
| ZA | South Africa |
| DK | Denmark |
| PH | Philippines |
| EG | Egypt |
| VN | Vietnam |
| BD | Bangladesh |
| CL | Chile |
| FI | Finland |
| CO | Colombia |
| PT | Portugal |
| PE | Peru |
| GR | Greece |
| NZ | New Zealand |
| CZ | Czech Republic |
| RO | Romania |
| HU | Hungary |
| UA | Ukraine |
| NG | Nigeria |
| PK | Pakistan |
| IR | Iran |
| DZ | Algeria |
| LK | Sri Lanka |
| KE | Kenya |
Two-letter country codes are the most-travelled abbreviations in computing: the same US, DE, JP appear in domain names (.us, .de, .jp), shipping addresses, locale identifiers (en-US, de-DE) and payment systems. This table covers the 50+ most common codes from ISO 3166-1 alpha-2, filterable and click-to-copy.
The standard is maintained by the ISO 3166 Maintenance Agency, and the codes are deliberately assigned so that the two-letter code often matches the country name in its own language: DE for Deutschland, ES for España, JP for Nihon.
How to use
- Type a country name or code to filter - the search covers both the full name and the two-letter code.
- Click any code to copy the two-letter abbreviation.
- Use the letter chips to browse alphabetically by first letter.
Worked examples
Looking up a row: Japan
Find Japan in the country column and read across: alpha-2 = JP, alpha-3 = JPN, numeric = 392. The two-letter code is what goes in URLs and locale tags (ja-JP), the three-letter code shows up in customs and banking forms - same country, three encodings.
The classic gotcha: the United Kingdom
The United Kingdom's assigned alpha-2 is GB, not UK - a leftover from Great Britain that ISO kept as an exception after the UK joined the standard. UK itself is 'exceptionally reserved' (which is why .uk domains survive), but for formal ISO work the answer is GB.
Germany: DE, not GER
Germany's alpha-2 is DE - from Deutschland, not from the English name - which is the reason German car stickers say D. Its alpha-3 is DEU. When a code 'does not match the English name', the answer is almost always the local name or a colonial-era form hiding inside the standard.
Frequently asked questions
What is the difference between ISO 3166-1 alpha-2 and alpha-3?
Alpha-2 uses two letters (US, DE, JP) and is the internet standard for TLDs and locale tags. Alpha-3 uses three letters (USA, DEU, JPN) and is preferred in contexts where two letters are ambiguous - both are ISO 3166-1, but alpha-2 is by far the more commonly used.
Why do some codes not match the English name?
Codes are assigned based on the country’s own name in its own language: DE for Deutschland, ES for España, CH for Confoederatio Helvetica (Latin, avoiding French/German/Italian favouritism). JP for Nihon follows the English convention Japan rather than the native Nihon, showing the system is not perfectly consistent.
Is there a code for every country?
ISO 3166-1 has 249 officially assigned codes covering every UN-recognised country plus several territories (HK, TW, PR). Some territories have codes even without UN membership, and a few codes are exceptionally reserved for transitional periods after country name changes.
What are the alpha-2 codes for the major economies?
Quick reference for the ten most-looked-up: United States US, Germany DE, Japan JP, China CN, United Kingdom GB, France FR, Canada CA, Brazil BR, India IN, Australia AU, South Korea KR. Every one of them appears in the table above with its alpha-3 and numeric partner - the table is the lookup, this list is the check.
Why is the UK's code GB instead of UK?
ISO 3166-1 inherited GB from the standard's 1974 creation, when the official country name was still the United Kingdom of Great Britain and Northern Ireland. UK was never issued but is 'exceptionally reserved' so the .uk domain and UK-trademarked uses stay valid. In practice: use GB for ISO-tagged data and locale codes (en-GB), and expect UK to work in informal contexts almost everywhere else.