List of all countries with their 2 digit codes (ISO 3166-1)

41,991
0
Updated:
Files:1
Size:3.87 kB
Formats:csv
License:ODC-PDDL-1.0

ISO 3166-1-alpha-2 English country names and code elements. This list states the country names (official short names in English) in alphabetical order as given in ISO 3166-1 and the corresponding ISO 3166-1-alpha-2 code elements.

API Access

Access dataset files directly from scripts, code, or AI agents.

Browse dataset files
Dataset Files

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

/core/country-list/
https://datahub.io/core/country-list/_r/-/README.md
https://datahub.io/core/country-list/_r/-/data.csv
https://datahub.io/core/country-list/_r/-/datapackage.yml
Key Files

Start with these files — they give you everything you need to understand and access the dataset.

datapackage.ymlmetadata & schema
https://datahub.io/core/country-list/_r/-/datapackage.yml
README.mddocumentation
https://datahub.io/core/country-list/_r/-/README.md
Typical Usage
  1. 1. Fetch datapackage.yml to inspect schema and resources
  2. 2. Download data resources listed in datapackage.yml
  3. 3. Read README.md for full context

Data Files

Explore with AI

data

Loading data...

Download

Download CSV

About

List of all countries with their official short names in English and corresponding ISO 3166-1 alpha-2 two-letter country codes.
Last updated
9 February 2026
Total rows
...
Format
CSV
File size
3.87 kB
Source
ISO

About this dataset

badge

ISO 3166-1-alpha-2 English country names and code elements. This list states the country names (official short names in English) in alphabetical order as given in ISO 3166-1 and the corresponding ISO 3166-1-alpha-2 code elements.

This list is updated whenever a change to the official code list in ISO 3166-1 is effected by the ISO 3166/MA.

It lists 249 official short names and code elements as of Dec 2012.

License

This material is licensed by its maintainers under the Public Domain Dedication and License.

Nevertheless, it should be noted that this material is ultimately sourced from ISO and their rights and licensing policy is somewhat unclear. As this is a short, simple database of facts there is a strong argument that no rights can subsist in this collection. However, ISO state on their site:

ISO makes the list of alpha-2 country codes available for internal use and
non-commercial purposes free of charge.

This carries the implication (though not spelled out) that other uses are not permitted and that, therefore, there may be rights preventing further general use and reuse.