2ClickKit

ISO 3166-1 Country Code Directory & Batch Converter

Files Never Leave Your Device

Comprehensive reference for 249 ISO 3166-1 country codes: Alpha-2, Alpha-3, and Numeric-3 with currency, dialing prefixes, and instant dataset export.

ISO 3166-1 Country Code Directory & Batch Validator

Search Alpha-2, Alpha-3, and Numeric-3 country codes, validate payment ISO standards, and batch-convert country lists.

Alpha-2Alpha-3NumericCountry NameRegionDialingCurrencyAction
AFAFG004AfghanistanAsia+93AFN
ALALB008AlbaniaEurope+355ALL
DZDZA012AlgeriaAfrica+213DZD
ASASM016American SamoaOceania+1-684USD
ADAND020AndorraEurope+376EUR
AOAGO024AngolaAfrica+244AOA
AIAIA660AnguillaAmericas+1-264XCD
AQATA010AntarcticaAntarctica+672N/A
AGATG028Antigua and BarbudaAmericas+1-268XCD
ARARG032ArgentinaAmericas+54ARS
AMARM051ArmeniaAsia+374AMD
AWABW533ArubaAmericas+297AWG
AUAUS036AustraliaOceania+61AUD
ATAUT040AustriaEurope+43EUR
AZAZE031AzerbaijanAsia+994AZN
BSBHS044BahamasAmericas+1-242BSD
BHBHR048BahrainAsia+973BHD
BDBGD050BangladeshAsia+880BDT
BBBRB052BarbadosAmericas+1-246BBD
BYBLR112BelarusEurope+375BYN
BEBEL056BelgiumEurope+32EUR
BZBLZ084BelizeAmericas+501BZD
BJBEN204BeninAfrica+229XOF
BMBMU060BermudaAmericas+1-441BMD
BTBTN064BhutanAsia+975BTN
BOBOL068BoliviaAmericas+591BOB
BABIH070Bosnia and HerzegovinaEurope+387BAM
BWBWA072BotswanaAfrica+267BWP
BRBRA076BrazilAmericas+55BRL
BNBRN096Brunei DarussalamAsia+673BND
BGBGR100BulgariaEurope+359BGN
BFBFA854Burkina FasoAfrica+226XOF
BIBDI108BurundiAfrica+257BIF
CVCPV132Cabo VerdeAfrica+238CVE
KHKHM116CambodiaAsia+855KHR
CMCMR120CameroonAfrica+237XAF
CACAN124CanadaAmericas+1CAD
KYCYM136Cayman IslandsAmericas+1-345KYD
CFCAF140Central African RepublicAfrica+236XAF
TDTCD148ChadAfrica+235XAF
CLCHL152ChileAmericas+56CLP
CNCHN156ChinaAsia+86CNY
COCOL170ColombiaAmericas+57COP
CRCRI188Costa RicaAmericas+506CRC
HRHRV191CroatiaEurope+385EUR
CUCUB192CubaAmericas+53CUP
CYCYP196CyprusAsia+357EUR
CZCZE203CzechiaEurope+420CZK
DKDNK208DenmarkEurope+45DKK
DODOM214Dominican RepublicAmericas+1-809DOP
ECECU218EcuadorAmericas+593USD
EGEGY818EgyptAfrica+20EGP
SVSLV222El SalvadorAmericas+503USD
EEEST233EstoniaEurope+372EUR
ETETH231EthiopiaAfrica+251ETB
FIFIN246FinlandEurope+358EUR
FRFRA250FranceEurope+33EUR
DEDEU276GermanyEurope+49EUR
GHGHA288GhanaAfrica+233GHS
GRGRC300GreeceEurope+30EUR
GTGTM320GuatemalaAmericas+502GTQ
HNHND340HondurasAmericas+504HNL
HKHKG344Hong KongAsia+852HKD
HUHUN348HungaryEurope+36HUF
ISISL352IcelandEurope+354ISK
ININD356IndiaAsia+91INR
IDIDN360IndonesiaAsia+62IDR
IEIRL372IrelandEurope+353EUR
ILISR376IsraelAsia+972ILS
ITITA380ItalyEurope+39EUR
JMJAM388JamaicaAmericas+1-876JMD
JPJPN392JapanAsia+81JPY
JOJOR400JordanAsia+962JOD
KZKAZ398KazakhstanAsia+7KZT
KEKEN404KenyaAfrica+254KES
KRKOR410Korea (Republic of)Asia+82KRW
KWKWT414KuwaitAsia+965KWD
LVLVA428LatviaEurope+371EUR
LBLBN422LebanonAsia+961LBP
LTLTU440LithuaniaEurope+370EUR
LULUX442LuxembourgEurope+352EUR
MYMYS458MalaysiaAsia+60MYR
MVMDV462MaldivesAsia+960MVR
MTMLT470MaltaEurope+356EUR
MXMEX484MexicoAmericas+52MXN
MCMCO492MonacoEurope+377EUR
MAMAR504MoroccoAfrica+212MAD
NLNLD528NetherlandsEurope+31EUR
NZNZL554New ZealandOceania+64NZD
NGNGA566NigeriaAfrica+234NGN
NONOR578NorwayEurope+47NOK
OMOMN512OmanAsia+968OMR
PKPAK586PakistanAsia+92PKR
PAPAN591PanamaAmericas+507PAB
PEPER604PeruAmericas+51PEN
PHPHL608PhilippinesAsia+63PHP
PLPOL616PolandEurope+48PLN
PTPRT620PortugalEurope+351EUR
QAQAT634QatarAsia+974QAR
ROROU642RomaniaEurope+40RON
SASAU682Saudi ArabiaAsia+966SAR
SGSGP702SingaporeAsia+65SGD
ZAZAF710South AfricaAfrica+27ZAR
ESESP724SpainEurope+34EUR
SESWE752SwedenEurope+46SEK
CHCHE756SwitzerlandEurope+41CHF
TWTWN158TaiwanAsia+886TWD
THTHA764ThailandAsia+66THB
TRTUR792TurkeyAsia+90TRY
UAUKR804UkraineEurope+380UAH
AEARE784United Arab EmiratesAsia+971AED
GBGBR826United KingdomEurope+44GBP
USUSA840United States of AmericaAmericas+1USD
UYURY858UruguayAmericas+598UYU
UZUZB860UzbekistanAsia+998UZS
VUVUT548VanuatuOceania+678VUV
VAVAT336Vatican CityEurope+39-06EUR
VEVEN862VenezuelaAmericas+58VES
VNVNM704Viet NamAsia+84VND
YEYEM887YemenAsia+967YER
ZMZMB894ZambiaAfrica+260ZMW
ZWZWE716ZimbabweAfrica+263ZWL

Technical Architecture of the ISO 3166 Country Code Standard

In modern distributed software, database architecture, and global payment interchange, representing geographic entities unambiguously is fundamental. A customer address written in local script or colloquial spelling (e.g., "Holland" vs "The Netherlands" vs "Nederland") causes database fragmentation, shipping delivery failures, and compliance reconciliation delays.

To establish a universal machine-readable taxonomy, the International Organization for Standardization promulgated ISO 3166: Codes for the Representation of Names of Countries and Their Subdivisions in 1974. Today, ISO 3166-1 is the global authority governing international banking (SWIFT, IBAN), card payment networks (EMV, Visa, Mastercard), customs declaration systems, and Internet governance (IANA ccTLDs).

The Three Code Representations of ISO 3166-1

ISO 3166-1 specifies three parallel coding representations for each of the 249 officially recognized nations and dependent territories:

Format Name Length / Structure Primary Technical Applications Example (United States)
Alpha-2 2 characters (ASCII letters) DNS ccTLDs, IBAN prefixes, SWIFT BIC codes, ISO 639-1 locale regional subtags (e.g. en-US), W3C HTML lang attributes. US
Alpha-3 3 characters (ASCII letters) Machine-Readable Travel Documents (MRTDs per ICAO Doc 9303), passports, international cargo manifests, Olympic IOC codes. USA
Numeric-3 3 decimal digits (000–899) Mainframe databases, legacy payment protocols (ISO 8583), EMV chip card tags (Tag 9F1A, Tag 5F28), UN M49 statistical clustering. 840

ISO 3166-1 in Global FinTech and Payment Protocols

In financial software engineering, ISO 3166-1 is deeply integrated into transactional security, fraud detection, and regulatory sanction screening:

  1. International Bank Account Numbers (IBAN): Codified in ISO 13616, every IBAN begins with the 2-letter ISO 3166-1 Alpha-2 country code of the financial institution (e.g., GB for United Kingdom, DE for Germany, FR for France) followed by two Modulo 97 check digits and the domestic Basic Bank Account Number (BBAN).
  2. SWIFT / BIC Routing: Under ISO 9362, the Business Identifier Code (BIC) consists of 8 or 11 characters. Positions 5 and 6 are strictly reserved for the ISO 3166-1 Alpha-2 country code (e.g., CHASUS33 where US designates United States).
  3. EMV Chip Cross-Border Fee Evaluation: When an EMV chip card is inserted into a POS terminal, the terminal reads Tag 5F28 (Issuer Country Code) from the card and pairs it with Tag 9F1A (Terminal Country Code). If both values equal 0840, the transaction is processed as domestic. If Tag 5F28 is 0826 (United Kingdom) and Tag 9F1A is 0840, the acquiring switch dynamically routes the transaction through cross-border settlement rails and applies international currency conversion surcharges.
  4. OFAC and AML Sanctions Screening: Anti-Money Laundering (AML) filtering engines validate transaction participant addresses against Office of Foreign Assets Control (OFAC) restricted jurisdiction lists by mapping ISO 3166-1 Alpha-2 and Alpha-3 codes.

UN M49 and the Geographic Hierarchy

The numeric-3 codes in ISO 3166-1 are developed in direct conjunction with the United Nations Statistics Division under the UN M49 standard (Standard Country or Area Codes for Statistical Use).

The UN M49 system organizes the globe into a deterministic hierarchical tree:

World (001)
  ├── Americas (019)
  │    ├── Northern America (021) -> USA (840), Canada (124), Bermuda (060)
  │    └── Latin America and the Caribbean (419)
  │         ├── South America (005) -> Brazil (076), Argentina (032)
  │         └── Central America (013) -> Mexico (484), Panama (591)
  ├── Europe (150)
  │    ├── Western Europe (155) -> Germany (276), France (250)
  │    └── Northern Europe (154) -> United Kingdom (826), Sweden (752)
  └── Asia (142)
       ├── Eastern Asia (030) -> Japan (392), China (156)
       └── Southern Asia (034) -> India (356), Pakistan (586)

Because numeric codes are completely language-independent and do not rely on the Latin alphabet, they are impervious to character set transliteration bugs (such as UTF-8 vs ISO-8859 encoding issues) in international data exchanges.

User-Assigned Code Ranges for Private Networks

Under ISO 3166-1 Section 8.1.3, software engineers who require proprietary codes for international waters, supranational corporations, or testing environments may freely use reserved user-assigned ranges: Alpha-2 codes AA, QM–QZ, XA–XZ, and ZZ; and Numeric codes 900–999. The ISO/MA guarantees that these code blocks will never be assigned to any real-world country.

ISO 3166-2: National Subdivision Codes

While ISO 3166-1 handles sovereign countries and autonomous territories, ISO 3166-2 standardizes sub-national administrative divisions (states, provinces, departments, regions, or prefectures).

An ISO 3166-2 code consists of the parent country ISO 3166-1 Alpha-2 code, a hyphen, and up to three alphanumeric characters:

  • US-CA: California, United States
  • US-NY: New York, United States
  • CA-ON: Ontario, Canada
  • GB-ENG: England, United Kingdom
  • DE-BY: Bavaria (Bayern), Germany
  • JP-13: Tokyo Prefecture, Japan

Best Practices for Database Schema Design

When storing country data in relational database management systems (PostgreSQL, MySQL, SQL Server), software architects should follow strict schema constraints:

CREATE TABLE countries (
  alpha2 CHAR(2) PRIMARY KEY,
  alpha3 CHAR(3) NOT NULL UNIQUE,
  numeric CHAR(3) NOT NULL UNIQUE,
  name VARCHAR(100) NOT NULL,
  official_name VARCHAR(150) NOT NULL,
  region VARCHAR(50) NOT NULL,
  currency_code CHAR(3) REFERENCES currencies(code),
  calling_code VARCHAR(10) NOT NULL
);

-- Crucial: Store numeric codes as CHAR(3) rather than INT
-- to preserve leading zeroes (e.g. '036' for Australia, '076' for Brazil)!

How to Use ISO 3166 Country Code Lookup

  1. Search by Code or Country Name

    Filter 249 nations and territories by two-letter Alpha-2 (e.g. US), three-letter Alpha-3 (USA), or numeric code (840).

  2. Inspect Financial & Geographical Metadata

    Review official sovereign names, continental regions, capital cities, international calling prefixes, ccTLDs, and ISO 4217 currencies.

  3. Batch Convert & Export

    Switch to the Batch Code Converter tab to resolve lists of mixed codes simultaneously or download the complete database as JSON or CSV.

Authoritative ISO 3166-1 Lookup Example

Country Query
Japan / JPN / 392
Resolved ISO 3166 Tuple
Alpha-2: JP | Alpha-3: JPN | Numeric: 392 | Currency: JPY | Dialing: +81 | Capital: Tokyo

Matched deterministically in browser RAM with instant CSV/JSON export capability.

Technical Specifications

  • Supported Inputs: Alpha-2 Codes (e.g. US, GB, DE), Alpha-3 Codes (e.g. USA, GBR, DEU), Numeric-3 Codes (e.g. 840, 826, 276), JSON & CSV Tabular Datasets
  • Input Limit: Complete 249 ISO 3166-1 sovereign nations and territories
  • Processing Engine: 100% In-Browser (Instant Memory Search + Batch Conversion Engine)
  • Content Uploads: None (Your files and text are processed locally on your device with zero uploads)

Privacy & Security Guarantee

Your Geopolitical country codes, currencies, and dialing metadata are processed entirely in your web browser's memory using native client-side web technologies. Unlike traditional cloud tools, your content is never uploaded to remote servers, stored on external disks, or analyzed by third parties.

2ClickKit In-Browser vs Traditional Cloud Tools

Feature 2ClickKit (In-Browser) Traditional Cloud Services
Data Privacy Files never leave your local device Uploaded to remote servers and third-party clouds
Processing Speed Instant local execution (0ms upload time) Constrained by internet upload & server processing queues
Account & Costs 100% Free with zero registration or paywalls Tiered subscriptions, limits, or forced sign-ups

Best Practices & Tips

  • In SQL databases, always store ISO Alpha-2 as CHAR(2) and Numeric as CHAR(3) with leading zeroes preserved.
  • When formatting EMV Tag 9F1A or 5F28, pad 3-digit numeric codes with a leading zero to form 2 packed hexadecimal bytes (e.g., 840 becomes 0x0840).
  • For cross-border payment compliance, verify that your checkout country select dropdown matches ISO 3166-1 official entries.

Frequently Asked Questions

What is the ISO 3166 standard and what are its parts?

ISO 3166 is an international standard published by the International Organization for Standardization (ISO) that defines codes for the representation of names of countries and their subdivisions. It is divided into three parts: ISO 3166-1 (codes for countries and dependent territories, containing Alpha-2, Alpha-3, and Numeric-3 representations); ISO 3166-2 (principal subdivisions such as states, provinces, or cantons, e.g., US-CA for California); and ISO 3166-3 (formerly used country codes deleted from ISO 3166-1 since 1974).

What is the difference between Alpha-2, Alpha-3, and Numeric-3 codes?

ISO 3166-1 Alpha-2 consists of two-letter combinations (e.g., DE for Germany, FR for France) and is the most ubiquitous format, used in Internet country-code top-level domains (ccTLDs), SWIFT BIC prefixes, and IBAN bank account identifiers. ISO 3166-1 Alpha-3 uses three-letter codes (e.g., DEU, FRA) providing higher visual recognition in passports and international logistics. ISO 3166-1 Numeric-3 uses 3-digit numerals (e.g., 276, 250), identical to United Nations UN M49 statistics, and is immune to scripts and alphabetic character encoding issues in mainframe computers and EMV chip cards.

How are ISO 3166-1 numeric codes used in credit cards and EMV chips?

In financial payment standards, EMV smart cards store the issuing bank country in Tag 5F28 (Issuer Country Code) and POS terminals report Tag 9F1A (Terminal Country Code) as 3-digit packed BCD numeric codes (e.g., 0840 for the United States, 0826 for the United Kingdom). When an authorization request arrives at a payment processor, the host compares Tag 5F28 against Tag 9F1A: matching codes process as domestic interchange, while mismatching codes trigger international cross-border interchange rates and currency conversion fees.

Are Internet top-level domains (ccTLDs) identical to ISO 3166-1 Alpha-2?

Almost universally yes. The Internet Assigned Numbers Authority (IANA) bases national country code top-level domains directly on the ISO 3166-1 Alpha-2 standard. The primary historical exception is the United Kingdom, whose ISO 3166-1 Alpha-2 code is GB, but whose primary ccTLD is .uk (though .gb remains reserved). Another historical exception was the Soviet Union (.su), which persists alongside Russia (.ru).

How does ISO 3166 handle disputed territories and international waters?

The ISO 3166 Maintenance Agency (ISO 3166/MA) does not establish geopolitical sovereignty. Instead, it sources country names and territorial boundaries directly from the United Nations Terminology Bulletin and the UN Statistics Division (UN M49 standard). If a territory is recognized by the United Nations as an independent country or distinct geographical entity, the ISO/MA assigns a code element.

What are user-assigned code elements in ISO 3166-1?

To allow private enterprises, financial switches, and proprietary applications to define custom territories without conflicting with official codes, ISO 3166-1 reserves specific blocks: Alpha-2 codes AA, QM through QZ, XA through XZ, and ZZ; Alpha-3 codes AAA through AAZ, QMA through QZZ, XAA through XZZ, and ZZA through ZZZ; and Numeric codes 900 through 999. These user-assigned codes are guaranteed never to be assigned to any sovereign nation.

Can I export the complete ISO 3166-1 database for my application?

Yes. 2ClickKit allows instantaneous client-side download of the complete 249-country ISO 3166-1 database in either JSON or CSV format. The data includes Alpha-2, Alpha-3, Numeric codes, official names, continental regions, capital cities, calling codes, and ISO 4217 currency mappings with zero usage restrictions.