ISO 3166 is an international standard published by the International Organization for Standardization to provide short, unambiguous codes for countries, territories and their principal administrative subdivisions. The system allows people, organizations and computer systems worldwide to refer to the same geopolitical entities without relying on local names or scripts. For basic reference about the organization see ISO.
Structure and code sets
The standard is divided into parts that serve different purposes. ISO 3166‑1 defines country codes in three complementary formats: alpha‑2 (two letters), alpha‑3 (three letters), and numeric (three digits). ISO 3166‑2 gives codes for subdivisions such as states or provinces (formed by combining the country alpha‑2 code with a subdivision identifier, e.g., US-CA). ISO 3166‑3 lists codes that have been removed when country names change or states dissolve. For lists and data files see code lists.
Examples and practical notes
As an example, Spain is represented in ISO 3166‑1 by the uppercase alpha‑2 code ES, the alpha‑3 code ESP, and the numeric code 724. These short codes are unique: no other country will use the same three identifiers. The alpha‑2 code is commonly used for country abbreviations in international postal addressing and as the basis for internet country code top-level domains (.es for Spain).
History and maintenance
The first edition of ISO 3166 was published in the 1970s and the standard has been maintained and updated since then by a dedicated maintenance agency. Updates reflect geopolitical changes—new states, name changes, mergers, and splits—and are published periodically so that national authorities, businesses and data providers can stay synchronized.
Uses and importance
- Data interchange and databases: consistent keys for countries in international datasets and statistics.
- Technical standards: foundations for country-specific identifiers such as ccTLDs and currency mappings.
- Logistics and travel: simplified routing and documentation through compact, language-neutral codes.
Because the same country has different names in different languages—English speakers say Spain, while Spanish speakers say España—ISO 3166 provides a language-neutral reference. For more information about a particular country entry see its dedicated record, for example Spain (example).
Notable distinctions include the difference between an ISO 3166 alpha‑2 code and an alpha‑3 code (short vs. mnemonic), and the role of ISO 3166‑2 for internal subdivisions. Organizations that exchange international data commonly adopt these codes to reduce ambiguity and facilitate automated processing.