US, CN, DE — you see these two-letter codes in URLs, dropdowns, and address forms. They come from ISO 3166, the international standard for country codes, and knowing their quirks saves real confusion.
The three variants
| Variant | Example | Used in |
|---|---|---|
| Alpha-2 | CN |
Domains (.cn), most software, most forms |
| Alpha-3 | CHN |
Passports, statistics |
| Numeric | 156 |
Databases, UN systems |
Alpha-2 is what you’ll meet daily: country-code top-level domains, locale codes (zh-CN), and the flag emoji trick — 🇨🇳 is literally the two regional-indicator letters C+N.
The quirks that trip people up
- UK vs GB: the code is
GB(Great Britain), but the domain is.uk. Both appear depending on context. - “ISO” isn’t one list: alpha-2 codes are the common ground, but mailing systems, sports (IOC codes like
CHNvsSUI), and vehicle plates each have their own variants. - Codes change slowly: countries that split or merge leave old codes behind in legacy systems —
SU(Soviet Union) still haunts old databases.
Looking one up
The country code reference lists every country with its alpha-2, alpha-3, and numeric codes — searchable, one page. When a form asks for a code or a domain confuses you, it’s the fastest way to settle it.
The practical takeaway
- Alpha-2 for almost everything: software, forms, and locales expect it.
- When in doubt, check the reference: guessing
UKvsGBis how data gets polluted.
A two-letter string, standardized since 1974 — small enough to take for granted, wrong enough to break forms when guessed.