ISO Country Codes Explained

3 min read · Maintained by Leslie · Content updated

Originally published 2026-08-08. This content update is separate from the historical dates on underlying reference records.

Three identifiers for the same country

ISO 3166-1 provides country and territory identifiers in alpha-2, alpha-3 and numeric-3 forms. Japan is JP, JPN and 392; Brazil is BR, BRA and 076. Choose the form required by the receiving system.

The representations serve different applications. Do not substitute a calling code, a language identifier or a familiar abbreviation merely because it refers to the same country.

Where the numeric code matters

A numeric-3 code is useful when an application needs a representation independent of Latin letters. It is a three-character identifier, including any leading zeros.

A shared code system can help join records with different language names, but historical assignments require version and date checks. Numeric codes should not be treated as immutable forever.

Notable exceptions

Some codes do not match the obvious name. The United Kingdom is GB rather than UK, Germany is DE from its German name Deutschland, and Switzerland is CH from Confoederatio Helvetica.

When you search an alias such as UK or Germany here, the result resolves to the correct ISO record and shows the official codes.

Worked example: fixing a country-column import

Suppose an import requires ISO alpha-2 but the source rows contain Japan, JPN and JP. Map the first two to JP only after confirming their meaning. Keep the original text and put unknown entries into an exception list. Taking the first two characters of Japan would produce JA, which is not the intended code.

Brazil’s numeric-3 value is 076. Preserve all three characters in spreadsheets and exports. A display format can show 076 while the underlying value is 76, so inspect the exported file too. Match numeric country identifiers only against the corresponding code system, not against a postal code or another numeric field that happens to contain the same digits.

Country codes, subdivisions and historical records

ISO 3166-2 identifies subdivisions using a country prefix and a subdivision suffix. That is different from a country-only identifier. Read the receiving system’s specification when a form has separate country and province fields; do not put the complete subdivision identifier into both.

For historical data, retain the observation date and mapping version. ISO maintains information on code changes and formerly used codes. Do not silently overwrite an old assignment with today’s value when that would change the meaning of the record. Use ISO’s browsing platform and change records to investigate discrepancies; a successful lookup here does not guarantee that an external shipping service or API accepts the value.

Reconcile a renamed destination without losing its history

Two imports arrive with labels Turkey and Türkiye. Their alpha-2 values both read TR. The UN country table pairs Türkiye with TR, TUR and 792. Join on a code from the same system, retain each original label, and select the display name separately.

Now try an import that contains only the older label Netherlands Antilles. The current Curaçao row has code CW, but the old territory included other islands. Request the destination island before assigning a current code. A name normalization that solves the first import would silently change the second.

Sources and further checks

Use the listed sources and worked references to check the examples.