ISO Country Codes Reference

Look up ISO 3166-1 alpha-2, alpha-3 and numeric country codes.

Free ISO 3166-1 country code reference — search alpha-2, alpha-3 and numeric codes for every country. Runs entirely in your browser, nothing is uploaded. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What is the difference between alpha-2 and alpha-3 codes?

Alpha-2 codes are two letters (for example GB) and are used in domains and most web APIs. Alpha-3 codes are three letters (GBR) and are used where extra clarity is needed, such as ISO documents and some banking systems. Both come from the ISO 3166-1 standard.

ISO 3166-1 country codes

Search the official ISO 3166-1 country codes by name or by any of the three code forms. Developers, data analysts and operations teams use this standard for country fields in forms, APIs, spreadsheets and databases so that data stays consistent across systems.

How it works

The full code list is bundled with the page, so searching is instant and offline. Type a country name, a two- or three-letter code, or a numeric code, and the table filters to matching rows showing all three code forms side by side:

FormExample (United Kingdom)Typical use
Alpha-2GBDomains, web APIs, locale codes
Alpha-3GBRISO documents, banking, sports
Numeric826Script-independent datasets

Quick lookup examples

CountryAlpha-2Alpha-3Numeric
GermanyDEDEU276
JapanJPJPN392
United StatesUSUSA840
BrazilBRBRA076
South KoreaKRKOR410

Searching for the code JP jumps straight to Japan (JPN, 392). The numeric code is the same in any language or writing system, which is why statistical bodies prefer it.

Where each code form is used

Alpha-2 is the most widely used form. It appears in:

  • Web browser locale strings (en-GB, fr-FR)
  • REST API country fields
  • HTML lang attribute suffixes
  • Country-code top-level domains (ccTLDs), with the notable exception that the UK’s domain is .uk rather than .gb

Alpha-3 is used where extra clarity or visual distinction matters:

  • ISO publications and international standards documents
  • International sports data (FIFA, IOC country codes usually align with alpha-3, though some differ)
  • Swift/BIC banking codes often reference the three-letter form internally
  • Passport and travel document machine-readable zones

Numeric codes are preferred when the data must be script-independent:

  • UN statistical databases and Eurostat
  • Government census and trade datasets
  • Legacy mainframe systems that pre-date the widespread use of Latin letters

Codes that frequently cause confusion

  • United Kingdom: alpha-2 is GB, alpha-3 is GBR, but the ccTLD is .uk
  • Greece: alpha-2 is GR, but the ISO 639 language code for Greek is el (these are different standards)
  • South Korea vs North Korea: KR/KOR (Republic of Korea) and KP/PRK (Democratic People’s Republic of Korea) are separate entries
  • Taiwan: listed as TW/TWN in ISO 3166-1, though some databases use alternative representations

Developer notes

When storing country data in a database, prefer the alpha-2 code as the primary key (two characters, no ambiguity, widely supported by libraries). Store alpha-3 and numeric as reference columns if your workflows need them. Avoid storing country names as keys — they change with political updates, while codes are assigned to retired names and only change through an official ISO correction.

Everything runs in your browser, with nothing uploaded.