Last active
July 17, 2018 20:28
-
-
Save jamessouth/9e2e43fab6328ab8d243bb5892747bb6 to your computer and use it in GitHub Desktop.
JavaScript array of 218 countries and territories with their iso2codes, in alpha order by country/territory name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const countries = [ | |
{ code: "AF", country: "Afghanistan" }, | |
{ code: "AL", country: "Albania" }, | |
{ code: "DZ", country: "Algeria" }, | |
{ code: "AS", country: "American Samoa" }, | |
{ code: "AD", country: "Andorra" }, | |
{ code: "AO", country: "Angola" }, | |
{ code: "AG", country: "Antigua and Barbuda" }, | |
{ code: "AR", country: "Argentina" }, | |
{ code: "AM", country: "Armenia" }, | |
{ code: "AW", country: "Aruba" }, | |
{ code: "AU", country: "Australia" }, | |
{ code: "AT", country: "Austria" }, | |
{ code: "AZ", country: "Azerbaijan" }, | |
{ code: "BS", country: "Bahamas, The" }, | |
{ code: "BH", country: "Bahrain" }, | |
{ code: "BD", country: "Bangladesh" }, | |
{ code: "BB", country: "Barbados" }, | |
{ code: "BY", country: "Belarus" }, | |
{ code: "BE", country: "Belgium" }, | |
{ code: "BZ", country: "Belize" }, | |
{ code: "BJ", country: "Benin" }, | |
{ code: "BM", country: "Bermuda" }, | |
{ code: "BT", country: "Bhutan" }, | |
{ code: "BO", country: "Bolivia" }, | |
{ code: "BA", country: "Bosnia and Herzegovina" }, | |
{ code: "BW", country: "Botswana" }, | |
{ code: "BR", country: "Brazil" }, | |
{ code: "VG", country: "British Virgin Islands" }, | |
{ code: "BN", country: "Brunei Darussalam" }, | |
{ code: "BG", country: "Bulgaria" }, | |
{ code: "BF", country: "Burkina Faso" }, | |
{ code: "BI", country: "Burundi" }, | |
{ code: "CV", country: "Cabo Verde" }, | |
{ code: "KH", country: "Cambodia" }, | |
{ code: "CM", country: "Cameroon" }, | |
{ code: "CA", country: "Canada" }, | |
{ code: "KY", country: "Cayman Islands" }, | |
{ code: "CF", country: "Central African Republic" }, | |
{ code: "TD", country: "Chad" }, | |
{ code: "JG", country: "Channel Islands" }, | |
{ code: "CL", country: "Chile" }, | |
{ code: "CN", country: "China" }, | |
{ code: "CO", country: "Colombia" }, | |
{ code: "KM", country: "Comoros" }, | |
{ code: "CD", country: "Congo, Dem. Rep." }, | |
{ code: "CG", country: "Congo, Rep." }, | |
{ code: "CR", country: "Costa Rica" }, | |
{ code: "CI", country: "Cote d'Ivoire" }, | |
{ code: "HR", country: "Croatia" }, | |
{ code: "CU", country: "Cuba" }, | |
{ code: "CW", country: "Curacao" }, | |
{ code: "CY", country: "Cyprus" }, | |
{ code: "CZ", country: "Czech Republic" }, | |
{ code: "DK", country: "Denmark" }, | |
{ code: "DJ", country: "Djibouti" }, | |
{ code: "DM", country: "Dominica" }, | |
{ code: "DO", country: "Dominican Republic" }, | |
{ code: "EC", country: "Ecuador" }, | |
{ code: "EG", country: "Egypt" }, | |
{ code: "SV", country: "El Salvador" }, | |
{ code: "GQ", country: "Equatorial Guinea" }, | |
{ code: "ER", country: "Eritrea" }, | |
{ code: "EE", country: "Estonia" }, | |
{ code: "ET", country: "Ethiopia" }, | |
{ code: "FO", country: "Faroe Islands" }, | |
{ code: "FJ", country: "Fiji" }, | |
{ code: "FI", country: "Finland" }, | |
{ code: "FR", country: "France" }, | |
{ code: "PF", country: "French Polynesia" }, | |
{ code: "GA", country: "Gabon" }, | |
{ code: "GM", country: "Gambia, The" }, | |
{ code: "GE", country: "Georgia" }, | |
{ code: "DE", country: "Germany" }, | |
{ code: "GH", country: "Ghana" }, | |
{ code: "GI", country: "Gibraltar" }, | |
{ code: "GR", country: "Greece" }, | |
{ code: "GL", country: "Greenland" }, | |
{ code: "GD", country: "Grenada" }, | |
{ code: "GU", country: "Guam" }, | |
{ code: "GT", country: "Guatemala" }, | |
{ code: "GN", country: "Guinea" }, | |
{ code: "GW", country: "Guinea-Bissau" }, | |
{ code: "GY", country: "Guyana" }, | |
{ code: "HT", country: "Haiti" }, | |
{ code: "HN", country: "Honduras" }, | |
{ code: "HK", country: "Hong Kong" }, | |
{ code: "HU", country: "Hungary" }, | |
{ code: "IS", country: "Iceland" }, | |
{ code: "IN", country: "India" }, | |
{ code: "ID", country: "Indonesia" }, | |
{ code: "IR", country: "Iran" }, | |
{ code: "IQ", country: "Iraq" }, | |
{ code: "IE", country: "Ireland" }, | |
{ code: "IM", country: "Isle of Man" }, | |
{ code: "IL", country: "Israel" }, | |
{ code: "IT", country: "Italy" }, | |
{ code: "JM", country: "Jamaica" }, | |
{ code: "JP", country: "Japan" }, | |
{ code: "JO", country: "Jordan" }, | |
{ code: "KZ", country: "Kazakhstan" }, | |
{ code: "KE", country: "Kenya" }, | |
{ code: "KI", country: "Kiribati" }, | |
{ code: "XK", country: "Kosovo" }, | |
{ code: "KW", country: "Kuwait" }, | |
{ code: "KG", country: "Kyrgyz Republic" }, | |
{ code: "LA", country: "Laos" }, | |
{ code: "LV", country: "Latvia" }, | |
{ code: "LB", country: "Lebanon" }, | |
{ code: "LS", country: "Lesotho" }, | |
{ code: "LR", country: "Liberia" }, | |
{ code: "LY", country: "Libya" }, | |
{ code: "LI", country: "Liechtenstein" }, | |
{ code: "LT", country: "Lithuania" }, | |
{ code: "LU", country: "Luxembourg" }, | |
{ code: "MO", country: "Macao" }, | |
{ code: "MK", country: "Macedonia" }, | |
{ code: "MG", country: "Madagascar" }, | |
{ code: "MW", country: "Malawi" }, | |
{ code: "MY", country: "Malaysia" }, | |
{ code: "MV", country: "Maldives" }, | |
{ code: "ML", country: "Mali" }, | |
{ code: "MT", country: "Malta" }, | |
{ code: "MH", country: "Marshall Islands" }, | |
{ code: "MR", country: "Mauritania" }, | |
{ code: "MU", country: "Mauritius" }, | |
{ code: "MX", country: "Mexico" }, | |
{ code: "FM", country: "Micronesia, Fed. Sts." }, | |
{ code: "MD", country: "Moldova" }, | |
{ code: "MC", country: "Monaco" }, | |
{ code: "MN", country: "Mongolia" }, | |
{ code: "ME", country: "Montenegro" }, | |
{ code: "MA", country: "Morocco" }, | |
{ code: "MZ", country: "Mozambique" }, | |
{ code: "MM", country: "Myanmar" }, | |
{ code: "NA", country: "Namibia" }, | |
{ code: "NR", country: "Nauru" }, | |
{ code: "NP", country: "Nepal" }, | |
{ code: "NL", country: "Netherlands" }, | |
{ code: "NC", country: "New Caledonia" }, | |
{ code: "NZ", country: "New Zealand" }, | |
{ code: "NI", country: "Nicaragua" }, | |
{ code: "NE", country: "Niger" }, | |
{ code: "NG", country: "Nigeria" }, | |
{ code: "KP", country: "North Korea" }, | |
{ code: "MP", country: "Northern Mariana Islands" }, | |
{ code: "NO", country: "Norway" }, | |
{ code: "OM", country: "Oman" }, | |
{ code: "PK", country: "Pakistan" }, | |
{ code: "PW", country: "Palau" }, | |
{ code: "PA", country: "Panama" }, | |
{ code: "PG", country: "Papua New Guinea" }, | |
{ code: "PY", country: "Paraguay" }, | |
{ code: "PE", country: "Peru" }, | |
{ code: "PH", country: "Philippines" }, | |
{ code: "PL", country: "Poland" }, | |
{ code: "PT", country: "Portugal" }, | |
{ code: "PR", country: "Puerto Rico" }, | |
{ code: "QA", country: "Qatar" }, | |
{ code: "RO", country: "Romania" }, | |
{ code: "RU", country: "Russian Federation" }, | |
{ code: "RW", country: "Rwanda" }, | |
{ code: "WS", country: "Samoa" }, | |
{ code: "SM", country: "San Marino" }, | |
{ code: "ST", country: "Sao Tome and Principe" }, | |
{ code: "SA", country: "Saudi Arabia" }, | |
{ code: "SN", country: "Senegal" }, | |
{ code: "RS", country: "Serbia" }, | |
{ code: "SC", country: "Seychelles" }, | |
{ code: "SL", country: "Sierra Leone" }, | |
{ code: "SG", country: "Singapore" }, | |
{ code: "SX", country: "Sint Maarten (Dutch part)" }, | |
{ code: "SK", country: "Slovak Republic" }, | |
{ code: "SI", country: "Slovenia" }, | |
{ code: "SB", country: "Solomon Islands" }, | |
{ code: "SO", country: "Somalia" }, | |
{ code: "ZA", country: "South Africa" }, | |
{ code: "KR", country: "South Korea" }, | |
{ code: "SS", country: "South Sudan" }, | |
{ code: "ES", country: "Spain" }, | |
{ code: "LK", country: "Sri Lanka" }, | |
{ code: "KN", country: "St. Kitts and Nevis" }, | |
{ code: "LC", country: "St. Lucia" }, | |
{ code: "MF", country: "St. Martin (French part)" }, | |
{ code: "VC", country: "St. Vincent and the Grenadines" }, | |
{ code: "SD", country: "Sudan" }, | |
{ code: "SR", country: "Suriname" }, | |
{ code: "SZ", country: "Swaziland" }, | |
{ code: "SE", country: "Sweden" }, | |
{ code: "CH", country: "Switzerland" }, | |
{ code: "SY", country: "Syria" }, | |
{ code: "TW", country: "Taiwan" }, | |
{ code: "TJ", country: "Tajikistan" }, | |
{ code: "TZ", country: "Tanzania" }, | |
{ code: "TH", country: "Thailand" }, | |
{ code: "TL", country: "Timor-Leste" }, | |
{ code: "TG", country: "Togo" }, | |
{ code: "TO", country: "Tonga" }, | |
{ code: "TT", country: "Trinidad and Tobago" }, | |
{ code: "TN", country: "Tunisia" }, | |
{ code: "TR", country: "Turkey" }, | |
{ code: "TM", country: "Turkmenistan" }, | |
{ code: "TC", country: "Turks and Caicos Islands" }, | |
{ code: "TV", country: "Tuvalu" }, | |
{ code: "UG", country: "Uganda" }, | |
{ code: "UA", country: "Ukraine" }, | |
{ code: "AE", country: "United Arab Emirates" }, | |
{ code: "GB", country: "United Kingdom" }, | |
{ code: "US", country: "United States" }, | |
{ code: "UY", country: "Uruguay" }, | |
{ code: "UZ", country: "Uzbekistan" }, | |
{ code: "VU", country: "Vanuatu" }, | |
{ code: "VE", country: "Venezuela" }, | |
{ code: "VN", country: "Vietnam" }, | |
{ code: "VI", country: "Virgin Islands (U.S.)" }, | |
{ code: "PS", country: "West Bank and Gaza" }, | |
{ code: "YE", country: "Yemen" }, | |
{ code: "ZM", country: "Zambia" }, | |
{ code: "ZW", country: "Zimbabwe" } | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment