Skip to content

Instantly share code, notes, and snippets.

@myersjustinc
Created May 25, 2012 19:48
Show Gist options
  • Save myersjustinc/2790146 to your computer and use it in GitHub Desktop.
Save myersjustinc/2790146 to your computer and use it in GitHub Desktop.
ISO 3166 country codes
{
"AF": "Afghanistan",
"AX": "\u00c5land Islands",
"AL": "Albania",
"DZ": "Algeria",
"AS": "American Samoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
"AG": "Antigua and Barbuda",
"AR": "Argentina",
"AM": "Armenia",
"AW": "Aruba",
"AU": "Australia",
"AT": "Austria",
"AZ": "Azerbaijan",
"BS": "Bahamas",
"BH": "Bahrain",
"BD": "Bangladesh",
"BB": "Barbados",
"BY": "Belarus",
"BE": "Belgium",
"BZ": "Belize",
"BJ": "Benin",
"BM": "Bermuda",
"BT": "Bhutan",
"BO": "Bolivia (Plurinational State of)",
"BQ": "Bonaire, Sint Eustatius and Saba",
"BA": "Bosnia and Herzegovina",
"BW": "Botswana",
"BV": "Bouvet Island",
"BR": "Brazil",
"IO": "British Indian Ocean Territory",
"BN": "Brunei Darussalam",
"BG": "Bulgaria",
"BF": "Burkina Faso",
"BI": "Burundi",
"KH": "Cambodia",
"CM": "Cameroon",
"CA": "Canada",
"CV": "Cape Verde",
"KY": "Cayman Islands",
"CF": "Central African Republic",
"TD": "Chad",
"CL": "Chile",
"CN": "China",
"CX": "Christmas Island",
"CC": "Cocos (Keeling) Islands",
"CO": "Colombia",
"KM": "Comoros",
"CG": "Congo",
"CD": "Democratic Republic of the Congo",
"CK": "Cook Islands",
"CR": "Costa Rica",
"CI": "C\u00f4te D'ivoire",
"HR": "Croatia",
"CU": "Cuba",
"CW": "Cura\u00e7ao",
"CY": "Cyprus",
"CZ": "Czech Republic",
"DK": "Denmark",
"DJ": "Djibouti",
"DM": "Dominica",
"DO": "Dominican Republic",
"EC": "Ecuador",
"EG": "Egypt",
"SV": "El Salvador",
"GQ": "Equatorial Guinea",
"ER": "Eritrea",
"EE": "Estonia",
"ET": "Ethiopia",
"FK": "Falkland Islands (Malvinas)",
"FO": "Faeroe Islands",
"FJ": "Fiji",
"FI": "Finland",
"FR": "France",
"GF": "French Guiana",
"PF": "French Polynesia",
"TF": "French Southern Territories",
"GA": "Gabon",
"GM": "Gambia",
"GE": "Georgia",
"DE": "Germany",
"GH": "Ghana",
"GI": "Gibraltar",
"GR": "Greece",
"GL": "Greenland",
"GD": "Grenada",
"GP": "Guadeloupe",
"GU": "Guam",
"GT": "Guatemala",
"GG": "Guernsey",
"GN": "Guinea",
"GW": "Guinea-Bissau",
"GY": "Guyana",
"HT": "Haiti",
"HM": "Heard Island and Mcdonald Islands",
"VA": "Holy See",
"HN": "Honduras",
"HK": "China, Hong Kong Special Administrative Region",
"HU": "Hungary",
"IS": "Iceland",
"IN": "India",
"ID": "Indonesia",
"IR": "Iran (Islamic Republic of)",
"IQ": "Iraq",
"IE": "Ireland",
"IM": "Isle Of Man",
"IL": "Israel",
"IT": "Italy",
"JM": "Jamaica",
"JP": "Japan",
"JE": "Jersey",
"JO": "Jordan",
"KZ": "Kazakhstan",
"KE": "Kenya",
"KI": "Kiribati",
"KP": "Democratic People's Republic of Korea",
"KR": "Republic of Korea",
"KW": "Kuwait",
"KG": "Kyrgyzstan",
"LA": "Lao People's Democratic Republic",
"LV": "Latvia",
"LB": "Lebanon",
"LS": "Lesotho",
"LR": "Liberia",
"LY": "Libya",
"LI": "Liechtenstein",
"LT": "Lithuania",
"LU": "Luxembourg",
"MO": "China, Macao Special Administrative Region",
"MK": "The former Yugoslav Republic of Macedonia",
"MG": "Madagascar",
"MW": "Malawi",
"MY": "Malaysia",
"MV": "Maldives",
"ML": "Mali",
"MT": "Malta",
"MH": "Marshall Islands",
"MQ": "Martinique",
"MR": "Mauritania",
"MU": "Mauritius",
"YT": "Mayotte",
"MX": "Mexico",
"FM": "Micronesia (Federated States of)",
"MD": "Republic of Moldova",
"MC": "Monaco",
"MN": "Mongolia",
"ME": "Montenegro",
"MS": "Montserrat",
"MA": "Morocco",
"MZ": "Mozambique",
"MM": "Myanmar",
"NA": "Namibia",
"NR": "Nauru",
"NP": "Nepal",
"NL": "Netherlands",
"NC": "New Caledonia",
"NZ": "New Zealand",
"NI": "Nicaragua",
"NE": "Niger",
"NG": "Nigeria",
"NU": "Niue",
"NF": "Norfolk Island",
"MP": "Northern Mariana Islands",
"NO": "Norway",
"OM": "Oman",
"PK": "Pakistan",
"PW": "Palau",
"PS": "Occupied Palestinian Territory",
"PA": "Panama",
"PG": "Papua New Guinea",
"PY": "Paraguay",
"PE": "Peru",
"PH": "Philippines",
"PN": "Pitcairn",
"PL": "Poland",
"PT": "Portugal",
"PR": "Puerto Rico",
"QA": "Qatar",
"RE": "R\u00e9union",
"RO": "Romania",
"RU": "Russian Federation",
"RW": "Rwanda",
"BL": "Saint-Barth\u00e9lemy",
"SH": "Saint Helena",
"KN": "Saint Kitts and Nevis",
"LC": "Saint Lucia",
"MF": "Saint-Martin (French Part)",
"PM": "Saint Pierre and Miquelon",
"VC": "Saint Vincent and The Grenadines",
"WS": "Samoa",
"SM": "San Marino",
"ST": "Sao Tome and Principe",
"SA": "Saudi Arabia",
"SN": "Senegal",
"RS": "Serbia",
"SC": "Seychelles",
"SL": "Sierra Leone",
"SG": "Singapore",
"SX": "Sint Maarten (Dutch part)",
"SK": "Slovakia",
"SI": "Slovenia",
"SB": "Solomon Islands",
"SO": "Somalia",
"ZA": "South Africa",
"GS": "South Georgia and the South Sandwich Islands",
"SS": "South Sudan",
"ES": "Spain",
"LK": "Sri Lanka",
"SD": "Sudan",
"SR": "Suriname",
"SJ": "Svalbard and Jan Mayen Islands",
"SZ": "Swaziland",
"SE": "Sweden",
"CH": "Switzerland",
"SY": "Syrian Arab Republic",
"TW": "Taiwan, Province of China",
"TJ": "Tajikistan",
"TZ": "United Republic of Tanzania",
"TH": "Thailand",
"TL": "Timor-Leste",
"TG": "Togo",
"TK": "Tokelau",
"TO": "Tonga",
"TT": "Trinidad and Tobago",
"TN": "Tunisia",
"TR": "Turkey",
"TM": "Turkmenistan",
"TC": "Turks and Caicos Islands",
"TV": "Tuvalu",
"UG": "Uganda",
"UA": "Ukraine",
"AE": "United Arab Emirates",
"GB": "United Kingdom of Great Britain and Northern Ireland",
"US": "United States of America",
"UM": "United States Minor Outlying Islands",
"UY": "Uruguay",
"UZ": "Uzbekistan",
"VU": "Vanuatu",
"VE": "Venezuela (Bolivarian Republic of)",
"VN": "Viet Nam",
"VG": "British Virgin Islands",
"VI": "United States Virgin Islands",
"WF": "Wallis and Futuna Islands",
"EH": "Western Sahara",
"YE": "Yemen",
"ZM": "Zambia",
"ZW": "Zimbabwe"
}
{
"AFG": "Afghanistan",
"ALA": "\u00c5land Islands",
"ALB": "Albania",
"DZA": "Algeria",
"ASM": "American Samoa",
"AND": "Andorra",
"AGO": "Angola",
"AIA": "Anguilla",
"ATG": "Antigua and Barbuda",
"ARG": "Argentina",
"ARM": "Armenia",
"ABW": "Aruba",
"AUS": "Australia",
"AUT": "Austria",
"AZE": "Azerbaijan",
"BHS": "Bahamas",
"BHR": "Bahrain",
"BGD": "Bangladesh",
"BRB": "Barbados",
"BLR": "Belarus",
"BEL": "Belgium",
"BLZ": "Belize",
"BEN": "Benin",
"BMU": "Bermuda",
"BTN": "Bhutan",
"BOL": "Bolivia (Plurinational State of)",
"BES": "Bonaire, Saint Eustatius and Saba",
"BIH": "Bosnia and Herzegovina",
"BWA": "Botswana",
"BRA": "Brazil",
"VGB": "British Virgin Islands",
"BRN": "Brunei Darussalam",
"BGR": "Bulgaria",
"BFA": "Burkina Faso",
"BDI": "Burundi",
"KHM": "Cambodia",
"CMR": "Cameroon",
"CAN": "Canada",
"CPV": "Cape Verde",
"CYM": "Cayman Islands",
"CAF": "Central African Republic",
"TCD": "Chad",
"CHL": "Chile",
"CHN": "China",
"HKG": "China, Hong Kong Special Administrative Region",
"MAC": "China, Macao Special Administrative Region",
"COL": "Colombia",
"COM": "Comoros",
"COG": "Congo",
"COK": "Cook Islands",
"CRI": "Costa Rica",
"CIV": "C\u00f4te d'Ivoire",
"HRV": "Croatia",
"CUB": "Cuba",
"CUW": "Cura\u00e7ao",
"CYP": "Cyprus",
"CZE": "Czech Republic",
"PRK": "Democratic People's Republic of Korea",
"COD": "Democratic Republic of the Congo",
"DNK": "Denmark",
"DJI": "Djibouti",
"DMA": "Dominica",
"DOM": "Dominican Republic",
"ECU": "Ecuador",
"EGY": "Egypt",
"SLV": "El Salvador",
"GNQ": "Equatorial Guinea",
"ERI": "Eritrea",
"EST": "Estonia",
"ETH": "Ethiopia",
"FRO": "Faeroe Islands",
"FLK": "Falkland Islands (Malvinas)",
"FJI": "Fiji",
"FIN": "Finland",
"FRA": "France",
"GUF": "French Guiana",
"PYF": "French Polynesia",
"GAB": "Gabon",
"GMB": "Gambia",
"GEO": "Georgia",
"DEU": "Germany",
"GHA": "Ghana",
"GIB": "Gibraltar",
"GRC": "Greece",
"GRL": "Greenland",
"GRD": "Grenada",
"GLP": "Guadeloupe",
"GUM": "Guam",
"GTM": "Guatemala",
"GGY": "Guernsey",
"GIN": "Guinea",
"GNB": "Guinea-Bissau",
"GUY": "Guyana",
"HTI": "Haiti",
"VAT": "Holy See",
"HND": "Honduras",
"HUN": "Hungary",
"ISL": "Iceland",
"IND": "India",
"IDN": "Indonesia",
"IRN": "Iran (Islamic Republic of)",
"IRQ": "Iraq",
"IRL": "Ireland",
"IMN": "Isle of Man",
"ISR": "Israel",
"ITA": "Italy",
"JAM": "Jamaica",
"JPN": "Japan",
"JEY": "Jersey",
"JOR": "Jordan",
"KAZ": "Kazakhstan",
"KEN": "Kenya",
"KIR": "Kiribati",
"KWT": "Kuwait",
"KGZ": "Kyrgyzstan",
"LAO": "Lao People's Democratic Republic",
"LVA": "Latvia",
"LBN": "Lebanon",
"LSO": "Lesotho",
"LBR": "Liberia",
"LBY": "Libya",
"LIE": "Liechtenstein",
"LTU": "Lithuania",
"LUX": "Luxembourg",
"MDG": "Madagascar",
"MWI": "Malawi",
"MYS": "Malaysia",
"MDV": "Maldives",
"MLI": "Mali",
"MLT": "Malta",
"MHL": "Marshall Islands",
"MTQ": "Martinique",
"MRT": "Mauritania",
"MUS": "Mauritius",
"MYT": "Mayotte",
"MEX": "Mexico",
"FSM": "Micronesia (Federated States of)",
"MCO": "Monaco",
"MNG": "Mongolia",
"MNE": "Montenegro",
"MSR": "Montserrat",
"MAR": "Morocco",
"MOZ": "Mozambique",
"MMR": "Myanmar",
"NAM": "Namibia",
"NRU": "Nauru",
"NPL": "Nepal",
"NLD": "Netherlands",
"NCL": "New Caledonia",
"NZL": "New Zealand",
"NIC": "Nicaragua",
"NER": "Niger",
"NGA": "Nigeria",
"NIU": "Niue",
"NFK": "Norfolk Island",
"MNP": "Northern Mariana Islands",
"NOR": "Norway",
"PSE": "Occupied Palestinian Territory",
"OMN": "Oman",
"PAK": "Pakistan",
"PLW": "Palau",
"PAN": "Panama",
"PNG": "Papua New Guinea",
"PRY": "Paraguay",
"PER": "Peru",
"PHL": "Philippines",
"PCN": "Pitcairn",
"POL": "Poland",
"PRT": "Portugal",
"PRI": "Puerto Rico",
"QAT": "Qatar",
"KOR": "Republic of Korea",
"MDA": "Republic of Moldova",
"REU": "R\u00e9union",
"ROU": "Romania",
"RUS": "Russian Federation",
"RWA": "Rwanda",
"BLM": "Saint-Barth\u00e9lemy",
"SHN": "Saint Helena",
"KNA": "Saint Kitts and Nevis",
"LCA": "Saint Lucia",
"MAF": "Saint-Martin (French part)",
"SPM": "Saint Pierre and Miquelon",
"VCT": "Saint Vincent and the Grenadines",
"WSM": "Samoa",
"SMR": "San Marino",
"STP": "Sao Tome and Principe",
"SAU": "Saudi Arabia",
"SEN": "Senegal",
"SRB": "Serbia",
"SYC": "Seychelles",
"SLE": "Sierra Leone",
"SGP": "Singapore",
"SXM": "Sint Maarten (Dutch part)",
"SVK": "Slovakia",
"SVN": "Slovenia",
"SLB": "Solomon Islands",
"SOM": "Somalia",
"ZAF": "South Africa",
"SSD": "South Sudan",
"ESP": "Spain",
"LKA": "Sri Lanka",
"SDN": "Sudan",
"SUR": "Suriname",
"SJM": "Svalbard and Jan Mayen Islands",
"SWZ": "Swaziland",
"SWE": "Sweden",
"CHE": "Switzerland",
"SYR": "Syrian Arab Republic",
"TJK": "Tajikistan",
"THA": "Thailand",
"MKD": "The former Yugoslav Republic of Macedonia",
"TLS": "Timor-Leste",
"TGO": "Togo",
"TKL": "Tokelau",
"TON": "Tonga",
"TTO": "Trinidad and Tobago",
"TUN": "Tunisia",
"TUR": "Turkey",
"TKM": "Turkmenistan",
"TCA": "Turks and Caicos Islands",
"TUV": "Tuvalu",
"UGA": "Uganda",
"UKR": "Ukraine",
"ARE": "United Arab Emirates",
"GBR": "United Kingdom of Great Britain and Northern Ireland",
"TZA": "United Republic of Tanzania",
"USA": "United States of America",
"VIR": "United States Virgin Islands",
"URY": "Uruguay",
"UZB": "Uzbekistan",
"VUT": "Vanuatu",
"VEN": "Venezuela (Bolivarian Republic of)",
"VNM": "Viet Nam",
"WLF": "Wallis and Futuna Islands",
"ESH": "Western Sahara",
"YEM": "Yemen",
"ZMB": "Zambia",
"ZWE": "Zimbabwe"
}
{
"004": "Afghanistan",
"248": "\u00c5land Islands",
"008": "Albania",
"012": "Algeria",
"016": "American Samoa",
"020": "Andorra",
"024": "Angola",
"660": "Anguilla",
"028": "Antigua and Barbuda",
"032": "Argentina",
"051": "Armenia",
"533": "Aruba",
"036": "Australia",
"040": "Austria",
"031": "Azerbaijan",
"044": "Bahamas",
"048": "Bahrain",
"050": "Bangladesh",
"052": "Barbados",
"112": "Belarus",
"056": "Belgium",
"084": "Belize",
"204": "Benin",
"060": "Bermuda",
"064": "Bhutan",
"068": "Bolivia (Plurinational State of)",
"535": "Bonaire, Saint Eustatius and Saba",
"070": "Bosnia and Herzegovina",
"072": "Botswana",
"076": "Brazil",
"092": "British Virgin Islands",
"096": "Brunei Darussalam",
"100": "Bulgaria",
"854": "Burkina Faso",
"108": "Burundi",
"116": "Cambodia",
"120": "Cameroon",
"124": "Canada",
"132": "Cape Verde",
"136": "Cayman Islands",
"140": "Central African Republic",
"148": "Chad",
"830": "Channel Islands",
"152": "Chile",
"156": "China",
"344": "China, Hong Kong Special Administrative Region",
"446": "China, Macao Special Administrative Region",
"170": "Colombia",
"174": "Comoros",
"178": "Congo",
"184": "Cook Islands",
"188": "Costa Rica",
"384": "C\u00f4te d'Ivoire",
"191": "Croatia",
"192": "Cuba",
"531": "Cura\u00e7ao",
"196": "Cyprus",
"203": "Czech Republic",
"408": "Democratic People's Republic of Korea",
"180": "Democratic Republic of the Congo",
"208": "Denmark",
"262": "Djibouti",
"212": "Dominica",
"214": "Dominican Republic",
"218": "Ecuador",
"818": "Egypt",
"222": "El Salvador",
"226": "Equatorial Guinea",
"232": "Eritrea",
"233": "Estonia",
"231": "Ethiopia",
"234": "Faeroe Islands",
"238": "Falkland Islands (Malvinas)",
"242": "Fiji",
"246": "Finland",
"250": "France",
"254": "French Guiana",
"258": "French Polynesia",
"266": "Gabon",
"270": "Gambia",
"268": "Georgia",
"276": "Germany",
"288": "Ghana",
"292": "Gibraltar",
"300": "Greece",
"304": "Greenland",
"308": "Grenada",
"312": "Guadeloupe",
"316": "Guam",
"320": "Guatemala",
"831": "Guernsey",
"324": "Guinea",
"624": "Guinea-Bissau",
"328": "Guyana",
"332": "Haiti",
"336": "Holy See",
"340": "Honduras",
"348": "Hungary",
"352": "Iceland",
"356": "India",
"360": "Indonesia",
"364": "Iran (Islamic Republic of)",
"368": "Iraq",
"372": "Ireland",
"833": "Isle of Man",
"376": "Israel",
"380": "Italy",
"388": "Jamaica",
"392": "Japan",
"832": "Jersey",
"400": "Jordan",
"398": "Kazakhstan",
"404": "Kenya",
"296": "Kiribati",
"414": "Kuwait",
"417": "Kyrgyzstan",
"418": "Lao People's Democratic Republic",
"428": "Latvia",
"422": "Lebanon",
"426": "Lesotho",
"430": "Liberia",
"434": "Libya",
"438": "Liechtenstein",
"440": "Lithuania",
"442": "Luxembourg",
"450": "Madagascar",
"454": "Malawi",
"458": "Malaysia",
"462": "Maldives",
"466": "Mali",
"470": "Malta",
"584": "Marshall Islands",
"474": "Martinique",
"478": "Mauritania",
"480": "Mauritius",
"175": "Mayotte",
"484": "Mexico",
"583": "Micronesia (Federated States of)",
"492": "Monaco",
"496": "Mongolia",
"499": "Montenegro",
"500": "Montserrat",
"504": "Morocco",
"508": "Mozambique",
"104": "Myanmar",
"516": "Namibia",
"520": "Nauru",
"524": "Nepal",
"528": "Netherlands",
"540": "New Caledonia",
"554": "New Zealand",
"558": "Nicaragua",
"562": "Niger",
"566": "Nigeria",
"570": "Niue",
"574": "Norfolk Island",
"580": "Northern Mariana Islands",
"578": "Norway",
"275": "Occupied Palestinian Territory",
"512": "Oman",
"586": "Pakistan",
"585": "Palau",
"591": "Panama",
"598": "Papua New Guinea",
"600": "Paraguay",
"604": "Peru",
"608": "Philippines",
"612": "Pitcairn",
"616": "Poland",
"620": "Portugal",
"630": "Puerto Rico",
"634": "Qatar",
"410": "Republic of Korea",
"498": "Republic of Moldova",
"638": "R\u00e9union",
"642": "Romania",
"643": "Russian Federation",
"646": "Rwanda",
"652": "Saint-Barth\u00e9lemy",
"654": "Saint Helena",
"659": "Saint Kitts and Nevis",
"662": "Saint Lucia",
"663": "Saint-Martin (French part)",
"666": "Saint Pierre and Miquelon",
"670": "Saint Vincent and the Grenadines",
"882": "Samoa",
"674": "San Marino",
"678": "Sao Tome and Principe",
"680": "Sark",
"682": "Saudi Arabia",
"686": "Senegal",
"688": "Serbia",
"690": "Seychelles",
"694": "Sierra Leone",
"702": "Singapore",
"534": "Sint Maarten (Dutch part)",
"703": "Slovakia",
"705": "Slovenia",
"090": "Solomon Islands",
"706": "Somalia",
"710": "South Africa",
"728": "South Sudan",
"724": "Spain",
"144": "Sri Lanka",
"729": "Sudan",
"740": "Suriname",
"744": "Svalbard and Jan Mayen Islands",
"748": "Swaziland",
"752": "Sweden",
"756": "Switzerland",
"760": "Syrian Arab Republic",
"762": "Tajikistan",
"764": "Thailand",
"807": "The former Yugoslav Republic of Macedonia",
"626": "Timor-Leste",
"768": "Togo",
"772": "Tokelau",
"776": "Tonga",
"780": "Trinidad and Tobago",
"788": "Tunisia",
"792": "Turkey",
"795": "Turkmenistan",
"796": "Turks and Caicos Islands",
"798": "Tuvalu",
"800": "Uganda",
"804": "Ukraine",
"784": "United Arab Emirates",
"826": "United Kingdom of Great Britain and Northern Ireland",
"834": "United Republic of Tanzania",
"840": "United States of America",
"850": "United States Virgin Islands",
"858": "Uruguay",
"860": "Uzbekistan",
"548": "Vanuatu",
"862": "Venezuela (Bolivarian Republic of)",
"704": "Viet Nam",
"876": "Wallis and Futuna Islands",
"732": "Western Sahara",
"887": "Yemen",
"894": "Zambia",
"716": "Zimbabwe"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment