Skip to content

Instantly share code, notes, and snippets.

@marijn
Last active September 13, 2024 19:00
Show Gist options
  • Save marijn/396531 to your computer and use it in GitHub Desktop.
Save marijn/396531 to your computer and use it in GitHub Desktop.
List of countries in YAML, CSV and TXT format
@ThisDude75368
Copy link

For all those looking to INSERT this INTO SQL Server - Cheers:

('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 Divoire'), ('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 Peoples Republic Of'), ('KR','Korea, Republic Of'), ('KV','Kosovo'), ('KW','Kuwait'), ('KG','Kyrgyzstan'), ('LA','Lao Peoples 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')

@rebelmusic
Copy link

Here is a straight up list with a new country on each line.

Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua And Barbuda
Argentina
Armenia
Aruba
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bosnia And Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Canada
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Democratic People's Republic of Korea
Democratic Republic Of The Congo
Cook Islands
Costa Rica
Cote D'ivoire
Croatia
Cuba
Cyprus
Czech Republic
Denmark
Djibouti
Dominica
Dominican Republic
East Timor
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guinea
Guinea-bissau
Guyana
Haiti
Heard Island And Mcdonald Islands
Holy See (Vatican City State)
Honduras
Hong Kong
Hungary
Iceland
India
Indonesia
Iran
Iraq
Ireland
Israel
Italy
Jamaica
Japan
Jordan
Kazakstan
Kenya
Kiribati
Kosovo
Kuwait
Kyrgyzstan
Laos
Latvia
Lebanon
Lesotho
Liberia
Libyan Arab Jamahiriya
Liechtenstein
Lithuania
Luxembourg
Macau
Macedonia
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Federated States Of Micronesia
Republic Of Moldova
Monaco
Mongolia
Montserrat
Montenegro
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands
Netherlands Antilles
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
Northern Mariana Islands
Norway
Oman
Pakistan
Palau
Palestinian Territory
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Romania
Russian Federation
Rwanda
Saint Helena
Saint Kitts And Nevis
Saint Lucia
Saint Pierre And Miquelon
Saint Vincent And The Grenadines
Samoa
San Marino
Sao Tome And Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Singapore
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Georgia And The South Sandwich Islands
The Republic of South Korea
Spain
Sri Lanka
Sudan
Suriname
Svalbard And Jan Mayen
Swaziland
Sweden
Switzerland
Syrian Arab Republic
Taiwan
Tajikistan
Tanzania
Thailand
Togo
Tokelau
Tonga
Trinidad And Tobago
Tunisia
Turkey
Turkmenistan
Turks And Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United Kingdom
United States of America
United States Minor Outlying Islands
Uruguay
Uzbekistan
Vanuatu
Venezuela
Vietnam
British Virgin Islands
US Virgin Islands
Wallis And Futuna
Western Sahara
Yemen
Zambia
Zimbabwe

@DWScode
Copy link

DWScode commented Feb 6, 2019

Name,Code
Afghanistan,AF
Åland Islands,AX
Albania,AL
Algeria,DZ
American Samoa,AS
Andorra,AD
Angola,AO
Anguilla,AI
Antarctica,AQ
Antigua and Barbuda,AG
Argentina,AR
Armenia,AM
Aruba,AW
Australia,AU
Austria,AT
Azerbaijan,AZ
Bahamas,BS
Bahrain,BH
Bangladesh,BD
Barbados,BB
Belarus,BY
Belgium,BE
Belize,BZ
Benin,BJ
Bermuda,BM
Bhutan,BT
Bolivia - Plurinational State of,BO
Bonaire - Sint Eustatius and Saba,BQ
Bosnia and Herzegovina,BA
Botswana,BW
Bouvet Island,BV
Brazil,BR
British Indian Ocean Territory,IO
Brunei Darussalam,BN
Bulgaria,BG
Burkina Faso,BF
Burundi,BI
Cambodia,KH
Cameroon,CM
Canada,CA
Cape Verde,CV
Cayman Islands,KY
Central African Republic,CF
Chad,TD
Chile,CL
China,CN
Christmas Island,CX
Cocos (Keeling) Islands,CC
Colombia,CO
Comoros,KM
Congo,CG
Congo - The Democratic Republic of the,CD
Cook Islands,CK
Costa Rica,CR
Côte d'Ivoire,CI
Croatia,HR
Cuba,CU
Curaçao,CW
Cyprus,CY
Czech Republic,CZ
Denmark,DK
Djibouti,DJ
Dominica,DM
Dominican Republic,DO
Ecuador,EC
Egypt,EG
El Salvador,SV
Equatorial Guinea,GQ
Eritrea,ER
Estonia,EE
Ethiopia,ET
Falkland Islands (Malvinas),FK
Faroe Islands,FO
Fiji,FJ
Finland,FI
France,FR
French Guiana,GF
French Polynesia,PF
French Southern Territories,TF
Gabon,GA
Gambia,GM
Georgia,GE
Germany,DE
Ghana,GH
Gibraltar,GI
Greece,GR
Greenland,GL
Grenada,GD
Guadeloupe,GP
Guam,GU
Guatemala,GT
Guernsey,GG
Guinea,GN
Guinea-Bissau,GW
Guyana,GY
Haiti,HT
Heard Island and McDonald Islands,HM
Holy See (Vatican City State),VA
Honduras,HN
Hong Kong,HK
Hungary,HU
Iceland,IS
India,IN
Indonesia,ID
Iran - Islamic Republic of,IR
Iraq,IQ
Ireland,IE
Isle of Man,IM
Israel,IL
Italy,IT
Jamaica,JM
Japan,JP
Jersey,JE
Jordan,JO
Kazakhstan,KZ
Kenya,KE
Kiribati,KI
Korea - Democratic People's Republic of,KP
Korea - Republic of,KR
Kuwait,KW
Kyrgyzstan,KG
Lao People's Democratic Republic,LA
Latvia,LV
Lebanon,LB
Lesotho,LS
Liberia,LR
Libya,LY
Liechtenstein,LI
Lithuania,LT
Luxembourg,LU
Macao,MO
Macedonia - The Former Yugoslav Republic of,MK
Madagascar,MG
Malawi,MW
Malaysia,MY
Maldives,MV
Mali,ML
Malta,MT
Marshall Islands,MH
Martinique,MQ
Mauritania,MR
Mauritius,MU
Mayotte,YT
Mexico,MX
Micronesia - Federated States of,FM
Moldova - Republic of,MD
Monaco,MC
Mongolia,MN
Montenegro,ME
Montserrat,MS
Morocco,MA
Mozambique,MZ
Myanmar,MM
Namibia,NA
Nauru,NR
Nepal,NP
Netherlands,NL
New Caledonia,NC
New Zealand,NZ
Nicaragua,NI
Niger,NE
Nigeria,NG
Niue,NU
Norfolk Island,NF
Northern Mariana Islands,MP
Norway,NO
Oman,OM
Pakistan,PK
Palau,PW
Palestine - State of,PS
Panama,PA
Papua New Guinea,PG
Paraguay,PY
Peru,PE
Philippines,PH
Pitcairn,PN
Poland,PL
Portugal,PT
Puerto Rico,PR
Qatar,QA
Réunion,RE
Romania,RO
Russian Federation,RU
Rwanda,RW
Saint Barthélemy,BL
Saint Helena - Ascension and Tristan da Cunha,SH
Saint Kitts and Nevis,KN
Saint Lucia,LC
Saint Martin (French part),MF
Saint Pierre and Miquelon,PM
Saint Vincent and the Grenadines,VC
Samoa,WS
San Marino,SM
Sao Tome and Principe,ST
Saudi Arabia,SA
Senegal,SN
Serbia,RS
Seychelles,SC
Sierra Leone,SL
Singapore,SG
Sint Maarten (Dutch part),SX
Slovakia,SK
Slovenia,SI
Solomon Islands,SB
Somalia,SO
South Africa,ZA
South Georgia and the South Sandwich Islands,GS
South Sudan,SS
Spain,ES
Sri Lanka,LK
Sudan,SD
Suriname,SR
Svalbard and Jan Mayen,SJ
Swaziland,SZ
Sweden,SE
Switzerland,CH
Syrian Arab Republic,SY
Taiwan - Province of China,TW
Tajikistan,TJ
Tanzania - United Republic of,TZ
Thailand,TH
Timor-Leste,TL
Togo,TG
Tokelau,TK
Tonga,TO
Trinidad and Tobago,TT
Tunisia,TN
Turkey,TR
Turkmenistan,TM
Turks and Caicos Islands,TC
Tuvalu,TV
Uganda,UG
Ukraine,UA
United Arab Emirates,AE
United Kingdom,GB
United States,US
United States Minor Outlying Islands,UM
Uruguay,UY
Uzbekistan,UZ
Vanuatu,VU
Venezuela - Bolivarian Republic of,VE
Viet Nam,VN
Virgin Islands - British,VG
Virgin Islands - U.S.,VI
Wallis and Futuna,WF
Western Sahara,EH
Yemen,YE
Zambia,ZM
Zimbabwe,ZW

@antag0n1st
Copy link

MK|Macedonia, The Former Yugoslav Republic Of
It is now named "North Macedonia"

@marijn
Copy link
Author

marijn commented Nov 29, 2019

@antag0n1st check https://github.com/umpirsky/country-list for a better list. There it is also easy to add a pull request.

Nonetheless, thanks for contributing.

@alerti
Copy link

alerti commented May 16, 2020

sql
INSERT INTO countries(name) VALUES
('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'),
('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 Peoples Republic Of'),
('KR|Korea, Republic Of'),
('KV|Kosovo'),
('KW|Kuwait'),
('KG|Kyrgyzstan'),
('LA|Lao Peoples 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');

@balatD
Copy link

balatD commented Jul 21, 2020

                Afghanistan: "Afghanistan"
                Albania: "Albania"
                Algeria: "Algeria"
                American Samoa: "American Samoa"
                Andorra: "Andorra"
                Angola: "Angola"
                Anguilla: "Anguilla"
                Antarctica: "Antarctica"
                Antigua And Barbuda: "Antigua And Barbuda"
                Argentina: "Argentina"
                Armenia: "Armenia"
                Aruba: "Aruba"
                Australia: "Australia"
                Austria: "Austria"
                Azerbaijan: "Azerbaijan"
                Bahamas: "Bahamas"
                Bahrain: "Bahrain"
                Bangladesh: "Bangladesh"
                Barbados: "Barbados"
                Belarus: "Belarus"
                Belgium: "Belgium"
                Belize: "Belize"
                Benin: "Benin"
                Bermuda: "Bermuda"
                Bhutan: "Bhutan"
                Bolivia: "Bolivia"
                Bosnia And Herzegovina: "Bosnia And Herzegovina"
                Botswana: "Botswana"
                Bouvet Island: "Bouvet Island"
                Brazil: "Brazil"
                British Indian Ocean Territory: "British Indian Ocean Territory"
                Brunei Darussalam: "Brunei Darussalam"
                Bulgaria: "Bulgaria"
                Burkina Faso: "Burkina Faso"
                Burundi: "Burundi"
                Cambodia: "Cambodia"
                Cameroon: "Cameroon"
                Canada: "Canada"
                Cape Verde: "Cape Verde"
                Cayman Islands: "Cayman Islands"
                Central African Republic: "Central African Republic"
                Chad: "Chad"
                Chile: "Chile"
                China: "China"
                Christmas Island: "Christmas Island"
                Cocos (keeling) Islands: "Cocos (keeling) Islands"
                Colombia: "Colombia"
                Comoros: "Comoros"
                Congo: "Congo"
                Congo, The Democratic Republic Of The: "Congo, The Democratic Republic Of The"
                Cook Islands: "Cook Islands"
                Costa Rica: "Costa Rica"
                Cote D'ivoire: "Cote D'ivoire"
                Croatia: "Croatia"
                Cuba: "Cuba"
                Cyprus: "Cyprus"
                Czech Republic: "Czech Republic"
                Denmark: "Denmark"
                Djibouti: "Djibouti"
                Dominica: "Dominica"
                Dominican Republic: "Dominican Republic"
                East Timor: "East Timor"
                Ecuador: "Ecuador"
                Egypt: "Egypt"
                El Salvador: "El Salvador"
                Equatorial Guinea: "Equatorial Guinea"
                Eritrea: "Eritrea"
                Estonia: "Estonia"
                Ethiopia: "Ethiopia"
                Falkland Islands (malvinas): "Falkland Islands (malvinas)"
                Faroe Islands: "Faroe Islands"
                Fiji: "Fiji"
                Finland: "Finland"
                France: "France"
                French Guiana: "French Guiana"
                French Polynesia: "French Polynesia"
                French Southern Territories: "French Southern Territories"
                Gabon: "Gabon"
                Gambia: "Gambia"
                Georgia: "Georgia"
                Germany: "Germany"
                Ghana: "Ghana"
                Gibraltar: "Gibraltar"
                Greece: "Greece"
                Greenland: "Greenland"
                Grenada: "Grenada"
                Guadeloupe: "Guadeloupe"
                Guam: "Guam"
                Guatemala: "Guatemala"
                Guinea: "Guinea"
                Guinea-bissau: "Guinea-bissau"
                Guyana: "Guyana"
                Haiti: "Haiti"
                Heard Island And Mcdonald Islands: "Heard Island And Mcdonald Islands"
                Holy See (vatican City State): "Holy See (vatican City State)"
                Honduras: "Honduras"
                Hong Kong: "Hong Kong"
                Hungary: "Hungary"
                Iceland: "Iceland"
                India: "India"
                Indonesia: "Indonesia"
                Iran, Islamic Republic Of: "Iran, Islamic Republic Of"
                Iraq: "Iraq"
                Ireland: "Ireland"
                Israel: "Israel"
                Italy: "Italy"
                Jamaica: "Jamaica"
                Japan: "Japan"
                Jordan: "Jordan"
                Kazakstan: "Kazakstan"
                Kenya: "Kenya"
                Kiribati: "Kiribati"
                Korea, Democratic People's Republic Of: "Korea, Democratic People's Republic Of"
                Korea, Republic Of: "Korea, Republic Of"
                Kosovo: "Kosovo"
                Kuwait: "Kuwait"
                Kyrgyzstan: "Kyrgyzstan"
                Lao People's Democratic Republic: "Lao People's Democratic Republic"
                Latvia: "Latvia"
                Lebanon: "Lebanon"
                Lesotho: "Lesotho"
                Liberia: "Liberia"
                Libyan Arab Jamahiriya: "Libyan Arab Jamahiriya"
                Liechtenstein: "Liechtenstein"
                Lithuania: "Lithuania"
                Luxembourg: "Luxembourg"
                Macau: "Macau"
                Macedonia, The Former Yugoslav Republic Of: "Macedonia, The Former Yugoslav Republic Of"
                Madagascar: "Madagascar"
                Malawi: "Malawi"
                Malaysia: "Malaysia"
                Maldives: "Maldives"
                Mali: "Mali"
                Malta: "Malta"
                Marshall Islands: "Marshall Islands"
                Martinique: "Martinique"
                Mauritania: "Mauritania"
                Mauritius: "Mauritius"
                Mayotte: "Mayotte"
                Mexico: "Mexico"
                Micronesia, Federated States Of: "Micronesia, Federated States Of"
                Moldova, Republic Of: "Moldova, Republic Of"
                Monaco: "Monaco"
                Mongolia: "Mongolia"
                Montserrat: "Montserrat"
                Montenegro: "Montenegro"
                Morocco: "Morocco"
                Mozambique: "Mozambique"
                Myanmar: "Myanmar"
                Namibia: "Namibia"
                Nauru: "Nauru"
                Nepal: "Nepal"
                Netherlands: "Netherlands"
                Netherlands Antilles: "Netherlands Antilles"
                New Caledonia: "New Caledonia"
                New Zealand: "New Zealand"
                Nicaragua: "Nicaragua"
                Niger: "Niger"
                Nigeria: "Nigeria"
                Niue: "Niue"
                Norfolk Island: "Norfolk Island"
                Northern Mariana Islands: "Northern Mariana Islands"
                Norway: "Norway"
                Oman: "Oman"
                Pakistan: "Pakistan"
                Palau: "Palau"
                Palestinian Territory, Occupied: "Palestinian Territory, Occupied"
                Panama: "Panama"
                Papua New Guinea: "Papua New Guinea"
                Paraguay: "Paraguay"
                Peru: "Peru"
                Philippines: "Philippines"
                Pitcairn: "Pitcairn"
                Poland: "Poland"
                Portugal: "Portugal"
                Puerto Rico: "Puerto Rico"
                Qatar: "Qatar"
                Reunion: "Reunion"
                Romania: "Romania"
                Russian Federation: "Russian Federation"
                Rwanda: "Rwanda"
                Saint Helena: "Saint Helena"
                Saint Kitts And Nevis: "Saint Kitts And Nevis"
                Saint Lucia: "Saint Lucia"
                Saint Pierre And Miquelon: "Saint Pierre And Miquelon"
                Saint Vincent And The Grenadines: "Saint Vincent And The Grenadines"
                Samoa: "Samoa"
                San Marino: "San Marino"
                Sao Tome And Principe: "Sao Tome And Principe"
                Saudi Arabia: "Saudi Arabia"
                Senegal: "Senegal"
                Serbia: "Serbia"
                Seychelles: "Seychelles"
                Sierra Leone: "Sierra Leone"
                Singapore: "Singapore"
                Slovakia: "Slovakia"
                Slovenia: "Slovenia"
                Solomon Islands: "Solomon Islands"
                Somalia: "Somalia"
                South Africa: "South Africa"
                South Georgia And The South Sandwich Islands: "South Georgia And The South Sandwich Islands"
                Spain: "Spain"
                Sri Lanka: "Sri Lanka"
                Sudan: "Sudan"
                Suriname: "Suriname"
                Svalbard And Jan Mayen: "Svalbard And Jan Mayen"
                Swaziland: "Swaziland"
                Sweden: "Sweden"
                Switzerland: "Switzerland"
                Syrian Arab Republic: "Syrian Arab Republic"
                Taiwan, Province Of China: "Taiwan, Province Of China"
                Tajikistan: "Tajikistan"
                Tanzania, United Republic Of: "Tanzania, United Republic Of"
                Thailand: "Thailand"
                Togo: "Togo"
                Tokelau: "Tokelau"
                Tonga: "Tonga"
                Trinidad And Tobago: "Trinidad And Tobago"
                Tunisia: "Tunisia"
                Turkey: "Turkey"
                Turkmenistan: "Turkmenistan"
                Turks And Caicos Islands: "Turks And Caicos Islands"
                Tuvalu: "Tuvalu"
                Uganda: "Uganda"
                Ukraine: "Ukraine"
                United Arab Emirates: "United Arab Emirates"
                United Kingdom: "United Kingdom"
                United States: "United States"
                United States Minor Outlying Islands: "United States Minor Outlying Islands"
                Uruguay: "Uruguay"
                Uzbekistan: "Uzbekistan"
                Vanuatu: "Vanuatu"
                Venezuela: "Venezuela"
                Viet Nam: "Viet Nam"
                Virgin Islands, British: "Virgin Islands, British"
                Virgin Islands, U.s.: "Virgin Islands, U.s."
                Wallis And Futuna: "Wallis And Futuna"
                Western Sahara: "Western Sahara"
                Yemen: "Yemen"
                Zambia: "Zambia"
                Zimbabwe: "Zimbabwe"

Use case TYPO3 EXT:Form yaml selectbox options!

@ab-muhammad-hamza
Copy link

AF
AL
DZ
AS
AD
AO
AI
AQ
AG
AR
AM
AW
AU
AT
AZ
BS
BH
BD
BB
BY
BE
BZ
BJ
BM
BT
BO
BA
BW
BV
BR
IO
BN
BG
BF
BI
KH
CM
CA
CV
KY
CF
TD
CL
CN
CX
CC
CO
KM
CG
CD
CK
CR
CI
HR
CU
CY
CZ
DK
DJ
DM
DO
TP
EC
EG
SV
GQ
ER
EE
ET
FK
FO
FJ
FI
FR
GF
PF
TF
GA
GM
GE
DE
GH
GI
GR
GL
GD
GP
GU
GT
GN
GW
GY
HT
HM
VA
HN
HK
HU
IS
IN
ID
IR
IQ
IE
IL
IT
JM
JP
JO
KZ
KE
KI
KP
KR
KV
KW
KG
LA
LV
LB
LS
LR
LY
LI
LT
LU
MO
MK
MG
MW
MY
MV
ML
MT
MH
MQ
MR
MU
YT
MX
FM
MD
MC
MN
MS
ME
MA
MZ
MM
NA
NR
NP
NL
AN
NC
NZ
NI
NE
NG
NU
NF
MP
NO
OM
PK
PW
PS
PA
PG
PY
PE
PH
PN
PL
PT
PR
QA
RE
RO
RU
RW
SH
KN
LC
PM
VC
WS
SM
ST
SA
SN
RS
SC
SL
SG
SK
SI
SB
SO
ZA
GS
ES
LK
SD
SR
SJ
SZ
SE
CH
SY
TW
TJ
TZ
TH
TG
TK
TO
TT
TN
TR
TM
TC
TV
UG
UA
AE
GB
US
UM
UY
UZ
VU
VE
VN
VG
VI
WF
EH
YE
ZM
ZW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment