Create a gist now

Instantly share code, notes, and snippets.

List of countries in YAML, CSV and TXT format

List of countries

It's time someone compiled a list of countries to use within a web application. This gist attempts to make a first move at that.

List of nationalities

I've also compiled a list of nationalities

We can make this file <a href='https://help.github.com/articles/rendering-csv-and-tsv-data'>beautiful and searchable</a> if this error is corrected: Unclosed quoted field on line 1.
"AF|Afghanistan","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","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|Congo, The Democratic Republic Of The","CK|Cook Islands","CR|Costa Rica","CI|Cote D'ivoire","HR|Croatia","CU|Cuba","CY|Cyprus","CZ|Czech Republic","DK|Denmark","DJ|Djibouti","DM|Dominica","DO|Dominican Republic","TP|East Timor","EC|Ecuador","EG|Egypt","SV|El Salvador","GQ|Equatorial Guinea","ER|Eritrea","EE|Estonia","ET|Ethiopia","FK|Falkland Islands (malvinas)","FO|Faroe 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","GN|Guinea","GW|Guinea-bissau","GY|Guyana","HT|Haiti","HM|Heard Island And Mcdonald Islands","VA|Holy See (vatican City State)","HN|Honduras","HK|Hong Kong","HU|Hungary","IS|Iceland","IN|India","ID|Indonesia","IR|Iran, Islamic Republic Of","IQ|Iraq","IE|Ireland","IL|Israel","IT|Italy","JM|Jamaica","JP|Japan","JO|Jordan","KZ|Kazakstan","KE|Kenya","KI|Kiribati","KP|Korea, Democratic People's Republic Of","KR|Korea, Republic Of","KV|Kosovo","KW|Kuwait","KG|Kyrgyzstan","LA|Lao People's Democratic Republic","LV|Latvia","LB|Lebanon","LS|Lesotho","LR|Liberia","LY|Libyan Arab Jamahiriya","LI|Liechtenstein","LT|Lithuania","LU|Luxembourg","MO|Macau","MK|Macedonia, The Former Yugoslav Republic Of","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|Moldova, Republic Of","MC|Monaco","MN|Mongolia","MS|Montserrat","ME|Montenegro","MA|Morocco","MZ|Mozambique","MM|Myanmar","NA|Namibia","NR|Nauru","NP|Nepal","NL|Netherlands","AN|Netherlands Antilles","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|Palestinian Territory, Occupied","PA|Panama","PG|Papua New Guinea","PY|Paraguay","PE|Peru","PH|Philippines","PN|Pitcairn","PL|Poland","PT|Portugal","PR|Puerto Rico","QA|Qatar","RE|Reunion","RO|Romania","RU|Russian Federation","RW|Rwanda","SH|Saint Helena","KN|Saint Kitts And Nevis","LC|Saint Lucia","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","SK|Slovakia","SI|Slovenia","SB|Solomon Islands","SO|Somalia","ZA|South Africa","GS|South Georgia And The South Sandwich Islands","ES|Spain","LK|Sri Lanka","SD|Sudan","SR|Suriname","SJ|Svalbard And Jan Mayen","SZ|Swaziland","SE|Sweden","CH|Switzerland","SY|Syrian Arab Republic","TW|Taiwan, Province Of China","TJ|Tajikistan","TZ|Tanzania, United Republic Of","TH|Thailand","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","US|United States","UM|United States Minor Outlying Islands","UY|Uruguay","UZ|Uzbekistan","VU|Vanuatu","VE|Venezuela","VN|Viet Nam","VG|Virgin Islands, British","VI|Virgin Islands, U.s.","WF|Wallis And Futuna","EH|Western Sahara","YE|Yemen","ZM|Zambia","ZW|Zimbabwe
AF|Afghanistan
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
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|Congo, The Democratic Republic Of The
CK|Cook Islands
CR|Costa Rica
CI|Cote D'ivoire
HR|Croatia
CU|Cuba
CY|Cyprus
CZ|Czech Republic
DK|Denmark
DJ|Djibouti
DM|Dominica
DO|Dominican Republic
TP|East Timor
EC|Ecuador
EG|Egypt
SV|El Salvador
GQ|Equatorial Guinea
ER|Eritrea
EE|Estonia
ET|Ethiopia
FK|Falkland Islands (malvinas)
FO|Faroe 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
GN|Guinea
GW|Guinea-bissau
GY|Guyana
HT|Haiti
HM|Heard Island And Mcdonald Islands
VA|Holy See (vatican City State)
HN|Honduras
HK|Hong Kong
HU|Hungary
IS|Iceland
IN|India
ID|Indonesia
IR|Iran, Islamic Republic Of
IQ|Iraq
IE|Ireland
IL|Israel
IT|Italy
JM|Jamaica
JP|Japan
JO|Jordan
KZ|Kazakstan
KE|Kenya
KI|Kiribati
KP|Korea, Democratic People's Republic Of
KR|Korea, Republic Of
KV|Kosovo
KW|Kuwait
KG|Kyrgyzstan
LA|Lao People's Democratic Republic
LV|Latvia
LB|Lebanon
LS|Lesotho
LR|Liberia
LY|Libyan Arab Jamahiriya
LI|Liechtenstein
LT|Lithuania
LU|Luxembourg
MO|Macau
MK|Macedonia, The Former Yugoslav Republic Of
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|Moldova, Republic Of
MC|Monaco
MN|Mongolia
MS|Montserrat
ME|Montenegro
MA|Morocco
MZ|Mozambique
MM|Myanmar
NA|Namibia
NR|Nauru
NP|Nepal
NL|Netherlands
AN|Netherlands Antilles
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|Palestinian Territory, Occupied
PA|Panama
PG|Papua New Guinea
PY|Paraguay
PE|Peru
PH|Philippines
PN|Pitcairn
PL|Poland
PT|Portugal
PR|Puerto Rico
QA|Qatar
RE|Reunion
RO|Romania
RU|Russian Federation
RW|Rwanda
SH|Saint Helena
KN|Saint Kitts And Nevis
LC|Saint Lucia
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
SK|Slovakia
SI|Slovenia
SB|Solomon Islands
SO|Somalia
ZA|South Africa
GS|South Georgia And The South Sandwich Islands
ES|Spain
LK|Sri Lanka
SD|Sudan
SR|Suriname
SJ|Svalbard And Jan Mayen
SZ|Swaziland
SE|Sweden
CH|Switzerland
SY|Syrian Arab Republic
TW|Taiwan, Province Of China
TJ|Tajikistan
TZ|Tanzania, United Republic Of
TH|Thailand
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
US|United States
UM|United States Minor Outlying Islands
UY|Uruguay
UZ|Uzbekistan
VU|Vanuatu
VE|Venezuela
VN|Viet Nam
VG|Virgin Islands, British
VI|Virgin Islands, U.s.
WF|Wallis And Futuna
EH|Western Sahara
YE|Yemen
ZM|Zambia
ZW|Zimbabwe
#
# List of country codes and country names.
#
# Data taken from: http://openconcept.ca/blog/mgifford/text_list_all_countries
#
countries:
AF:
iso_2: "AF"
name: "Afghanistan"
AL:
iso_2: "AL"
name: "Albania"
DZ:
iso_2: "DZ"
name: "Algeria"
AS:
iso_2: "AS"
name: "American Samoa"
AD:
iso_2: "AD"
name: "Andorra"
AO:
iso_2: "AO"
name: "Angola"
AI:
iso_2: "AI"
name: "Anguilla"
AQ:
iso_2: "AQ"
name: "Antarctica"
AG:
iso_2: "AG"
name: "Antigua And Barbuda"
AR:
iso_2: "AR"
name: "Argentina"
AM:
iso_2: "AM"
name: "Armenia"
AW:
iso_2: "AW"
name: "Aruba"
AU:
iso_2: "AU"
name: "Australia"
AT:
iso_2: "AT"
name: "Austria"
AZ:
iso_2: "AZ"
name: "Azerbaijan"
BS:
iso_2: "BS"
name: "Bahamas"
BH:
iso_2: "BH"
name: "Bahrain"
BD:
iso_2: "BD"
name: "Bangladesh"
BB:
iso_2: "BB"
name: "Barbados"
BY:
iso_2: "BY"
name: "Belarus"
BE:
iso_2: "BE"
name: "Belgium"
BZ:
iso_2: "BZ"
name: "Belize"
BJ:
iso_2: "BJ"
name: "Benin"
BM:
iso_2: "BM"
name: "Bermuda"
BT:
iso_2: "BT"
name: "Bhutan"
BO:
iso_2: "BO"
name: "Bolivia"
BA:
iso_2: "BA"
name: "Bosnia And Herzegovina"
BW:
iso_2: "BW"
name: "Botswana"
BV:
iso_2: "BV"
name: "Bouvet Island"
BR:
iso_2: "BR"
name: "Brazil"
IO:
iso_2: "IO"
name: "British Indian Ocean Territory"
BN:
iso_2: "BN"
name: "Brunei Darussalam"
BG:
iso_2: "BG"
name: "Bulgaria"
BF:
iso_2: "BF"
name: "Burkina Faso"
BI:
iso_2: "BI"
name: "Burundi"
KH:
iso_2: "KH"
name: "Cambodia"
CM:
iso_2: "CM"
name: "Cameroon"
CA:
iso_2: "CA"
name: "Canada"
CV:
iso_2: "CV"
name: "Cape Verde"
KY:
iso_2: "KY"
name: "Cayman Islands"
CF:
iso_2: "CF"
name: "Central African Republic"
TD:
iso_2: "TD"
name: "Chad"
CL:
iso_2: "CL"
name: "Chile"
CN:
iso_2: "CN"
name: "China"
CX:
iso_2: "CX"
name: "Christmas Island"
CC:
iso_2: "CC"
name: "Cocos (keeling) Islands"
CO:
iso_2: "CO"
name: "Colombia"
KM:
iso_2: "KM"
name: "Comoros"
CG:
iso_2: "CG"
name: "Congo"
CD:
iso_2: "CD"
name: "Congo, The Democratic Republic Of The"
CK:
iso_2: "CK"
name: "Cook Islands"
CR:
iso_2: "CR"
name: "Costa Rica"
CI:
iso_2: "CI"
name: "Cote D'ivoire"
HR:
iso_2: "HR"
name: "Croatia"
CU:
iso_2: "CU"
name: "Cuba"
CY:
iso_2: "CY"
name: "Cyprus"
CZ:
iso_2: "CZ"
name: "Czech Republic"
DK:
iso_2: "DK"
name: "Denmark"
DJ:
iso_2: "DJ"
name: "Djibouti"
DM:
iso_2: "DM"
name: "Dominica"
DO:
iso_2: "DO"
name: "Dominican Republic"
TP:
iso_2: "TP"
name: "East Timor"
EC:
iso_2: "EC"
name: "Ecuador"
EG:
iso_2: "EG"
name: "Egypt"
SV:
iso_2: "SV"
name: "El Salvador"
GQ:
iso_2: "GQ"
name: "Equatorial Guinea"
ER:
iso_2: "ER"
name: "Eritrea"
EE:
iso_2: "EE"
name: "Estonia"
ET:
iso_2: "ET"
name: "Ethiopia"
FK:
iso_2: "FK"
name: "Falkland Islands (malvinas)"
FO:
iso_2: "FO"
name: "Faroe Islands"
FJ:
iso_2: "FJ"
name: "Fiji"
FI:
iso_2: "FI"
name: "Finland"
FR:
iso_2: "FR"
name: "France"
GF:
iso_2: "GF"
name: "French Guiana"
PF:
iso_2: "PF"
name: "French Polynesia"
TF:
iso_2: "TF"
name: "French Southern Territories"
GA:
iso_2: "GA"
name: "Gabon"
GM:
iso_2: "GM"
name: "Gambia"
GE:
iso_2: "GE"
name: "Georgia"
DE:
iso_2: "DE"
name: "Germany"
GH:
iso_2: "GH"
name: "Ghana"
GI:
iso_2: "GI"
name: "Gibraltar"
GR:
iso_2: "GR"
name: "Greece"
GL:
iso_2: "GL"
name: "Greenland"
GD:
iso_2: "GD"
name: "Grenada"
GP:
iso_2: "GP"
name: "Guadeloupe"
GU:
iso_2: "GU"
name: "Guam"
GT:
iso_2: "GT"
name: "Guatemala"
GN:
iso_2: "GN"
name: "Guinea"
GW:
iso_2: "GW"
name: "Guinea-bissau"
GY:
iso_2: "GY"
name: "Guyana"
HT:
iso_2: "HT"
name: "Haiti"
HM:
iso_2: "HM"
name: "Heard Island And Mcdonald Islands"
VA:
iso_2: "VA"
name: "Holy See (vatican City State)"
HN:
iso_2: "HN"
name: "Honduras"
HK:
iso_2: "HK"
name: "Hong Kong"
HU:
iso_2: "HU"
name: "Hungary"
IS:
iso_2: "IS"
name: "Iceland"
IN:
iso_2: "IN"
name: "India"
ID:
iso_2: "ID"
name: "Indonesia"
IR:
iso_2: "IR"
name: "Iran, Islamic Republic Of"
IQ:
iso_2: "IQ"
name: "Iraq"
IE:
iso_2: "IE"
name: "Ireland"
IL:
iso_2: "IL"
name: "Israel"
IT:
iso_2: "IT"
name: "Italy"
JM:
iso_2: "JM"
name: "Jamaica"
JP:
iso_2: "JP"
name: "Japan"
JO:
iso_2: "JO"
name: "Jordan"
KZ:
iso_2: "KZ"
name: "Kazakstan"
KE:
iso_2: "KE"
name: "Kenya"
KI:
iso_2: "KI"
name: "Kiribati"
KP:
iso_2: "KP"
name: "Korea, Democratic People's Republic Of"
KR:
iso_2: "KR"
name: "Korea, Republic Of"
KV:
iso_2: "KV"
name: "Kosovo"
KW:
iso_2: "KW"
name: "Kuwait"
KG:
iso_2: "KG"
name: "Kyrgyzstan"
LA:
iso_2: "LA"
name: "Lao People's Democratic Republic"
LV:
iso_2: "LV"
name: "Latvia"
LB:
iso_2: "LB"
name: "Lebanon"
LS:
iso_2: "LS"
name: "Lesotho"
LR:
iso_2: "LR"
name: "Liberia"
LY:
iso_2: "LY"
name: "Libyan Arab Jamahiriya"
LI:
iso_2: "LI"
name: "Liechtenstein"
LT:
iso_2: "LT"
name: "Lithuania"
LU:
iso_2: "LU"
name: "Luxembourg"
MO:
iso_2: "MO"
name: "Macau"
MK:
iso_2: "MK"
name: "Macedonia, The Former Yugoslav Republic Of"
MG:
iso_2: "MG"
name: "Madagascar"
MW:
iso_2: "MW"
name: "Malawi"
MY:
iso_2: "MY"
name: "Malaysia"
MV:
iso_2: "MV"
name: "Maldives"
ML:
iso_2: "ML"
name: "Mali"
MT:
iso_2: "MT"
name: "Malta"
MH:
iso_2: "MH"
name: "Marshall Islands"
MQ:
iso_2: "MQ"
name: "Martinique"
MR:
iso_2: "MR"
name: "Mauritania"
MU:
iso_2: "MU"
name: "Mauritius"
YT:
iso_2: "YT"
name: "Mayotte"
MX:
iso_2: "MX"
name: "Mexico"
FM:
iso_2: "FM"
name: "Micronesia, Federated States Of"
MD:
iso_2: "MD"
name: "Moldova, Republic Of"
MC:
iso_2: "MC"
name: "Monaco"
MN:
iso_2: "MN"
name: "Mongolia"
MS:
iso_2: "MS"
name: "Montserrat"
ME:
iso_2: "ME"
name: "Montenegro"
MA:
iso_2: "MA"
name: "Morocco"
MZ:
iso_2: "MZ"
name: "Mozambique"
MM:
iso_2: "MM"
name: "Myanmar"
NA:
iso_2: "NA"
name: "Namibia"
NR:
iso_2: "NR"
name: "Nauru"
NP:
iso_2: "NP"
name: "Nepal"
NL:
iso_2: "NL"
name: "Netherlands"
AN:
iso_2: "AN"
name: "Netherlands Antilles"
NC:
iso_2: "NC"
name: "New Caledonia"
NZ:
iso_2: "NZ"
name: "New Zealand"
NI:
iso_2: "NI"
name: "Nicaragua"
NE:
iso_2: "NE"
name: "Niger"
NG:
iso_2: "NG"
name: "Nigeria"
NU:
iso_2: "NU"
name: "Niue"
NF:
iso_2: "NF"
name: "Norfolk Island"
MP:
iso_2: "MP"
name: "Northern Mariana Islands"
NO:
iso_2: "NO"
name: "Norway"
OM:
iso_2: "OM"
name: "Oman"
PK:
iso_2: "PK"
name: "Pakistan"
PW:
iso_2: "PW"
name: "Palau"
PS:
iso_2: "PS"
name: "Palestinian Territory, Occupied"
PA:
iso_2: "PA"
name: "Panama"
PG:
iso_2: "PG"
name: "Papua New Guinea"
PY:
iso_2: "PY"
name: "Paraguay"
PE:
iso_2: "PE"
name: "Peru"
PH:
iso_2: "PH"
name: "Philippines"
PN:
iso_2: "PN"
name: "Pitcairn"
PL:
iso_2: "PL"
name: "Poland"
PT:
iso_2: "PT"
name: "Portugal"
PR:
iso_2: "PR"
name: "Puerto Rico"
QA:
iso_2: "QA"
name: "Qatar"
RE:
iso_2: "RE"
name: "Reunion"
RO:
iso_2: "RO"
name: "Romania"
RU:
iso_2: "RU"
name: "Russian Federation"
RW:
iso_2: "RW"
name: "Rwanda"
SH:
iso_2: "SH"
name: "Saint Helena"
KN:
iso_2: "KN"
name: "Saint Kitts And Nevis"
LC:
iso_2: "LC"
name: "Saint Lucia"
PM:
iso_2: "PM"
name: "Saint Pierre And Miquelon"
VC:
iso_2: "VC"
name: "Saint Vincent And The Grenadines"
WS:
iso_2: "WS"
name: "Samoa"
SM:
iso_2: "SM"
name: "San Marino"
ST:
iso_2: "ST"
name: "Sao Tome And Principe"
SA:
iso_2: "SA"
name: "Saudi Arabia"
SN:
iso_2: "SN"
name: "Senegal"
RS:
iso_2: "RS"
name: "Serbia"
SC:
iso_2: "SC"
name: "Seychelles"
SL:
iso_2: "SL"
name: "Sierra Leone"
SG:
iso_2: "SG"
name: "Singapore"
SK:
iso_2: "SK"
name: "Slovakia"
SI:
iso_2: "SI"
name: "Slovenia"
SB:
iso_2: "SB"
name: "Solomon Islands"
SO:
iso_2: "SO"
name: "Somalia"
ZA:
iso_2: "ZA"
name: "South Africa"
GS:
iso_2: "GS"
name: "South Georgia And The South Sandwich Islands"
ES:
iso_2: "ES"
name: "Spain"
LK:
iso_2: "LK"
name: "Sri Lanka"
SD:
iso_2: "SD"
name: "Sudan"
SR:
iso_2: "SR"
name: "Suriname"
SJ:
iso_2: "SJ"
name: "Svalbard And Jan Mayen"
SZ:
iso_2: "SZ"
name: "Swaziland"
SE:
iso_2: "SE"
name: "Sweden"
CH:
iso_2: "CH"
name: "Switzerland"
SY:
iso_2: "SY"
name: "Syrian Arab Republic"
TW:
iso_2: "TW"
name: "Taiwan, Province Of China"
TJ:
iso_2: "TJ"
name: "Tajikistan"
TZ:
iso_2: "TZ"
name: "Tanzania, United Republic Of"
TH:
iso_2: "TH"
name: "Thailand"
TG:
iso_2: "TG"
name: "Togo"
TK:
iso_2: "TK"
name: "Tokelau"
TO:
iso_2: "TO"
name: "Tonga"
TT:
iso_2: "TT"
name: "Trinidad And Tobago"
TN:
iso_2: "TN"
name: "Tunisia"
TR:
iso_2: "TR"
name: "Turkey"
TM:
iso_2: "TM"
name: "Turkmenistan"
TC:
iso_2: "TC"
name: "Turks And Caicos Islands"
TV:
iso_2: "TV"
name: "Tuvalu"
UG:
iso_2: "UG"
name: "Uganda"
UA:
iso_2: "UA"
name: "Ukraine"
AE:
iso_2: "AE"
name: "United Arab Emirates"
GB:
iso_2: "GB"
name: "United Kingdom"
US:
iso_2: "US"
name: "United States"
UM:
iso_2: "UM"
name: "United States Minor Outlying Islands"
UY:
iso_2: "UY"
name: "Uruguay"
UZ:
iso_2: "UZ"
name: "Uzbekistan"
VU:
iso_2: "VU"
name: "Vanuatu"
VE:
iso_2: "VE"
name: "Venezuela"
VN:
iso_2: "VN"
name: "Viet Nam"
VG:
iso_2: "VG"
name: "Virgin Islands, British"
VI:
iso_2: "VI"
name: "Virgin Islands, U.s."
WF:
iso_2: "WF"
name: "Wallis And Futuna"
EH:
iso_2: "EH"
name: "Western Sahara"
YE:
iso_2: "YE"
name: "Yemen"
ZM:
iso_2: "ZM"
name: "Zambia"
ZW:
iso_2: "ZW"
name: "Zimbabwe"
@r3wt

for anyone wishing to work with the list in php to insert it into some type of database, here is a simple script i wrote.


$list = 'AF|Afghanistan
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
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|Congo, The Democratic Republic Of The
CK|Cook Islands
CR|Costa Rica
CI|Cote D\'ivoire
HR|Croatia
CU|Cuba
CY|Cyprus
CZ|Czech Republic
DK|Denmark
DJ|Djibouti
DM|Dominica
DO|Dominican Republic
TP|East Timor
EC|Ecuador
EG|Egypt
SV|El Salvador
GQ|Equatorial Guinea
ER|Eritrea
EE|Estonia
ET|Ethiopia
FK|Falkland Islands (malvinas)
FO|Faroe 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
GN|Guinea
GW|Guinea-bissau
GY|Guyana
HT|Haiti
HM|Heard Island And Mcdonald Islands
VA|Holy See (vatican City State)
HN|Honduras
HK|Hong Kong
HU|Hungary
IS|Iceland
IN|India
ID|Indonesia
IR|Iran, Islamic Republic Of
IQ|Iraq
IE|Ireland
IL|Israel
IT|Italy
JM|Jamaica
JP|Japan
JO|Jordan
KZ|Kazakstan
KE|Kenya
KI|Kiribati
KP|Korea, Democratic People\'s Republic Of
KR|Korea, Republic Of
KV|Kosovo
KW|Kuwait
KG|Kyrgyzstan
LA|Lao People\'s Democratic Republic
LV|Latvia
LB|Lebanon
LS|Lesotho
LR|Liberia
LY|Libyan Arab Jamahiriya
LI|Liechtenstein
LT|Lithuania
LU|Luxembourg
MO|Macau
MK|Macedonia, The Former Yugoslav Republic Of
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|Moldova, Republic Of
MC|Monaco
MN|Mongolia
MS|Montserrat
ME|Montenegro
MA|Morocco
MZ|Mozambique
MM|Myanmar
NA|Namibia
NR|Nauru
NP|Nepal
NL|Netherlands
AN|Netherlands Antilles
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|Palestinian Territory, Occupied
PA|Panama
PG|Papua New Guinea
PY|Paraguay
PE|Peru
PH|Philippines
PN|Pitcairn
PL|Poland
PT|Portugal
PR|Puerto Rico
QA|Qatar
RE|Reunion
RO|Romania
RU|Russian Federation
RW|Rwanda
SH|Saint Helena
KN|Saint Kitts And Nevis
LC|Saint Lucia
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
SK|Slovakia
SI|Slovenia
SB|Solomon Islands
SO|Somalia
ZA|South Africa
GS|South Georgia And The South Sandwich Islands
ES|Spain
LK|Sri Lanka
SD|Sudan
SR|Suriname
SJ|Svalbard And Jan Mayen
SZ|Swaziland
SE|Sweden
CH|Switzerland
SY|Syrian Arab Republic
TW|Taiwan, Province Of China
TJ|Tajikistan
TZ|Tanzania, United Republic Of
TH|Thailand
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
US|United States
UM|United States Minor Outlying Islands
UY|Uruguay
UZ|Uzbekistan
VU|Vanuatu
VE|Venezuela
VN|Viet Nam
VG|Virgin Islands, British
VI|Virgin Islands, U.s.
WF|Wallis And Futuna
EH|Western Sahara
YE|Yemen
ZM|Zambia
ZW|Zimbabwe';
echo '<pre>';
$list = explode("\r\n",$list);
foreach($list as $list2){
    $list3[] = explode('|',$list2);
}
print_r($list3,false);
@emilushi

For everyone "like me" who needs the list as a plain text and only the country name i changed @r3wt code to this one:

$list = 'AF|Afghanistan
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
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|Congo, The Democratic Republic Of The
CK|Cook Islands
CR|Costa Rica
CI|Cote D\'ivoire
HR|Croatia
CU|Cuba
CY|Cyprus
CZ|Czech Republic
DK|Denmark
DJ|Djibouti
DM|Dominica
DO|Dominican Republic
TP|East Timor
EC|Ecuador
EG|Egypt
SV|El Salvador
GQ|Equatorial Guinea
ER|Eritrea
EE|Estonia
ET|Ethiopia
FK|Falkland Islands (malvinas)
FO|Faroe 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
GN|Guinea
GW|Guinea-bissau
GY|Guyana
HT|Haiti
HM|Heard Island And Mcdonald Islands
VA|Holy See (vatican City State)
HN|Honduras
HK|Hong Kong
HU|Hungary
IS|Iceland
IN|India
ID|Indonesia
IR|Iran, Islamic Republic Of
IQ|Iraq
IE|Ireland
IL|Israel
IT|Italy
JM|Jamaica
JP|Japan
JO|Jordan
KZ|Kazakstan
KE|Kenya
KI|Kiribati
KP|Korea, Democratic People\'s Republic Of
KR|Korea, Republic Of
KV|Kosovo
KW|Kuwait
KG|Kyrgyzstan
LA|Lao People\'s Democratic Republic
LV|Latvia
LB|Lebanon
LS|Lesotho
LR|Liberia
LY|Libyan Arab Jamahiriya
LI|Liechtenstein
LT|Lithuania
LU|Luxembourg
MO|Macau
MK|Macedonia, The Former Yugoslav Republic Of
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|Moldova, Republic Of
MC|Monaco
MN|Mongolia
MS|Montserrat
ME|Montenegro
MA|Morocco
MZ|Mozambique
MM|Myanmar
NA|Namibia
NR|Nauru
NP|Nepal
NL|Netherlands
AN|Netherlands Antilles
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|Palestinian Territory, Occupied
PA|Panama
PG|Papua New Guinea
PY|Paraguay
PE|Peru
PH|Philippines
PN|Pitcairn
PL|Poland
PT|Portugal
PR|Puerto Rico
QA|Qatar
RE|Reunion
RO|Romania
RU|Russian Federation
RW|Rwanda
SH|Saint Helena
KN|Saint Kitts And Nevis
LC|Saint Lucia
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
SK|Slovakia
SI|Slovenia
SB|Solomon Islands
SO|Somalia
ZA|South Africa
GS|South Georgia And The South Sandwich Islands
ES|Spain
LK|Sri Lanka
SD|Sudan
SR|Suriname
SJ|Svalbard And Jan Mayen
SZ|Swaziland
SE|Sweden
CH|Switzerland
SY|Syrian Arab Republic
TW|Taiwan, Province Of China
TJ|Tajikistan
TZ|Tanzania, United Republic Of
TH|Thailand
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
US|United States
UM|United States Minor Outlying Islands
UY|Uruguay
UZ|Uzbekistan
VU|Vanuatu
VE|Venezuela
VN|Viet Nam
VG|Virgin Islands, British
VI|Virgin Islands, U.s.
WF|Wallis And Futuna
EH|Western Sahara
YE|Yemen
ZM|Zambia
ZW|Zimbabwe';
echo '<pre>';
$list = explode("\r\n",$list);
foreach($list as $list2){
    $list3[] = explode('|', $list2);
}
$country = call_user_func_array('array_merge', $list3);
for($i=0;$i<count($country);$i++) {
    if($i%2==0) {
        echo $country[$i+1] . '<br />';
    }
}
@wyred

Now for PHP array format!

return [
    'AF' => 'Afghanistan',
    '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',
    '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' => 'Congo, The Democratic Republic Of The',
    'CK' => 'Cook Islands',
    'CR' => 'Costa Rica',
    'CI' => 'Cote D\'ivoire',
    'HR' => 'Croatia',
    'CU' => 'Cuba',
    'CY' => 'Cyprus',
    'CZ' => 'Czech Republic',
    'DK' => 'Denmark',
    'DJ' => 'Djibouti',
    'DM' => 'Dominica',
    'DO' => 'Dominican Republic',
    'TP' => 'East Timor',
    'EC' => 'Ecuador',
    'EG' => 'Egypt',
    'SV' => 'El Salvador',
    'GQ' => 'Equatorial Guinea',
    'ER' => 'Eritrea',
    'EE' => 'Estonia',
    'ET' => 'Ethiopia',
    'FK' => 'Falkland Islands (malvinas)',
    'FO' => 'Faroe 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',
    'GN' => 'Guinea',
    'GW' => 'Guinea-bissau',
    'GY' => 'Guyana',
    'HT' => 'Haiti',
    'HM' => 'Heard Island And Mcdonald Islands',
    'VA' => 'Holy See (vatican City State)',
    'HN' => 'Honduras',
    'HK' => 'Hong Kong',
    'HU' => 'Hungary',
    'IS' => 'Iceland',
    'IN' => 'India',
    'ID' => 'Indonesia',
    'IR' => 'Iran, Islamic Republic Of',
    'IQ' => 'Iraq',
    'IE' => 'Ireland',
    'IL' => 'Israel',
    'IT' => 'Italy',
    'JM' => 'Jamaica',
    'JP' => 'Japan',
    'JO' => 'Jordan',
    'KZ' => 'Kazakstan',
    'KE' => 'Kenya',
    'KI' => 'Kiribati',
    'KP' => 'Korea, Democratic People\'s Republic Of',
    'KR' => 'Korea, Republic Of',
    'KV' => 'Kosovo',
    'KW' => 'Kuwait',
    'KG' => 'Kyrgyzstan',
    'LA' => 'Lao People\'s Democratic Republic',
    'LV' => 'Latvia',
    'LB' => 'Lebanon',
    'LS' => 'Lesotho',
    'LR' => 'Liberia',
    'LY' => 'Libyan Arab Jamahiriya',
    'LI' => 'Liechtenstein',
    'LT' => 'Lithuania',
    'LU' => 'Luxembourg',
    'MO' => 'Macau',
    'MK' => 'Macedonia, The Former Yugoslav Republic Of',
    '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' => 'Moldova, Republic Of',
    'MC' => 'Monaco',
    'MN' => 'Mongolia',
    'MS' => 'Montserrat',
    'ME' => 'Montenegro',
    'MA' => 'Morocco',
    'MZ' => 'Mozambique',
    'MM' => 'Myanmar',
    'NA' => 'Namibia',
    'NR' => 'Nauru',
    'NP' => 'Nepal',
    'NL' => 'Netherlands',
    'AN' => 'Netherlands Antilles',
    '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' => 'Palestinian Territory, Occupied',
    'PA' => 'Panama',
    'PG' => 'Papua New Guinea',
    'PY' => 'Paraguay',
    'PE' => 'Peru',
    'PH' => 'Philippines',
    'PN' => 'Pitcairn',
    'PL' => 'Poland',
    'PT' => 'Portugal',
    'PR' => 'Puerto Rico',
    'QA' => 'Qatar',
    'RE' => 'Reunion',
    'RO' => 'Romania',
    'RU' => 'Russian Federation',
    'RW' => 'Rwanda',
    'SH' => 'Saint Helena',
    'KN' => 'Saint Kitts And Nevis',
    'LC' => 'Saint Lucia',
    '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',
    'SK' => 'Slovakia',
    'SI' => 'Slovenia',
    'SB' => 'Solomon Islands',
    'SO' => 'Somalia',
    'ZA' => 'South Africa',
    'GS' => 'South Georgia And The South Sandwich Islands',
    'ES' => 'Spain',
    'LK' => 'Sri Lanka',
    'SD' => 'Sudan',
    'SR' => 'Suriname',
    'SJ' => 'Svalbard And Jan Mayen',
    'SZ' => 'Swaziland',
    'SE' => 'Sweden',
    'CH' => 'Switzerland',
    'SY' => 'Syrian Arab Republic',
    'TW' => 'Taiwan, Province Of China',
    'TJ' => 'Tajikistan',
    'TZ' => 'Tanzania, United Republic Of',
    'TH' => 'Thailand',
    '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',
    'US' => 'United States',
    'UM' => 'United States Minor Outlying Islands',
    'UY' => 'Uruguay',
    'UZ' => 'Uzbekistan',
    'VU' => 'Vanuatu',
    'VE' => 'Venezuela',
    'VN' => 'Viet Nam',
    'VG' => 'Virgin Islands, British',
    'VI' => 'Virgin Islands, U.s.',
    'WF' => 'Wallis And Futuna',
    'EH' => 'Western Sahara',
    'YE' => 'Yemen',
    'ZM' => 'Zambia',
    'ZW' => 'Zimbabwe',
];
@ghost
<select>
  <option value="Afghanistan">Afghanistan</option>
  <option value="Albania">Albania</option>
  <option value="Algeria">Algeria</option>
  <option value="American Samoa">American Samoa</option>
  <option value="Andorra">Andorra</option>
  <option value="Angola">Angola</option>
  <option value="Anguilla">Anguilla</option>
  <option value="Antarctica">Antarctica</option>
  <option value="Antigua And Barbuda">Antigua And Barbuda</option>
  <option value="Argentina">Argentina</option>
  <option value="Armenia">Armenia</option>
  <option value="Aruba">Aruba</option>
  <option value="Australia">Australia</option>
  <option value="Austria">Austria</option>
  <option value="Azerbaijan">Azerbaijan</option>
  <option value="Bahamas">Bahamas</option>
  <option value="Bahrain">Bahrain</option>
  <option value="Bangladesh">Bangladesh</option>
  <option value="Barbados">Barbados</option>
  <option value="Belarus">Belarus</option>
  <option value="Belgium">Belgium</option>
  <option value="Belize">Belize</option>
  <option value="Benin">Benin</option>
  <option value="Bermuda">Bermuda</option>
  <option value="Bhutan">Bhutan</option>
  <option value="Bolivia">Bolivia</option>
  <option value="Bosnia And Herzegovina">Bosnia And Herzegovina</option>
  <option value="Botswana">Botswana</option>
  <option value="Bouvet Island">Bouvet Island</option>
  <option value="Brazil">Brazil</option>
  <option value="British Indian Ocean Territory">British Indian Ocean Territory</option>
  <option value="Brunei Darussalam">Brunei Darussalam</option>
  <option value="Bulgaria">Bulgaria</option>
  <option value="Burkina Faso">Burkina Faso</option>
  <option value="Burundi">Burundi</option>
  <option value="Cambodia">Cambodia</option>
  <option value="Cameroon">Cameroon</option>
  <option value="Canada">Canada</option>
  <option value="Cape Verde">Cape Verde</option>
  <option value="Cayman Islands">Cayman Islands</option>
  <option value="Central African Republic">Central African Republic</option>
  <option value="Chad">Chad</option>
  <option value="Chile">Chile</option>
  <option value="China">China</option>
  <option value="Christmas Island">Christmas Island</option>
  <option value="Cocos (keeling) Islands">Cocos (keeling) Islands</option>
  <option value="Colombia">Colombia</option>
  <option value="Comoros">Comoros</option>
  <option value="Congo">Congo</option>
  <option value="Congo, The Democratic Republic Of The">Congo, The Democratic Republic Of The</option>
  <option value="Cook Islands">Cook Islands</option>
  <option value="Costa Rica">Costa Rica</option>
  <option value="Cote D'ivoire">Cote D'ivoire</option>
  <option value="Croatia">Croatia</option>
  <option value="Cuba">Cuba</option>
  <option value="Cyprus">Cyprus</option>
  <option value="Czech Republic">Czech Republic</option>
  <option value="Denmark">Denmark</option>
  <option value="Djibouti">Djibouti</option>
  <option value="Dominica">Dominica</option>
  <option value="Dominican Republic">Dominican Republic</option>
  <option value="East Timor">East Timor</option>
  <option value="Ecuador">Ecuador</option>
  <option value="Egypt">Egypt</option>
  <option value="El Salvador">El Salvador</option>
  <option value="Equatorial Guinea">Equatorial Guinea</option>
  <option value="Eritrea">Eritrea</option>
  <option value="Estonia">Estonia</option>
  <option value="Ethiopia">Ethiopia</option>
  <option value="Falkland Islands (malvinas)">Falkland Islands (malvinas)</option>
  <option value="Faroe Islands">Faroe Islands</option>
  <option value="Fiji">Fiji</option>
  <option value="Finland">Finland</option>
  <option value="France">France</option>
  <option value="French Guiana">French Guiana</option>
  <option value="French Polynesia">French Polynesia</option>
  <option value="French Southern Territories">French Southern Territories</option>
  <option value="Gabon">Gabon</option>
  <option value="Gambia">Gambia</option>
  <option value="Georgia">Georgia</option>
  <option value="Germany">Germany</option>
  <option value="Ghana">Ghana</option>
  <option value="Gibraltar">Gibraltar</option>
  <option value="Greece">Greece</option>
  <option value="Greenland">Greenland</option>
  <option value="Grenada">Grenada</option>
  <option value="Guadeloupe">Guadeloupe</option>
  <option value="Guam">Guam</option>
  <option value="Guatemala">Guatemala</option>
  <option value="Guinea">Guinea</option>
  <option value="Guinea-bissau">Guinea-bissau</option>
  <option value="Guyana">Guyana</option>
  <option value="Haiti">Haiti</option>
  <option value="Heard Island And Mcdonald Islands">Heard Island And Mcdonald Islands</option>
  <option value="Holy See (vatican City State)">Holy See (vatican City State)</option>
  <option value="Honduras">Honduras</option>
  <option value="Hong Kong">Hong Kong</option>
  <option value="Hungary">Hungary</option>
  <option value="Iceland">Iceland</option>
  <option value="India">India</option>
  <option value="Indonesia">Indonesia</option>
  <option value="Iran, Islamic Republic Of">Iran, Islamic Republic Of</option>
  <option value="Iraq">Iraq</option>
  <option value="Ireland">Ireland</option>
  <option value="Israel">Israel</option>
  <option value="Italy">Italy</option>
  <option value="Jamaica">Jamaica</option>
  <option value="Japan">Japan</option>
  <option value="Jordan">Jordan</option>
  <option value="Kazakstan">Kazakstan</option>
  <option value="Kenya">Kenya</option>
  <option value="Kiribati">Kiribati</option>
  <option value="Korea, Democratic People's Republic Of">Korea, Democratic People's Republic Of</option>
  <option value="Korea, Republic Of">Korea, Republic Of</option>
  <option value="Kosovo">Kosovo</option>
  <option value="Kuwait">Kuwait</option>
  <option value="Kyrgyzstan">Kyrgyzstan</option>
  <option value="Lao People's Democratic Republic">Lao People's Democratic Republic</option>
  <option value="Latvia">Latvia</option>
  <option value="Lebanon">Lebanon</option>
  <option value="Lesotho">Lesotho</option>
  <option value="Liberia">Liberia</option>
  <option value="Libyan Arab Jamahiriya">Libyan Arab Jamahiriya</option>
  <option value="Liechtenstein">Liechtenstein</option>
  <option value="Lithuania">Lithuania</option>
  <option value="Luxembourg">Luxembourg</option>
  <option value="Macau">Macau</option>
  <option value="Macedonia, The Former Yugoslav Republic Of">Macedonia, The Former Yugoslav Republic Of</option>
  <option value="Madagascar">Madagascar</option>
  <option value="Malawi">Malawi</option>
  <option value="Malaysia">Malaysia</option>
  <option value="Maldives">Maldives</option>
  <option value="Mali">Mali</option>
  <option value="Malta">Malta</option>
  <option value="Marshall Islands">Marshall Islands</option>
  <option value="Martinique">Martinique</option>
  <option value="Mauritania">Mauritania</option>
  <option value="Mauritius">Mauritius</option>
  <option value="Mayotte">Mayotte</option>
  <option value="Mexico">Mexico</option>
  <option value="Micronesia, Federated States Of">Micronesia, Federated States Of</option>
  <option value="Moldova, Republic Of">Moldova, Republic Of</option>
  <option value="Monaco">Monaco</option>
  <option value="Mongolia">Mongolia</option>
  <option value="Montserrat">Montserrat</option>
  <option value="Montenegro">Montenegro</option>
  <option value="Morocco">Morocco</option>
  <option value="Mozambique">Mozambique</option>
  <option value="Myanmar">Myanmar</option>
  <option value="Namibia">Namibia</option>
  <option value="Nauru">Nauru</option>
  <option value="Nepal">Nepal</option>
  <option value="Netherlands">Netherlands</option>
  <option value="Netherlands Antilles">Netherlands Antilles</option>
  <option value="New Caledonia">New Caledonia</option>
  <option value="New Zealand">New Zealand</option>
  <option value="Nicaragua">Nicaragua</option>
  <option value="Niger">Niger</option>
  <option value="Nigeria">Nigeria</option>
  <option value="Niue">Niue</option>
  <option value="Norfolk Island">Norfolk Island</option>
  <option value="Northern Mariana Islands">Northern Mariana Islands</option>
  <option value="Norway">Norway</option>
  <option value="Oman">Oman</option>
  <option value="Pakistan">Pakistan</option>
  <option value="Palau">Palau</option>
  <option value="Palestinian Territory, Occupied">Palestinian Territory, Occupied</option>
  <option value="Panama">Panama</option>
  <option value="Papua New Guinea">Papua New Guinea</option>
  <option value="Paraguay">Paraguay</option>
  <option value="Peru">Peru</option>
  <option value="Philippines">Philippines</option>
  <option value="Pitcairn">Pitcairn</option>
  <option value="Poland">Poland</option>
  <option value="Portugal">Portugal</option>
  <option value="Puerto Rico">Puerto Rico</option>
  <option value="Qatar">Qatar</option>
  <option value="Reunion">Reunion</option>
  <option value="Russian Federation">Russian Federation</option>
  <option value="Rwanda">Rwanda</option>
  <option value="Saint Helena">Saint Helena</option>
  <option value="Saint Kitts And Nevis">Saint Kitts And Nevis</option>
  <option value="Saint Lucia">Saint Lucia</option>
  <option value="Saint Pierre And Miquelon">Saint Pierre And Miquelon</option>
  <option value="Saint Vincent And The Grenadines">Saint Vincent And The Grenadines</option>
  <option value="Samoa">Samoa</option>
  <option value="San Marino">San Marino</option>
  <option value="Sao Tome And Principe">Sao Tome And Principe</option>
  <option value="Saudi Arabia">Saudi Arabia</option>
  <option value="Senegal">Senegal</option>
  <option value="Serbia">Serbia</option>
  <option value="Seychelles">Seychelles</option>
  <option value="Sierra Leone">Sierra Leone</option>
  <option value="Singapore">Singapore</option>
  <option value="Slovakia">Slovakia</option>
  <option value="Slovenia">Slovenia</option>
  <option value="Solomon Islands">Solomon Islands</option>
  <option value="Somalia">Somalia</option>
  <option value="South Africa">South Africa</option>
  <option value="South Georgia And The South Sandwich Islands">South Georgia And The South Sandwich Islands</option>
  <option value="Spain">Spain</option>
  <option value="Sri Lanka">Sri Lanka</option>
  <option value="Sudan">Sudan</option>
  <option value="Suriname">Suriname</option>
  <option value="Svalbard And Jan Mayen">Svalbard And Jan Mayen</option>
  <option value="Swaziland">Swaziland</option>
  <option value="Sweden">Sweden</option>
  <option value="Switzerland">Switzerland</option>
  <option value="Syrian Arab Republic">Syrian Arab Republic</option>
  <option value="Taiwan, Province Of China">Taiwan, Province Of China</option>
  <option value="Tajikistan">Tajikistan</option>
  <option value="Tanzania, United Republic Of">Tanzania, United Republic Of</option>
  <option value="Thailand">Thailand</option>
  <option value="Togo">Togo</option>
  <option value="Tokelau">Tokelau</option>
  <option value="Tonga">Tonga</option>
  <option value="Trinidad And Tobago">Trinidad And Tobago</option>
  <option value="Tunisia">Tunisia</option>
  <option value="Turkey">Turkey</option>
  <option value="Turkmenistan">Turkmenistan</option>
  <option value="Turks And Caicos Islands">Turks And Caicos Islands</option>
  <option value="Tuvalu">Tuvalu</option>
  <option value="Uganda">Uganda</option>
  <option value="Ukraine">Ukraine</option>
  <option value="United Arab Emirates">United Arab Emirates</option>
  <option value="United Kingdom">United Kingdom</option>
  <option value="United States">United States</option>
  <option value="United States Minor Outlying Islands">United States Minor Outlying Islands</option>
  <option value="Uruguay">Uruguay</option>
  <option value="Uzbekistan">Uzbekistan</option>
  <option value="Vanuatu">Vanuatu</option>
  <option value="Venezuela">Venezuela</option>
  <option value="Viet Nam">Viet Nam</option>
  <option value="Virgin Islands, British">Virgin Islands, British</option>
  <option value="Virgin Islands, U.s.">Virgin Islands, U.s.</option>
  <option value="Wallis And Futuna">Wallis And Futuna</option>
  <option value="Western Sahara">Western Sahara</option>
  <option value="Yemen">Yemen</option>
  <option value="Zambia">Zambia</option>
  <option value="Zimbabwe">Zimbabwe</option>
</select>
@cedricbousmanne

Here's the simplied YAML list (country_code to name)

countries:
  AF:"Afghanistan"
  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"
  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:"Congo, The Democratic Republic Of The"
  CK:"Cook Islands"
  CR:"Costa Rica"
  CI:"Cote D'ivoire"
  HR:"Croatia"
  CU:"Cuba"
  CY:"Cyprus"
  CZ:"Czech Republic"
  DK:"Denmark"
  DJ:"Djibouti"
  DM:"Dominica"
  DO:"Dominican Republic"
  TP:"East Timor"
  EC:"Ecuador"
  EG:"Egypt"
  SV:"El Salvador"
  GQ:"Equatorial Guinea"
  ER:"Eritrea"
  EE:"Estonia"
  ET:"Ethiopia"
  FK:"Falkland Islands (malvinas)"
  FO:"Faroe 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"
  GN:"Guinea"
  GW:"Guinea-bissau"
  GY:"Guyana"
  HT:"Haiti"
  HM:"Heard Island And Mcdonald Islands"
  VA:"Holy See (vatican City State)"
  HN:"Honduras"
  HK:"Hong Kong"
  HU:"Hungary"
  IS:"Iceland"
  IN:"India"
  ID:"Indonesia"
  IR:"Iran, Islamic Republic Of"
  IQ:"Iraq"
  IE:"Ireland"
  IL:"Israel"
  IT:"Italy"
  JM:"Jamaica"
  JP:"Japan"
  JO:"Jordan"
  KZ:"Kazakstan"
  KE:"Kenya"
  KI:"Kiribati"
  KP:"Korea, Democratic People's Republic Of"
  KR:"Korea, Republic Of"
  KV:"Kosovo"
  KW:"Kuwait"
  KG:"Kyrgyzstan"
  LA:"Lao People's Democratic Republic"
  LV:"Latvia"
  LB:"Lebanon"
  LS:"Lesotho"
  LR:"Liberia"
  LY:"Libyan Arab Jamahiriya"
  LI:"Liechtenstein"
  LT:"Lithuania"
  LU:"Luxembourg"
  MO:"Macau"
  MK:"Macedonia, The Former Yugoslav Republic Of"
  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:"Moldova, Republic Of"
  MC:"Monaco"
  MN:"Mongolia"
  MS:"Montserrat"
  ME:"Montenegro"
  MA:"Morocco"
  MZ:"Mozambique"
  MM:"Myanmar"
  NA:"Namibia"
  NR:"Nauru"
  NP:"Nepal"
  NL:"Netherlands"
  AN:"Netherlands Antilles"
  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:"Palestinian Territory, Occupied"
  PA:"Panama"
  PG:"Papua New Guinea"
  PY:"Paraguay"
  PE:"Peru"
  PH:"Philippines"
  PN:"Pitcairn"
  PL:"Poland"
  PT:"Portugal"
  PR:"Puerto Rico"
  QA:"Qatar"
  RE:"Reunion"
  RO:"Romania"
  RU:"Russian Federation"
  RW:"Rwanda"
  SH:"Saint Helena"
  KN:"Saint Kitts And Nevis"
  LC:"Saint Lucia"
  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"
  SK:"Slovakia"
  SI:"Slovenia"
  SB:"Solomon Islands"
  SO:"Somalia"
  ZA:"South Africa"
  GS:"South Georgia And The South Sandwich Islands"
  ES:"Spain"
  LK:"Sri Lanka"
  SD:"Sudan"
  SR:"Suriname"
  SJ:"Svalbard And Jan Mayen"
  SZ:"Swaziland"
  SE:"Sweden"
  CH:"Switzerland"
  SY:"Syrian Arab Republic"
  TW:"Taiwan, Province Of China"
  TJ:"Tajikistan"
  TZ:"Tanzania, United Republic Of"
  TH:"Thailand"
  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"
  US:"United States"
  UM:"United States Minor Outlying Islands"
  UY:"Uruguay"
  UZ:"Uzbekistan"
  VU:"Vanuatu"
  VE:"Venezuela"
  VN:"Viet Nam"
  VG:"Virgin Islands, British"
  VI:"Virgin Islands, U.s."
  WF:"Wallis And Futuna"
  EH:"Western Sahara"
  YE:"Yemen"
  ZM:"Zambia"
  ZW:"Zimbabwe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment