Country Codes - ISO 3166
What is ISO 3166?
ISO 3166 is the International Standard for country codes and codes for their subdivisions.
The purpose of ISO 3166 is to define internationally recognised codes of letters and/or numbers that we can use when we refer to countries and subdivisions. However, it does not define the names of countries – this information comes from United Nations sources (Terminology Bulletin Country Names and the Country and Region Codes for Statistical Use maintained by the United Nations Statistics Divisions).
Using codes saves time and avoids errors as instead of using a country's name (which will change depending on the language being used) we can use a combination of letters and/or numbers that are understood all over the world.
For example, all national postal organizations throughout the world exchange international mail in containers identified with the relevant country code. Internet domain name systems use the codes to define top level domain names such as '.fr' for France, '.au' for Australia. In addition, in machine readable passports, the codes are used to determine the nationality of the user and when we send money from one bank to another the country codes are a way to identify where the bank is based.
How can I access ISO 3166?
The codes in ISO 3166 are available on the Online Browsing Platform. The information on the OBP is always up to date and you can sign up for notifications to be informed when changes are made by clicking on the follow function in the top right hand corner.
We also have a product, the Online collection of country codes, that contains the codes from parts 1, 2 and 3 of ISO 3166 in 3 different formats: .xml, .csv, and .xls for easy integration into your own systems. You will be notified when changes are made so you can download the latest versions. In this way, you can be sure that your database is always using the most up-to-date information from ISO.
What is included in ISO 3166?
ISO 3166 has three parts: codes for countries, codes for subdivisions and formerly used codes (codes that were once used to describe countries but are no longer in use).
The country codes can be represented either as a two-letter code (alpha-2) which is recommended as the general purpose code, a three-letter code (alpha-3) which is more closely related to the country name and a three digit numeric code (numeric -3) which can be useful if you need to avoid using Latin script.
The codes for subdivisions are represented as the alpha-2 code for the country, followed by up to three characters. For example ID-RI is the Riau province of Indonesia and NG-RI is the Rivers province in Nigeria. Names and codes for subdivisions are usually taken from relevant official national information sources.
The formerly used codes are four letter codes (alpha-4). How the alpha 4 codes are constructed depends on the reason why the country name has been removed.
Read more about the different types of codes in the Glossary for ISO 3166.
How is ISO 3166 maintained?
ISO 3166 is regularly updated to reflect changes in country names and subdivisions. These changes are done by the ISO 3166 Maintenance Agency (ISO3166/MA).
The maintenance agency includes representatives from the following 14 organizations:
- Association française de normalisation AFNOR (France)
- American National Standards Institute ANSI (United States)
- British Standards Institution BSI (United Kingdom)
- Deutsches Institut für Normung DIN (Germany)
- Japanese Industrial Standards Committee (JISC)
- Kenya Bureau of Standards (KEBS)
- Standardization Administration of China (SAC)
- Swedish Standards Institute SIS (Sweden)
- International Atomic Energy Agency (IAEA)
- International Civil Aviation Organization (ICAO)
- International Telecommunication Union (ITU)
- Internet Corporation for Assigned Names and Numbers (ICANN)
- Universal Postal Union (UPU)
- United Nations Economic Commission for Europe (UNECE)
How are country code elements assigned?
The ISO 3166 maintenance agency assigns a country code to an independent country, defined as a member state of the United Nations (UN).
When the UN notifies the ISO 3166 maintenance agency, it also provides the numeric code. The ISO 3166/MA then assigns the alpha-2 and alpha-3 codes.
For other geopolitical areas or countries, the ISO 3166/MA does not assign official country codes.
For geopolitical areas that are part of a sovereign country that is a member state of the UN, a special request may be made to the ISO 3166 maintenance agency.
To be considered, these areas cannot be an exclave of the parent country nor an island within the territorial waters of the parent country, and must be physically separated from its parent country.
Such requests must come from the competent office of the national government of the country holding sovereignty over the area and ratified or alternatively proposed by the ISO Member Body of the country holding sovereignty over the area.
Contact the ISO 3166 Maintenance Agency
The ISO 3166/MA should be contacted through its secretariat. Please use the following address:
ISO 3166 Maintenance Agency
c/o International Organization for Standardization
Chemin de Blandonnet 8
1214 Vernier, Geneva
Telephone: +41 22 749 01 11