Newsletter : Bons plans voyages

2-letter country codes

22 May 2026

Key takeaways: the ISO 3166-1 standard secures global exchanges with 249 official country codes, ensuring the interoperability of banking and logistics systems. The use of the Alpha-2 format is crucial for web development, particularly for domain extensions and data validation. A notable fact: the CH code (Switzerland) illustrates this neutrality by drawing on the Latin “Confederatio Helvetica”.

The ISO 3166-1 standard structures global trade through 249 official codes that ensure the interoperability of customs and banking systems. This invisible foundation allows each nation to be identified unambiguously, whether by two letters, three letters, or three digits.

Yet, a simple typo or the use of an obsolete code is enough to block a financial transaction or international logistics routing. This article details the complete directory of 2-letter country codes and explains how to use these standards to make your databases more reliable.

  1. Why the ISO 3166-1 country code governs our exchanges
  2. Directory of country codes from A to L
  3. Continuation of the official listing from M to Z
  4. How are code changes managed?
  5. 3 advantages of Alpha-2 for web development
  6. Links with currencies and administrative subdivisions

The three faces of the standard: Alpha-2, Alpha-3, and numeric

The standard offers three distinct formats. Alpha-2 uses two letters and Alpha-3 uses three. The numeric format relies on three digits. Each version meets specific technical constraints.

CodeCountry / TerritoryCodeCountry / TerritoryCodeCountry / Territory
ADAndorraAEUnited Arab EmiratesAFAfghanistan
AGAntigua and BarbudaAIAnguillaALAlbania
AMArmeniaAOAngolaAQAntarctica
ARArgentinaASAmerican SamoaATAustria
AUAustraliaAWArubaAXÅland Islands
AZAzerbaijanBABosnia and HerzegovinaBBBarbados
BDBangladeshBEBelgiumBFBurkina Faso
BGBulgariaBHBahrainBIBurundi
BJBeninBLSaint BarthélemyBMBermuda
BNBruneiBOBoliviaBQBonaire, Sint Eustatius and Saba
BRBrazilBSBahamasBTBhutan
BVBouvet IslandBWBotswanaBYBelarus
BZBelizeCACanadaCCCocos (Keeling) Islands
CDDemocratic Republic of the CongoCFCentral African RepublicCGCongo
CHSwitzerlandCICôte d’IvoireCKCook Islands
CLChileCMCameroonCNChina
COColombiaCRCosta RicaCUCuba
CVCape VerdeCWCuraçaoCXChristmas Island
CYCyprusCZCzechiaDEGermany
DJDjiboutiDKDenmarkDMDominica
DODominican RepublicDZAlgeriaECEcuador
EEEstoniaEGEgyptEHWestern Sahara
EREritreaESSpainETEthiopia
FIFinlandFJFijiFKFalkland Islands
FMMicronesiaFOFaroe IslandsFRFrance
GAGabonGBUnited KingdomGDGrenada
GEGeorgiaGFFrench GuianaGGGuernsey
GHGhanaGIGibraltarGLGreenland
GMGambiaGNGuineaGPGuadeloupe
GQEquatorial GuineaGRGreeceGSSouth Georgia and the South Sandwich Islands
GTGuatemalaGUGuamGWGuinea-Bissau
GYGuyanaHKHong KongHMHeard Island and McDonald Islands
HNHondurasHRCroatiaHTHaiti
HUHungaryIDIndonesiaIEIreland
ILIsraelIMIsle of ManINIndia
IOBritish Indian Ocean TerritoryIQIraqIRIran
ISIcelandITItalyJEJersey
JMJamaicaJOJordanJPJapan
KEKenyaKGKyrgyzstanKHCambodia
KIKiribatiKMComorosKNSaint Kitts and Nevis
KPNorth KoreaKRSouth KoreaKWKuwait
KYCayman IslandsKZKazakhstanLALaos
LBLebanonLCSaint LuciaLILiechtenstein
LKSri LankaLRLiberiaLSLesotho
LTLithuaniaLULuxembourgLVLatvia
LYLibyaMAMoroccoMCMonaco
MDMoldovaMEMontenegroMFSaint Martin
MGMadagascarMHMarshall IslandsMKNorth Macedonia
MLMaliMMMyanmarMNMongolia
MOMacaoMPNorthern Mariana IslandsMQMartinique
MRMauritaniaMSMontserratMTMalta
MUMauritiusMVMaldivesMWMalawi
MXMexicoMYMalaysiaMZMozambique
NANamibiaNCNew CaledoniaNENiger
NFNorfolk IslandNGNigeriaNINicaragua
NLNetherlandsNONorwayNPNepal
NRNauruNUNiueNZNew Zealand
OMOmanPAPanamaPEPeru
PFFrench PolynesiaPGPapua New GuineaPHPhilippines
PKPakistanPLPolandPMSaint Pierre and Miquelon
PNPitcairn IslandsPRPuerto RicoPSPalestine
PTPortugalPWPalauPYParaguay
QAQatarRERéunionRORomania
RSSerbiaRURussiaRWRwanda
SASaudi ArabiaSBSolomon IslandsSCSeychelles
SDSudanSESwedenSGSingapore
SHSaint HelenaSISloveniaSJSvalbard and Jan Mayen
SKSlovakiaSLSierra LeoneSMSan Marino
SNSenegalSOSomaliaSRSuriname
SSSouth SudanSTSão Tomé and PríncipeSVEl Salvador
SXSaint Martin, Dutch partSYSyriaSZEswatini
TCTurks and Caicos IslandsTDChadTFFrench Southern Territories
TGTogoTHThailandTJTajikistan
TKTokelauTLTimor-LesteTMTurkmenistan
TNTunisiaTOTongaTRTurkey
TTTrinidad and TobagoTVTuvaluTWTaiwan
TZTanzaniaUAUkraineUGUganda
UMUnited States Minor Outlying IslandsUSUnited StatesUYUruguay
UZUzbekistanVAVaticanVCSaint Vincent and the Grenadines
VEVenezuelaVGBritish Virgin IslandsVIUnited States Virgin Islands
VNVietnamVUVanuatuWFWallis and Futuna
WSSamoaYEYemenYTMayotte
ZASouth AfricaZMZambiaZWZimbabwe

The Alpha-2 format overwhelmingly dominates. It is the shortest and most visual. It is used for license plates or internet extensions.

Alpha-3 facilitates complex sorting. It mainly limits the risks of visual confusion between nations.

The numeric code ignores alphabets. It is perfect for non-Latin computer systems.

Format definitions

Alpha-2: Two-letter codes, the most common (e.g. FR, DE, US).

Alpha-3: Three-letter codes for better visual identification (e.g. FRA, DEU, USA).

Numeric: Three-digit codes, independent of alphabets (e.g. 250, 276, 840).

Role of ISO and the UN in maintenance

ISO does not work alone. It relies on the UN lists. The two entities collaborate to validate.

The entry criteria are strict. A territory must be a member state or a recognized entity. Political sovereignty remains the main lever.

A specific maintenance agency ensures consistency. Its work is purely technical. It avoids duplicates in the directory.

ISO cultivates an absolute neutrality. It follows diplomatic developments without ever taking sides. The update is therefore constant.

Directory of country codes from A to L

After understanding the workings of the standard, it is time to consult the concrete list of identified nations.

Alphabetical list of nations from Afghanistan to Guyana

This first part covers a wide geographical diversity. It includes economic powers and emerging nations. Alphabetical rigor facilitates research.

  • AF for Afghanistan
  • BR for Brazil
  • CA for Canada
  • FR for France
  • DE for Germany
  • GR for Greece

Note that some codes seem obvious. Others require verification because they rely on the local name. The logic is not always intuitive.

Recall the importance of checking for potential duplicates. Each code is unique worldwide. No confusion is allowed by the system.

Focus on dependent territories and isolated islands

Dependent territories have their own codes. The Cayman Islands use KY even though they are linked to the United Kingdom. Åland has the code AX despite its attachment to Finland. This autonomy facilitates customs management.

Logistics information

KY for the Cayman Islands, AX for the Åland Islands. These codes exist independently of their sovereign states (United Kingdom and Finland) to facilitate customs and logistics.

Explain the status of these entities. They are not sovereign states. Yet, their geographical remoteness justifies a separate identification in the ISO standard.

This allows for precise statistics. Local trade gains international visibility.

ISO thus recognizes complex territorial realities. It is a necessary pragmatism.

Special cases of entities not recognized by the UN

ISO coding sometimes goes beyond the strict framework of UN recognition to meet global technical and postal requirements.

Address disputed status areas. ISO tries to remain technical to avoid diplomatic crises. It sometimes uses temporarily reserved codes.

Specify that the absence of a code can block an economy. Companies need identifiers for their software. It is a matter of survival.

Conclude on the complexity of these cases. Each case is studied by legal experts. The *final decision often takes years*.

Continuation of the official listing from M to Z

The list continues with the second half of the alphabet, where codes essential to the web are hidden.

Country codes from Madagascar to Zimbabwe

This section groups major players on the international scene. The codes here are massively used in financial transactions. Precision remains essential for each entry.

  • MG for Madagascar
  • US for United States
  • VN for Vietnam
  • ZA for South Africa
  • CH for Switzerland
  • SE for Sweden

Note the use of the US code. It is probably the most requested code in global databases. Its stability is strategic for the web.

Mention the case of Zimbabwe (ZW). It is the end of the alphabetical directory. The loop is closed for sovereign nations.

Meaning of special codes XX and ZZ

The codes XX and ZZ do not designate any real country. They serve as backup variables in computer systems. XX is often used for an unknown or unspecified country. This prevents crashes during data imports.

Define the role of ZZ. This code identifies multiple entities or international zones. It is sometimes encountered in specific customs documents.

These codes are called “reserved”. They belong to private or temporary use.

Do not confuse them with real countries. They are purely utilitarian.

Differences between common names and standardized official names

The common name of a country often misleads the user. ISO uses official names that are sometimes very long. Standardization imposes a strict semantic rigor.

Give the example of Switzerland. Its code CH comes from “Confederatio Helvetica”. This Latin name guarantees neutrality among the four national languages of the country.

Refer to South Korea. Officially, it is the “Republic of Korea”. The KR code reflects this diplomatic denomination.

Conclude on the importance of consulting the official list. Never rely solely on your linguistic intuition.

How are code changes managed?

Geopolitics is fluid, and the ISO standard must adapt to borders that move or disappear.

Update mechanisms during a state dissolution

When a state disappears, its code is deleted. But this deletion is not immediate. Time must be allowed for archives to adapt.

Recall the case of the USSR. The code SU persisted long after 1991. It is now classified as a historical code in the registers.

Let’s mention Czechoslovakia (CS). Its partition gave rise to CZ and SK. The old code became obsolete instantly.

These withdrawals avoid legal confusions. A dead code must never be reassigned too quickly.

Meaning of reserved and transitional codes

Some codes are put “on reserve.” This means they cannot be used for new countries. This transition period often lasts fifty years. It allows for handling paper documents still in circulation.

Let’s define exceptional reservations. They concern international organizations or particular postal uses. These codes do not appear in the standard public list.

Managing code stocks is crucial. It prevents a shortage of combinations.

It is an alphabet logistics. Every letter counts for the future.

Table of recent geopolitical changes

The last ten years have seen several major adjustments. These changes directly impact developers and logisticians. Here is a summary of the most notable developments.

Former Territory New Code Date Cause of change
South Sudan SS 2011 Independence
Netherlands Antilles AN (removed) 2010 Dissolution
East Timor TL 2002 Independence
North Macedonia MK 2019 Renaming

Note that software updates are imperative. Ignoring these changes causes form validation errors.

3 advantages of Alpha-2 for web development

Beyond geography, the Alpha-2 code has become a powerful technical tool to structure the modern internet.

Use of codes for top-level domains

Extensions like .fr, .be, or .ca do not come out of nowhere. They correspond exactly to the ISO Alpha-2 codes. This is the basis of the ccTLD system.

IANA uses the ISO standard to assign national extensions. This guarantees global consistency between the address and the country. The web’s hierarchy rests on this foundation.

Some historical domains do not follow ISO. But the general rule remains the two-letter standard. This is the case for the majority of territories.

This structure facilitates navigation. The internet user immediately identifies the geographical origin of a website. It is an instant visual landmark for everyone.

Database configuration and form validation

Storing a country name as plain text is a beginner’s mistake. You must use the Alpha-2 code as a primary key or index. This reduces storage space and speeds up complex SQL queries.

SQL optimization

Use CHAR(2) for storage in an SQL database to save space and improve indexing speed compared to variable-length character strings.

Here are the best practices for your data structures:

  • Use CHAR(2) for the column type
  • Index the country column
  • Create a mapping table
  • Validate via a regular expression

Validation becomes child’s play. A simple whitelist is enough to filter entries.

This way, you avoid typos. The data remains clean and usable.

Simplification of the international user experience

The Alpha-2 code allows detecting the user’s language. By cross-referencing the IP address and the country code, the site adapts automatically. It is the pillar of localization.

Specific currencies or shipping fees can be displayed. The country code becomes a trigger for features. Content personalization depends directly on it.

The systematic use of ISO codes drastically reduces friction during checkout on international e-commerce sites.

The user feels at home. Trust in the site increases mechanically. It is an undeniable gain in reading comfort.

Links with currencies and administrative subdivisions

The country code is only the tip of the iceberg; it serves as the root for other crucial international standards.

ISO 3166-2 standard and internal territorial division

The ISO 3166-2 standard extends the country code. It allows coding regions, provinces, or departments. It is surgical precision for logistics.

A suffix is added to the Alpha-2 code. For example, FR-75 designates Paris within the French nomenclature. The structure varies according to nations.

Carriers use these subdivisions to calculate tariff zones. It is an indispensable standardization. It prevents postal routing errors.

Each country manages its own subdivisions. ISO simply centralizes this data worldwide. This ensures constant updating.

Correspondence with the ISO 4217 currency standard

There is a direct link between the country and its currency. The ISO 4217 standard often takes the first two letters of the country. Thus, the Japanese Yen becomes JPY, combining JP and the letter Y. It is an unyielding logic.

Formation example

Japan: JP (Country) + Y (Yen) = JP (Country) + Y (Yen) = JPY. Australia: AU (Country) + D (Dollar) = AUD. Switzerland: CH (Country) + F (Franc) = CHF.

The first two letters clearly indicate the origin. The third letter defines the currency unit itself. This is the case for USD or AUD.

The Euro (EUR) is an exception. It represents a union and not a single country.

This harmonization facilitates transactions. The risk of exchange errors decreases. Banks instantly identify the source of funds.

Use in passports and telephone codes

The machine-readable zones of passports incorporate Alpha-3 codes to ensure instant identification at borders.

Dialing codes like +33 are not managed by ISO. It is the ITU that handles global numbering. Do not confuse the two systems.

Telephony has technical needs different from pure computing. Both are complementary. They coexist to streamline global exchanges.

From your pocket to your screen, the country code governs your daily interactions. It remains the invisible pillar of our global digital identity.

Field of application Associated standard Main use
Subdivisions ISO 3166-2 Logistics and regions
Currencies ISO 4217 Banking transactions
Identity ICAO 9303 Passports (MRZ)

The ISO 3166-1 standard secures your global exchanges by standardizing 249 territories. By integrating these two-letter country identifiers into your databases, you ensure the reliability of your forms and logistics. Adopt this universal language now to guarantee the interoperability of your future digital systems.

FAQ

What is a 2-letter country code and what is it used for?

The 2-letter country code, officially called ISO 3166-1 Alpha-2, is an international standard used to uniquely identify each nation or territory. This short format is favored for its conciseness and clarity in global computer systems.

It is found everywhere in our digital daily life, notably as a basis for internet domain name extensions (ccTLD) such as .fr or .be, but also for banking transactions and the logistical tracking of international parcels.

What is the difference between Alpha-2, Alpha-3, and numeric formats?

The Alpha-2 format uses two letters and remains the most widespread for general use and the web. The Alpha-3 format, composed of three letters, allows a simpler visual association with the country name (like FRA for France), while the three-digit numeric code is ideal for systems not using the Latin alphabet.

Each version meets specific needs: brevity for Alpha-2, readability for Alpha-3, and technical universality for the numeric code, thus ensuring that no language barrier blocks data exchanges.

What do the special country codes XX and ZZ correspond to?

The codes XX and ZZ are reserved identifiers that do not designate any real sovereign state. The code XX is generally used to signify an “unknown country,” while the code ZZ is used to represent “multiple countries” or unspecified international areas.

These codes serve as fallback variables in databases to avoid system errors. They allow processing information whose geographic origin is undetermined or concerns multiple entities simultaneously without interrupting the data flow.

How are ISO codes updated during geopolitical changes?

When a country changes its name or borders, the ISO maintenance agency (ISO 3166/MA) intervenes to update the directory. If a state is dissolved, its former code is removed and often placed in the ISO 3166-3 list, dedicated to historical codes, to avoid any confusion with new entities.

To ensure the stability of global archives, a deleted code is not immediately reassigned. A transition period is observed, allowing administrations and companies to update their software and paper documents without risk of duplication.

Is there a link between the country code and international currencies?

Absolutely, there is a close correlation governed by the ISO 4217 standard. Most currency codes use the Alpha-2 country code as a root, complemented by a third letter designating the monetary unit. For example, for Japan, the code JP becomes JPY for the Yen.

This logical structure greatly facilitates international financial transactions. It allows banking systems to instantly identify which geographic area and currency a transaction is linked to, thus limiting conversion errors.

Lire aussi :  Where is Malta located?

Nos autres articles

Leave a Comment