Published

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

70.4K
24.3K

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.

Download · CSV · 3.87 kB
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 Previews

data

Loading data...

Schema

nametypedescription
NamestringCountry Name
CodestringISO 2-digit code from ISO 3166-alpha-2

Data Files

FileDescriptionSizeLast modifiedDownload
data
3.87 kB27 days ago
data
FilesSizeFormatCreatedUpdatedLicenseSource
13.87 kBabout 1 year agoOpen Data Commons Public Domain Dedication and License v1.0ISO

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 250 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.