ISO 3166-2 is the second part of the ISO 3166standard. It is a geocode system created for coding the names of subdivisions of countries (subnational entities) and dependent areas. The purpose of the standard is to establish a worldwide series of short abbreviations for places, for use on package labels, containers, and such; anywhere where a short alphanumeric code can serve to clearly indicate a location in a more convenient and less ambiguous form than the full place name. There are around 3700 different codes.
The official name of the standard is Codes for the representation of names of countries and their subdivisions -- Part 2: Country subdivision code.
ISO 3166-2 codes consist of two parts, separated by a hyphen. The first part is the ISO 3166-1 alpha-2 code element, the second is alphabetic or numeric and has one, two or three digits. The second part often is based on national standards.
To find the ISO 3166-2 codes for each country see ISO 3166-1, a list of countries. If you are familiar with the two-letter country codes (similar to internet country codes) you can also use the format matrix given below.
Both ways would lead to articles like ISO 3166-2:XX, where XX stands for the ISO 3166-1 code, e.g. ISO 3166-2:AU leads to the code list for Australia.
* Track changes, sorted by country * http://www.iso.org/iso/en/prods-services/iso3166ma/04background-on-iso-3166/iso3166-2.html * http://www.unece.org/cefact/locode/service/sublocat.htm * This says that it has permission to reproduce all codes. Some codes and names are outdated. * Uses ISO codes internally in the free geolocation database download * http://philmcrew.com/countrysubentity.txt