Skip to main content
v2026.11,858 entries · CC-BY 4.0
LAC HealthMedical & Research SuppliesReagents, PPE & instruments — chain-of-custody documented.Fast, traceable sourcing built for regulated research environments, from bench consumables to instrumentation.Shop lac.us CodeCASRAIlac.us

ISO 3166-1 Country Code: Guide for Research Data

A guide to ISO 3166-1 country codes in research metadata, covering alpha-2, alpha-3, numeric formats, and schema integration in DataCite and ROR repositories.

Written and maintained by CASRAI Editorial Board

Last updated

Short answer

An ISO 3166-1 country code is a standardized two-letter (alpha-2), three-letter (alpha-3), or three-digit numeric code that uniquely represents a sovereign nation, dependent territory, or special geographical entity. Maintained by the International Organization for Standardization (ISO), these codes provide language-neutral, machine-actionable geographic identifiers for dataset documentation, institutional affiliations, and research repositories.

Definition and scope

The ISO 3166-1 standard, titled Codes for the representation of names of countries and their subdivisions — Part 1: Country code, was first published in 1974 and is maintained by the ISO 3166 Maintenance Agency (ISO 3166/MA). Within the ISO 3166 family, Part 1 defines codes strictly for top-level national entities and territories.

In research administration and research data management (RDM), country codes resolve ambiguous geographical strings into controlled metadata. Free-text country names create severe interoperability barriers: a dataset origin might be recorded as “United Kingdom”, “Great Britain”, “UK”, or multilingual variants like “Allemagne” and “Germany”. Adopting an authoritative country code iso 3166 1 standard eliminates string variation, ensuring consistent indexing across catalog systems.

The standard establishes three coordinated code systems for every recognized entity:

  • ISO 3166-1 alpha-2: Two-character alphabetic codes used in Internet country-code top-level domains (ccTLDs) and primary metadata schemas.
  • ISO 3166-1 alpha-3: Three-character alphabetic codes offering visual mnemonic recognition.
  • ISO 3166-1 numeric: Three-digit numeric codes synchronized with the United Nations Statistics Division (UN M49) standard, providing script neutrality for non-Latin environments.

How it works or how it is used in practice

In research repositories and scholarly publishing systems, ISO 3166-1 codes are embedded in machine-actionable records following formal metadata schemas.

For institutional identification, the Research Organization Registry (ROR) incorporates ISO 3166-1 alpha-2 codes as a mandatory element. Under ROR Schema 2.0, an organization’s location record requires a two-letter country_code property validated by the regular expression ^[A-Z]{2}$. This enables automated aggregators like OpenAlex and Crossref to group publications and grants by national jurisdiction.

In dataset discovery platforms, DataCite incorporates ISO 3166-1 country codes within its REST API and metadata workflows. Harvesters querying the DataCite API filter DOI records by contributor country using the affiliation-country parameter, supplying comma-separated alpha-2 values (such as US, GB, or DE). Similarly, spatial coverage elements within DataCite metadata (such as geoLocationPlace) use ISO 3166 coding to align dataset geographic tags with broader knowledge graphs.

In the social sciences, the Data Documentation Initiative (DDI) Alliance mandates ISO 3166 within its XML specifications (such as DDI-Lifecycle 3.3). DDI schemas utilize the CountryCodeType to describe survey sample populations and geographic bounding areas. Under DDI guidelines, repository harvesters assume ISO 3166 country codes by default; any project using an alternative geographic vocabulary must explicitly declare it in the metadata header.

Types or related concepts

To implement country codes correctly in repository ingest pipelines, research data managers must distinguish between the three official ISO 3166-1 formats and related standards.

Format / Standard Structure Key Research Use Case Switzerland United Kingdom
ISO 3166-1 alpha-2 Two uppercase Latin letters (A–Z) Mandatory in ROR schemas, DataCite API filters, and prefix for ISO 3166-2 subdivisions. CH GB
ISO 3166-1 alpha-3 Three uppercase Latin letters (A–Z) Human-readable summaries and demographic surveys requiring visual identification. CHE GBR
ISO 3166-1 numeric Three decimal digits (001–899) Script-independent database storage and UN M49 statistical aggregations. 756 826
ISO 3166-2 Alpha-2 code + hyphen + up to 3 chars Principal subdivisions (provinces, states, cantons) for granular facility and field site tracking. CH-BE GB-ENG
ISO 3166-3 Four uppercase Latin letters Historical country codes, preserving metadata integrity for retrospective studies and archives. CSXX (historic) DDDE (historic)

When curating datasets with long-term preservation requirements, data managers should review descriptive metadata for datasets and types of metadata. Linking structured geographic codes to global persistent identifiers ensures spatial boundaries remain interpretable across decades.

Where it matters for labs, clinics or supply decisions

Standardized country codes play a direct role in scientific operations, laboratory management, and multisite clinical studies:

  • Multisite Clinical Trial Harmonization: Clinical trial registries and Electronic Data Capture (EDC) systems rely on ISO 3166-1 alpha-2 codes to designate trial site locations, patient recruitment regions, and regulatory authority submissions, preventing transcription discrepancies between international research organizations.
  • Sample and Material Provenance: Under the Nagoya Protocol on Access and Benefit-Sharing, biological specimens and genetic resources deposited in public repositories must document their country of origin. Using ISO 3166-1 codes ensures unambiguous legal compliance for biological transfers.
  • Equipment Procurement and Export Control: Research institutions subject to dual-use export regulations utilize ISO 3166-1 codes to track the origin and destination of sensitive scientific instruments, lasers, and chemical reagents.
  • Cross-Repository Metadata Federation: When institutional repositories federate holdings into larger discovery hubs like OpenAIRE or EOSC, standardized country codes allow automated aggregation of research outputs by funding country. Reviewing how to choose a metadata schema for a dataset and exploring DataCite Commons searching across the PID graph illustrates how standardized identifiers interconnect across repositories.

Common misunderstandings

Several misunderstandings surrounding iso 3166-1 country codes lead to errors in scientific databases and repository submission forms:

  • Confusing the United Kingdom’s Alpha-2 code: A frequent mistake is using UK instead of GB. In ISO 3166-1, the official alpha-2 code for the United Kingdom of Great Britain and Northern Ireland is GB. While UK is exceptionally reserved by the ISO 3166 Maintenance Agency, schema validators enforcing strict ISO 3166-1 alpha-2 will reject UK as invalid.
  • Assuming Country Names Never Change: Political boundaries and sovereign statuses evolve. When an entity dissolves, its code is deleted from ISO 3166-1 and moved to ISO 3166-3. Repositories must never overwrite historical codes in archived datasets, as doing so destroys temporal provenance.
  • Treating Numeric Codes as Raw Integers: ISO 3166-1 numeric codes are three-character fixed strings with leading zeros (e.g., 004 for Afghanistan). Storing them as integer data types in databases strips leading zeros, corrupting the code. Always store numeric country codes as fixed strings.
  • Conflating ISO 3166-1 with Telephone or Vehicle Codes: International telephone country calling codes (ITU-T E.164) and vehicle registration codes frequently differ from ISO 3166-1. Systems must maintain separate fields rather than overloading country identifier slots.

Frequently asked questions

Which country has the country code “CH” in ISO 3166?

In ISO 3166-1, the alpha-2 code CH represents Switzerland. The letters derive from the country’s official Latin name, Confoederatio Helvetica (Swiss Confederation). Switzerland’s corresponding ISO 3166-1 alpha-3 code is CHE, and its numeric code is 756.

What are the international country codes for different countries?

International country codes under ISO 3166-1 provide authoritative representations for every recognized nation and autonomous territory. Each entity is assigned three coordinated identifiers: a two-letter alpha-2 code (e.g., CA for Canada, FR for France, JP for Japan), a three-letter alpha-3 code (e.g., CAN, FRA, JPN), and a three-digit numeric code (e.g., 124, 250, 392).

What country is ISO code GB from?

The ISO 3166-1 code GB represents the United Kingdom of Great Britain and Northern Ireland (officially listed in the standard as United Kingdom). Its corresponding alpha-3 code is GBR and its numeric code is 826. Although “UK” is widely used in popular discourse and as a domain extension, GB is the sole official alpha-2 country code assigned under ISO 3166-1.

What is the ISO region code?

An ISO region or subdivision code is defined under ISO 3166-2, the second part of the ISO 3166 standard. ISO 3166-2 codes represent the principal administrative divisions of a country—such as states, provinces, cantons, prefectures, or departments. The format consists of the country’s ISO 3166-1 alpha-2 code, followed by a hyphen and up to three alphanumeric characters (for example, US-CA for California, CH-ZH for the Canton of Zurich, or GB-ENG for England).

Sources

  • International Organization for Standardization (ISO). (2020). ISO 3166-1:2020 — Codes for the representation of names of countries and their subdivisions — Part 1: Country code. ISO 3166 Maintenance Agency. URL: https://www.iso.org/iso-3166-country-codes.html (Checked 2026-11-07).
  • Research Organization Registry (ROR). (2024). ROR Metadata Schema v2.0 Specification. ROR Community. URL: https://github.com/ror-community/ror-schema (Checked 2026-11-07).
  • DDI Alliance. (2021). Data Documentation Initiative: DDI-Lifecycle 3.3 Field-Level Documentation (CountryCodeType). DDI Alliance. URL: https://ddialliance.org/Specification/DDI-Lifecycle/3.3/XMLSchema/FieldLevelDocumentation/ (Checked 2026-11-07).
  • DataCite. (2024). DataCite Metadata Schema and REST API Documentation. DataCite e.V. URL: https://schema.datacite.org/ (Checked 2026-11-07).

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about ISO 3166-1 Country Code: Guide for Research Data

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →