Country Code Lookup

Search all 249 ISO 3166-1 country codes and copy the alpha-2, alpha-3 or numeric code instantly.

249 matches

Afghanistan Asia

Alpha-2
AF
Alpha-3
AFG
Numeric
004

Top match of 249 โ€” tap a row below to pick another

ISO 3166-1 country codes matching your search
Country Alpha-2 Alpha-3 Numeric Region Copy
No uploads. Your files stay on your device.

Free forever, no sign-up, no cookies. Buy me a coffee

How it works

Type a country name, an alpha-2 code (DE), an alpha-3 code (DEU) or a numeric code (276) and the table filters as you type. Everyday short names work too, so South Korea finds KR, UK finds GB and Holland finds NL. The best match is selected automatically, so you can copy a single code, or the whole row as JSON, in one click.

The dataset is ISO 3166-1, officially assigned codes only: all 249 entries, each with its alpha-2, alpha-3 and three-digit numeric code, plus the UN M49 region it sits in. Numeric codes keep their leading zeros (Afghanistan is 004, not 4) because ISO 3166-1 numeric is a three-character string, not an integer. Flags are derived from the alpha-2 code as Unicode regional indicator symbols, so on a few desktop systems they render as a letter pair instead of a flag.

Everything is embedded in the page and runs on plain JavaScript in your browser: nothing is fetched from a server, nothing you type is logged, and both the CSV and JSON exports are built locally from whatever rows you are currently looking at.

Frequently asked questions

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

They are the three code sets defined by ISO 3166-1 for the same country. Alpha-2 is the two-letter code used in domain names, locale tags and most APIs (Germany is DE). Alpha-3 is the three-letter code, more readable on its own and common in finance and logistics (DEU). Numeric is a three-digit code that is language-independent and stable even when a country renames itself (276). Numeric codes are three-character strings, not integers, so Afghanistan is 004 and not 4. Dropping those leading zeros is the single most common way integrations break.

How many country codes are there in ISO 3166-1?

There are 249 officially assigned entries, and all 249 are included here. That is more than the number of sovereign states because ISO 3166-1 also covers dependencies and special areas of geographical interest, such as Antarctica (AQ), Hong Kong (HK), Puerto Rico (PR) and the ร…land Islands (AX). Codes that have been withdrawn, or that are only reserved, exceptionally reserved or user-assigned, are deliberately left out so every row you copy is a code you can actually use.

Can I search by the everyday name of a country instead of its official one?

Yes. The search matches the ISO short name, both letter codes, the numeric code and a list of everyday aliases, so UK finds GB, South Korea finds KR, Holland finds NL, Ivory Coast finds CI and Burma finds MM. Accents are ignored too, so typing cote divoire still finds Cรดte d'Ivoire. Whole-word aliases outrank name prefixes on purpose, which is why UK returns the United Kingdom rather than Ukraine.

Report a bug