Skip to content

Search ISO 3166-1 country codes, names, flags, and Unicode sequences locally.

Loading tool

About Country flag lookup

Searchable list of ISO 3166-1 countries and territories with their alpha-2, alpha-3 and numeric codes and flag emoji. Search by name or any code; selecting a country shows its flag's Unicode code points, HTML entity, JavaScript escape and country-code top-level domain, and lets you copy the flag.

Common uses

  • Look up the alpha-2 or alpha-3 code for a country in a form or API
  • Convert a numeric ISO country code like 704 back to a country
  • Get the HTML entity or JavaScript escape for a flag emoji
  • Find a country's ccTLD

FAQ

What is the difference between ISO 3166-1 alpha-2 and alpha-3?
Alpha-2 codes are two letters (US, VN, DE) and are used for ccTLDs and most APIs. Alpha-3 codes are three letters (USA, VNM, DEU) and are more readable; there is also a three-digit numeric code (840, 704, 276).
How are flag emoji encoded?
A country flag is two Regional Indicator Symbols (U+1F1E6 to U+1F1FF) that spell the alpha-2 code. For example, VN is U+1F1FB U+1F1F3.
Why do flags show as two letters on Windows?
Windows' built-in emoji font does not include country flags, so the pair of regional indicators is displayed as letters. Use an image or emoji font if flags must render everywhere.
Why is the UK's code GB but its domain .uk?
The ISO 3166-1 code for the United Kingdom is GB, but the UK's ccTLD has historically been .uk; .gb was assigned but is essentially unused.