Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Country Code, ISO and Nationality ( Please use https://mledoze.github.io/countries/ )
CCA2 Name CCA3 Nationality
AD Andorra AND Andorran
AE United Arab Emirates ARE Emirati
AF Afghanistan AFG Afghan
AG Antigua and Barbuda ATG Antiguan, Barbudan
AI Anguilla AIA Anguillian
AL Albania ALB Albanian
AM Armenia ARM Armenian
AN Netherlands Antilles ANT Dutch
AO Angola AGO Angolan
AQ Antarctica ATA ???
AR Argentina ARG Argentinean
AS American Samoa ASM American Samoan
AT Austria AUT Austrian
AU Australia AUS Australian
AW Aruba ABW Aruban
AX Åland Islands ALA Swedish
AZ Azerbaijan AZE Azerbaijani
BA Bosnia and Herzegovina BIH Bosnian, Herzegovinian
BB Barbados BRB Barbadian
BD Bangladesh BGD Bangladeshi
BE Belgium BEL Belgian
BF Burkina Faso BFA Burkinabe
BG Bulgaria BGR Bulgarian
BH Bahrain BHR Bahraini
BI Burundi BDI Burundian
BJ Benin BEN Beninese
BL Saint Barthélemy BLM Saint Barthélemy Islander
BM Bermuda BMU Bermudian
BN Brunei BRN Bruneian
BO Bolivia BOL Bolivian
BQ British Antarctic Territory BES Dutch
BR Brazil BRA Brazilian
BS Bahamas BHS Bahamian
BT Bhutan BTN Bhutanese
BV Bouvet Island BVT ???
BW Botswana BWA Motswana
BY Belarus BLR Belarusian
BZ Belize BLZ Belizean
CA Canada CAN Canadian
CC Cocos [Keeling] Islands CCK Cocos Islander
CD Congo - Kinshasa COD Congolese
CF Central African Republic CAF Central African
CG Congo - Brazzaville COG Congolese
CH Switzerland CHE Swiss
CI Côte d’Ivoire CIV Ivorian
CK Cook Islands COK Cook Islander
CL Chile CHL Chilean
CM Cameroon CMR Cameroonian
CN China CHN Chinese
CO Colombia COL Colombian
CR Costa Rica CRI Costa Rican
CS Serbia and Montenegro SCG Montenegrins, Serbs
CT Canton and Enderbury Islands CTE ???
CU Cuba CUB Cuban
CV Cape Verde CPV Cape Verdian
CW Curaçao CUW Curaçaoan
CX Christmas Island CXR Christmas Island
CY Cyprus CYP Cypriot
CZ Czech Republic CZE Czech
DE Germany DEU German
DJ Djibouti DJI Djibouti
DK Denmark DNK Danish
DM Dominica DMA Dominican
DO Dominican Republic DOM Dominican
DZ Algeria DZA Algerian
EC Ecuador ECU Ecuadorean
EE Estonia EST Estonian
EG Egypt EGY Egyptian
EH Western Sahara ESH Sahrawi
ER Eritrea ERI Eritrean
ES Spain ESP Spanish
ET Ethiopia ETH Ethiopian
FI Finland FIN Finnish
FJ Fiji FJI Fijian
FK Falkland Islands FLK Falkland Islander
FM Micronesia FSM Micronesian
FO Faroe Islands FRO Faroese
FQ French Southern and Antarctic Territories ATF ???
FR France FRA French
FX Metropolitan France FXX ???
GA Gabon GAB Gabonese
GB United Kingdom GBR British
GD Grenada GRD Grenadian
GE Georgia GEO Georgian
GF French Guiana GUF ???
GG Guernsey GGY Channel Islander
GH Ghana GHA Ghanaian
GI Gibraltar GIB Gibraltar
GL Greenland GRL Greenlandic
GM Gambia GMB Gambian
GN Guinea GIN Guinean
GP Guadeloupe GLP Guadeloupian
GQ Equatorial Guinea GNQ Equatorial Guinean
GR Greece GRC Greek
GS South Georgia and the South Sandwich Islands SGS South Georgia and the South Sandwich Islander
GT Guatemala GTM Guatemalan
GU Guam GUM Guamanian
GW Guinea-Bissau GNB Guinea-Bissauan
GY Guyana GUY Guyanese
HK Hong Kong SAR China HKG Chinese
HM Heard Island and McDonald Islands HMD Heard and McDonald Islander
HN Honduras HND Honduran
HR Croatia HRV Croatian
HT Haiti HTI Haitian
HU Hungary HUN Hungarian
ID Indonesia IDN Indonesian
IE Ireland IRL Irish
IL Israel ISR Israeli
IM Isle of Man IMN Manx
IN India IND Indian
IO British Indian Ocean Territory IOT Indian
IQ Iraq IRQ Iraqi
IR Iran IRN Iranian
IS Iceland ISL Icelander
IT Italy ITA Italian
JE Jersey JEY Channel Islander
JM Jamaica JAM Jamaican
JO Jordan JOR Jordanian
JP Japan JPN Japanese
JT Johnston Island JTN ???
KE Kenya KEN Kenyan
KG Kyrgyzstan KGZ Kirghiz
KH Cambodia KHM Cambodian
KI Kiribati KIR I-Kiribati
KM Comoros COM Comoran
KN Saint Kitts and Nevis KNA Kittian and Nevisian
KP North Korea PRK North Korean
KR South Korea KOR South Korean
KW Kuwait KWT Kuwaiti
KY Cayman Islands CYM Caymanian
KZ Kazakhstan KAZ Kazakhstani
LA Laos LAO Laotian
LB Lebanon LBN Lebanese
LC Saint Lucia LCA Saint Lucian
LI Liechtenstein LIE Liechtensteiner
LK Sri Lanka LKA Sri Lankan
LR Liberia LBR Liberian
LS Lesotho LSO Mosotho
LT Lithuania LTU Lithuanian
LU Luxembourg LUX Luxembourger
LV Latvia LVA Latvian
LY Libya LBY Libyan
MA Morocco MAR Moroccan
MC Monaco MCO Monegasque
MD Moldova MDA Moldovan
ME Montenegro MNE Montenegrin
MF Saint Martin MAF Saint Martin Islander
MG Madagascar MDG Malagasy
MH Marshall Islands MHL Marshallese
MI Midway Islands MID ???
MK Macedonia MKD Macedonian
ML Mali MLI Malian
MM Myanmar [Burma] MMR Myanmar
MN Mongolia MNG Mongolian
MO Macau SAR China MAC Chinese
MP Northern Mariana Islands MNP American
MQ Martinique MTQ French
MR Mauritania MRT Mauritanian
MS Montserrat MSR Montserratian
MT Malta MLT Maltese
MU Mauritius MUS Mauritian
MV Maldives MDV Maldivan
MW Malawi MWI Malawian
MX Mexico MEX Mexican
MY Malaysia MYS Malaysian
MZ Mozambique MOZ Mozambican
NA Namibia NAM Namibian
NC New Caledonia NCL New Caledonian
NE Niger NER Nigerian
NF Norfolk Island NFK Norfolk Islander
NG Nigeria NGA Nigerian
NI Nicaragua NIC Nicaraguan
NL Netherlands NLD Dutch
NO Norway NOR Norwegian
NP Nepal NPL Nepalese
NQ Dronning Maud Land ATN ???
NR Nauru NRU Nauruan
NT Neutral Zone NTZ ???
NU Niue NIU Niuean
NZ New Zealand NZL New Zealander
OM Oman OMN Omani
PA Panama PAN Panamanian
PC Pacific Islands Trust Territory PCI ???
PE Peru PER Peruvian
PF French Polynesia PYF French Polynesian
PG Papua New Guinea PNG Papua New Guinean
PH Philippines PHL Filipino
PK Pakistan PAK Pakistani
PL Poland POL Polish
PM Saint Pierre and Miquelon SPM French
PN Pitcairn Islands PCN Pitcairn Islander
PR Puerto Rico PRI Puerto Rican
PS Palestinian Territories PSE Palestinian
PT Portugal PRT Portuguese
PU U.S. Miscellaneous Pacific Islands PUS ???
PW Palau PLW Palauan
PY Paraguay PRY Paraguayan
PZ Panama Canal Zone PCZ ???
QA Qatar QAT Qatari
RE Réunion REU French
RO Romania ROU Romanian
RS Serbia SRB Serbian
RU Russia RUS Russian
RW Rwanda RWA Rwandan
SA Saudi Arabia SAU Saudi Arabian
SB Solomon Islands SLB Solomon Islander
SC Seychelles SYC Seychellois
SD Sudan SDN Sudanese
SE Sweden SWE Swedish
SG Singapore SGP Singaporean
SH Saint Helena SHN Saint Helenian
SI Slovenia SVN Slovene
SJ Svalbard and Jan Mayen SJM Norwegian
SK Slovakia SVK Slovak
SL Sierra Leone SLE Sierra Leonean
SM San Marino SMR Sammarinese
SN Senegal SEN Senegalese
SO Somalia SOM Somali
SR Suriname SUR Surinamer
ST São Tomé and Príncipe STP Sao Tomean
SU Union of Soviet Socialist Republics ??? ???
SV El Salvador SLV Salvadoran
SY Syria SYR Syrian
SZ Swaziland SWZ Swazi
TC Turks and Caicos Islands TCA Turks and Caicos Islander
TD Chad TCD Chadian
TF French Southern Territories ATF French
TG Togo TGO Togolese
TH Thailand THA Thai
TJ Tajikistan TJK Tadzhik
TK Tokelau TKL Tokelauan
TL Timor-Leste TLS East Timorese
TM Turkmenistan TKM Turkmen
TN Tunisia TUN Tunisian
TO Tonga TON Tongan
TR Turkey TUR Turkish
TT Trinidad and Tobago TTO Trinidadian
TV Tuvalu TUV Tuvaluan
TW Taiwan TWN Taiwanese
TZ Tanzania TZA Tanzanian
UA Ukraine UKR Ukrainian
UG Uganda UGA Ugandan
UM U.S. Minor Outlying Islands UMI American
US United States USA American
UY Uruguay URY Uruguayan
UZ Uzbekistan UZB Uzbekistani
VA Vatican City VAT Italian
VC Saint Vincent and the Grenadines VCT Saint Vincentian
VD North Vietnam VDR ???
VE Venezuela VEN Venezuelan
VG British Virgin Islands VGB Virgin Islander
VI U.S. Virgin Islands VIR Virgin Islander
VN Vietnam VNM Vietnamese
VU Vanuatu VUT Ni-Vanuatu
WF Wallis and Futuna WLF Wallis and Futuna Islander
WK Wake Island WAK ???
WS Samoa WSM Samoan
YE Yemen YEM Yemeni
YT Mayotte MYT French
ZA South Africa ZAF South African
ZM Zambia ZMB Zambian
ZW Zimbabwe ZWE Zimbabwean
@jarnheimer

This comment has been minimized.

Copy link

@jarnheimer jarnheimer commented Jun 15, 2016

Thank you very much for this contribution.
I suggest that the country code is not following the convention ISO 3166-1 alpha-2 code to make it easier to integrate it with other projects.

https://en.wikipedia.org/wiki/ISO_3166-1

@iheitlager

This comment has been minimized.

Copy link

@iheitlager iheitlager commented Mar 23, 2017

Austria is AT, Bangladash is BD, Cambodia = KH, Czechia is CZ, Israel is IL, Mexico is MX, China is CN and some more

@itemir

This comment has been minimized.

Copy link

@itemir itemir commented Jul 10, 2017

Bulgaria is BG, Korea is KR, Poland is PL, Spain is ES

@vinnyricciardi

This comment has been minimized.

Copy link

@vinnyricciardi vinnyricciardi commented Apr 21, 2018

Here is a link to a similar project: https://gist.github.com/marijn/274449
marijn's and zspine's gists are super helpful, but maybe these two projects should be coordinated?

@Dreamweaver1779

This comment has been minimized.

Copy link

@Dreamweaver1779 Dreamweaver1779 commented Aug 1, 2018

LITHUANIA not Lithunia

@leonelcamara

This comment has been minimized.

Copy link

@leonelcamara leonelcamara commented May 10, 2019

Portuguese not Portugees

@soesandanwe

This comment has been minimized.

Copy link

@soesandanwe soesandanwe commented Sep 4, 2019

For Country Code MM, The name of the Nationality should be "Myanmar" instead of "Mayanmarese".

@Khaleel

This comment has been minimized.

Copy link

@Khaleel Khaleel commented Sep 22, 2019

Please add Palestine, Country code PS
Please also update United Arab Emirates, Nationality is Emirati not Emirian

@codeincontext

This comment has been minimized.

Copy link

@codeincontext codeincontext commented Nov 18, 2019

For anyone coming here, many of these are wrong so don't consider it correct or definitive

@zspine

This comment has been minimized.

Copy link
Owner Author

@zspine zspine commented Feb 24, 2020

Sorry for the lateeeee response, for some reason gist not notifying the comment updates :(

@jarnheimer
@iheitlager
@itemir
@vinnyricciardi
@Dreamweaver1779
@leonelcamara
@Fechin
@soesandanwe
@Khaleel
@codeincontext

Thank you very much for the contributions and suggestions!! For anyone else looking for world countries in JSON, CSV and XML try

https://mledoze.github.io/countries/

@Khaleel

This comment has been minimized.

Copy link

@Khaleel Khaleel commented Feb 25, 2020

@zspine great list. There should be an option to remove countries or disable them. That would be good. In the Muslim countries, we do not recognise the illegal Israeli state for example

@tanakayuuta07

This comment has been minimized.

Copy link

@tanakayuuta07 tanakayuuta07 commented Nov 20, 2020

@zspine great list. There should be an option to remove countries or disable them. That would be good. In the Muslim countries, we do not recognise the illegal Israeli state for example

then we should remove all the terrorist states in the middle-east as well.

@12932

This comment has been minimized.

Copy link

@12932 12932 commented Mar 7, 2021

Missing CW as Curaçao

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