Country Codes Table

–click a code to copy it
CodeCountry
USUnited States
CNChina
JPJapan
DEGermany
INIndia
GBUnited Kingdom
FRFrance
ITItaly
BRBrazil
CACanada
RURussia
KRSouth Korea
AUAustralia
MXMexico
ESSpain
IDIndonesia
NLNetherlands
SASaudi Arabia
TRTurkey
CHSwitzerland
PLPoland
SESweden
BEBelgium
THThailand
IEIreland
ARArgentina
ATAustria
NONorway
AEUnited Arab Emirates
ILIsrael
MYMalaysia
SGSingapore
ZASouth Africa
DKDenmark
PHPhilippines
EGEgypt
VNVietnam
BDBangladesh
CLChile
FIFinland
COColombia
PTPortugal
PEPeru
GRGreece
NZNew Zealand
CZCzech Republic
RORomania
HUHungary
UAUkraine
NGNigeria
PKPakistan
IRIran
DZAlgeria
LKSri Lanka
KEKenya
The two-letter codes are ISO 3166-1 alpha-2, the same vocabulary used in W3C language tags (en-US), domain names (.us, .de) and shipping addresses. The table covers the 50+ most common codes; the full ISO standard has 249 officially assigned entries. Click any code to copy it. Bottom line: the same two letters appear in three contexts - domain TLD, shipping country code and locale identifier (en-US) - and getting them wrong in shipping is the most expensive two-letter typo in e-commerce. Locale context: HTML lang codes table, Unicode character inspector, ASCII table.

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

  1. Type a country name or code to filter - the search covers both the full name and the two-letter code.
  2. Click any code to copy the two-letter abbreviation.
  3. 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.

Related tools