Skip to content

Instantly share code, notes, and snippets.

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

@marko1943 , Turkey has changed its name to Türkiye.

@faylee-optitwin
Copy link

faylee-optitwin commented Apr 29, 2024

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

@furkanmustafa
Copy link

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

@furkanmustafa
Copy link

Ouw and there are duplicates..

Here is a typescriptified mapping version, instead of an array, and duplicates removed.

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

export type ISOCountryCode = keyof typeof ISOCountries;

@edproton
Copy link

edproton commented Oct 26, 2024

International Country Codes and Calling Data Specification (ISO 3166-1)

Contract

{
  "[ISO 3166-1 ALPHA-2]": {
    "name": string,
    "callingCode": number,
    "isoA2": string,
    "isoA3": string,
    "isoNum": number
  }
}

Description

This JSON structure represents country information where each entry is indexed by the country's ISO 3166-1 alpha-2 code. Each country object contains:

  • name: Full country name
  • callingCode: International calling code without prefix
  • isoA2: ISO 3166-1 alpha-2 code (2 letters)
  • isoA3: ISO 3166-1 alpha-3 code (3 letters)
  • isoNum: ISO 3166-1 numeric code

Example Entry

{
  "PT": {
    "name": "Portugal",
    "callingCode": 351,
    "isoA2": "PT",
    "isoA3": "PRT",
    "isoNum": 620
  }
}

JSON Data

{
  "AF": {
    "name": "Afghanistan",
    "callingCode": 93,
    "isoA2": "AF",
    "isoA3": "AFG",
    "isoNum": 4
  },
  "AL": {
    "name": "Albania",
    "callingCode": 355,
    "isoA2": "AL",
    "isoA3": "ALB",
    "isoNum": 8
  },
  "DZ": {
    "name": "Algeria",
    "callingCode": 213,
    "isoA2": "DZ",
    "isoA3": "DZA",
    "isoNum": 12
  },
  "AS": {
    "name": "American Samoa",
    "callingCode": 1684,
    "isoA2": "AS",
    "isoA3": "ASM",
    "isoNum": 16
  },
  "AD": {
    "name": "Andorra",
    "callingCode": 376,
    "isoA2": "AD",
    "isoA3": "AND",
    "isoNum": 20
  },
  "AO": {
    "name": "Angola",
    "callingCode": 244,
    "isoA2": "AO",
    "isoA3": "AGO",
    "isoNum": 24
  },
  "AG": {
    "name": "Antigua and Barbuda",
    "callingCode": 1268,
    "isoA2": "AG",
    "isoA3": "ATG",
    "isoNum": 28
  },
  "AZ": {
    "name": "Azerbaijan",
    "callingCode": 994,
    "isoA2": "AZ",
    "isoA3": "AZE",
    "isoNum": 31
  },
  "AR": {
    "name": "Argentina",
    "callingCode": 54,
    "isoA2": "AR",
    "isoA3": "ARG",
    "isoNum": 32
  },
  "AU": {
    "name": "Australia",
    "callingCode": 61,
    "isoA2": "AU",
    "isoA3": "AUS",
    "isoNum": 36
  },
  "AT": {
    "name": "Austria",
    "callingCode": 43,
    "isoA2": "AT",
    "isoA3": "AUT",
    "isoNum": 40
  },
  "BS": {
    "name": "Bahamas",
    "callingCode": 1242,
    "isoA2": "BS",
    "isoA3": "BHS",
    "isoNum": 44
  },
  "BH": {
    "name": "Bahrain",
    "callingCode": 973,
    "isoA2": "BH",
    "isoA3": "BHR",
    "isoNum": 48
  },
  "BD": {
    "name": "Bangladesh",
    "callingCode": 880,
    "isoA2": "BD",
    "isoA3": "BGD",
    "isoNum": 50
  },
  "AM": {
    "name": "Armenia",
    "callingCode": 374,
    "isoA2": "AM",
    "isoA3": "ARM",
    "isoNum": 51
  },
  "BB": {
    "name": "Barbados",
    "callingCode": 1246,
    "isoA2": "BB",
    "isoA3": "BRB",
    "isoNum": 52
  },
  "BE": {
    "name": "Belgium",
    "callingCode": 32,
    "isoA2": "BE",
    "isoA3": "BEL",
    "isoNum": 56
  },
  "BZ": {
    "name": "Belize",
    "callingCode": 501,
    "isoA2": "BZ",
    "isoA3": "BLZ",
    "isoNum": 84
  },
  "BJ": {
    "name": "Benin",
    "callingCode": 229,
    "isoA2": "BJ",
    "isoA3": "BEN",
    "isoNum": 204
  },
  "BT": {
    "name": "Bhutan",
    "callingCode": 975,
    "isoA2": "BT",
    "isoA3": "BTN",
    "isoNum": 64
  },
  "BO": {
    "name": "Bolivia",
    "callingCode": 591,
    "isoA2": "BO",
    "isoA3": "BOL",
    "isoNum": 68
  },
  "BA": {
    "name": "Bosnia and Herzegovina",
    "callingCode": 387,
    "isoA2": "BA",
    "isoA3": "BIH",
    "isoNum": 70
  },
  "BW": {
    "name": "Botswana",
    "callingCode": 267,
    "isoA2": "BW",
    "isoA3": "BWA",
    "isoNum": 72
  },
  "BR": {
    "name": "Brazil",
    "callingCode": 55,
    "isoA2": "BR",
    "isoA3": "BRA",
    "isoNum": 76
  },
  "BN": {
    "name": "Brunei",
    "callingCode": 673,
    "isoA2": "BN",
    "isoA3": "BRN",
    "isoNum": 96
  },
  "BG": {
    "name": "Bulgaria",
    "callingCode": 359,
    "isoA2": "BG",
    "isoA3": "BGR",
    "isoNum": 100
  },
  "BF": {
    "name": "Burkina Faso",
    "callingCode": 226,
    "isoA2": "BF",
    "isoA3": "BFA",
    "isoNum": 854
  },
  "BI": {
    "name": "Burundi",
    "callingCode": 257,
    "isoA2": "BI",
    "isoA3": "BDI",
    "isoNum": 108
  },
  "KH": {
    "name": "Cambodia",
    "callingCode": 855,
    "isoA2": "KH",
    "isoA3": "KHM",
    "isoNum": 116
  },
  "CM": {
    "name": "Cameroon",
    "callingCode": 237,
    "isoA2": "CM",
    "isoA3": "CMR",
    "isoNum": 120
  },
  "CA": {
    "name": "Canada",
    "callingCode": 1,
    "isoA2": "CA",
    "isoA3": "CAN",
    "isoNum": 124
  },
  "CV": {
    "name": "Cape Verde",
    "callingCode": 238,
    "isoA2": "CV",
    "isoA3": "CPV",
    "isoNum": 132
  },
  "CF": {
    "name": "Central African Republic",
    "callingCode": 236,
    "isoA2": "CF",
    "isoA3": "CAF",
    "isoNum": 140
  },
  "TD": {
    "name": "Chad",
    "callingCode": 235,
    "isoA2": "TD",
    "isoA3": "TCD",
    "isoNum": 148
  },
  "CL": {
    "name": "Chile",
    "callingCode": 56,
    "isoA2": "CL",
    "isoA3": "CHL",
    "isoNum": 152
  },
  "CN": {
    "name": "China",
    "callingCode": 86,
    "isoA2": "CN",
    "isoA3": "CHN",
    "isoNum": 156
  },
  "CO": {
    "name": "Colombia",
    "callingCode": 57,
    "isoA2": "CO",
    "isoA3": "COL",
    "isoNum": 170
  },
  "KM": {
    "name": "Comoros",
    "callingCode": 269,
    "isoA2": "KM",
    "isoA3": "COM",
    "isoNum": 174
  },
  "CG": {
    "name": "Congo",
    "callingCode": 242,
    "isoA2": "CG",
    "isoA3": "COG",
    "isoNum": 178
  },
  "CD": {
    "name": "Congo (Democratic Republic)",
    "callingCode": 243,
    "isoA2": "CD",
    "isoA3": "COD",
    "isoNum": 180
  },
  "CR": {
    "name": "Costa Rica",
    "callingCode": 506,
    "isoA2": "CR",
    "isoA3": "CRI",
    "isoNum": 188
  },
  "CI": {
    "name": "Côte d'Ivoire",
    "callingCode": 225,
    "isoA2": "CI",
    "isoA3": "CIV",
    "isoNum": 384
  },
  "HR": {
    "name": "Croatia",
    "callingCode": 385,
    "isoA2": "HR",
    "isoA3": "HRV",
    "isoNum": 191
  },
  "CU": {
    "name": "Cuba",
    "callingCode": 53,
    "isoA2": "CU",
    "isoA3": "CUB",
    "isoNum": 192
  },
  "CY": {
    "name": "Cyprus",
    "callingCode": 357,
    "isoA2": "CY",
    "isoA3": "CYP",
    "isoNum": 196
  },
  "CZ": {
    "name": "Czech Republic",
    "callingCode": 420,
    "isoA2": "CZ",
    "isoA3": "CZE",
    "isoNum": 203
  },
  "DK": {
    "name": "Denmark",
    "callingCode": 45,
    "isoA2": "DK",
    "isoA3": "DNK",
    "isoNum": 208
  },
  "DJ": {
    "name": "Djibouti",
    "callingCode": 253,
    "isoA2": "DJ",
    "isoA3": "DJI",
    "isoNum": 262
  },
  "DM": {
    "name": "Dominica",
    "callingCode": 1767,
    "isoA2": "DM",
    "isoA3": "DMA",
    "isoNum": 212
  },
  "DO": {
    "name": "Dominican Republic",
    "callingCode": 1809,
    "isoA2": "DO",
    "isoA3": "DOM",
    "isoNum": 214
  },
  "EC": {
    "name": "Ecuador",
    "callingCode": 593,
    "isoA2": "EC",
    "isoA3": "ECU",
    "isoNum": 218
  },
  "EG": {
    "name": "Egypt",
    "callingCode": 20,
    "isoA2": "EG",
    "isoA3": "EGY",
    "isoNum": 818
  },
  "SV": {
    "name": "El Salvador",
    "callingCode": 503,
    "isoA2": "SV",
    "isoA3": "SLV",
    "isoNum": 222
  },
  "GQ": {
    "name": "Equatorial Guinea",
    "callingCode": 240,
    "isoA2": "GQ",
    "isoA3": "GNQ",
    "isoNum": 226
  },
  "ER": {
    "name": "Eritrea",
    "callingCode": 291,
    "isoA2": "ER",
    "isoA3": "ERI",
    "isoNum": 232
  },
  "EE": {
    "name": "Estonia",
    "callingCode": 372,
    "isoA2": "EE",
    "isoA3": "EST",
    "isoNum": 233
  },
  "SZ": {
    "name": "Eswatini",
    "callingCode": 268,
    "isoA2": "SZ",
    "isoA3": "SWZ",
    "isoNum": 748
  },
  "ET": {
    "name": "Ethiopia",
    "callingCode": 251,
    "isoA2": "ET",
    "isoA3": "ETH",
    "isoNum": 231
  },
  "FJ": {
    "name": "Fiji",
    "callingCode": 679,
    "isoA2": "FJ",
    "isoA3": "FJI",
    "isoNum": 242
  },
  "FI": {
    "name": "Finland",
    "callingCode": 358,
    "isoA2": "FI",
    "isoA3": "FIN",
    "isoNum": 246
  },
  "FR": {
    "name": "France",
    "callingCode": 33,
    "isoA2": "FR",
    "isoA3": "FRA",
    "isoNum": 250
  },
  "GA": {
    "name": "Gabon",
    "callingCode": 241,
    "isoA2": "GA",
    "isoA3": "GAB",
    "isoNum": 266
  },
  "GM": {
    "name": "Gambia",
    "callingCode": 220,
    "isoA2": "GM",
    "isoA3": "GMB",
    "isoNum": 270
  },
  "GE": {
    "name": "Georgia",
    "callingCode": 995,
    "isoA2": "GE",
    "isoA3": "GEO",
    "isoNum": 268
  },
  "DE": {
    "name": "Germany",
    "callingCode": 49,
    "isoA2": "DE",
    "isoA3": "DEU",
    "isoNum": 276
  },
  "GH": {
    "name": "Ghana",
    "callingCode": 233,
    "isoA2": "GH",
    "isoA3": "GHA",
    "isoNum": 288
  },
  "GR": {
    "name": "Greece",
    "callingCode": 30,
    "isoA2": "GR",
    "isoA3": "GRC",
    "isoNum": 300
  },
  "GD": {
    "name": "Grenada",
    "callingCode": 1473,
    "isoA2": "GD",
    "isoA3": "GRD",
    "isoNum": 308
  },
  "GU": {
    "name": "Guam",
    "callingCode": 1671,
    "isoA2": "GU",
    "isoA3": "GUM",
    "isoNum": 316
  },
  "GT": {
    "name": "Guatemala",
    "callingCode": 502,
    "isoA2": "GT",
    "isoA3": "GTM",
    "isoNum": 320
  },
  "GN": {
    "name": "Guinea",
    "callingCode": 224,
    "isoA2": "GN",
    "isoA3": "GIN",
    "isoNum": 324
  },
  "GW": {
    "name": "Guinea-Bissau",
    "callingCode": 245,
    "isoA2": "GW",
    "isoA3": "GNB",
    "isoNum": 624
  },
  "GY": {
    "name": "Guyana",
    "callingCode": 592,
    "isoA2": "GY",
    "isoA3": "GUY",
    "isoNum": 328
  },
  "HT": {
    "name": "Haiti",
    "callingCode": 509,
    "isoA2": "HT",
    "isoA3": "HTI",
    "isoNum": 332
  },
  "HN": {
    "name": "Honduras",
    "callingCode": 504,
    "isoA2": "HN",
    "isoA3": "HND",
    "isoNum": 340
  },
  "HU": {
    "name": "Hungary",
    "callingCode": 36,
    "isoA2": "HU",
    "isoA3": "HUN",
    "isoNum": 348
  },
  "IS": {
    "name": "Iceland",
    "callingCode": 354,
    "isoA2": "IS",
    "isoA3": "ISL",
    "isoNum": 352
  },
  "IN": {
    "name": "India",
    "callingCode": 91,
    "isoA2": "IN",
    "isoA3": "IND",
    "isoNum": 356
  },
  "ID": {
    "name": "Indonesia",
    "callingCode": 62,
    "isoA2": "ID",
    "isoA3": "IDN",
    "isoNum": 360
  },
  "IR": {
    "name": "Iran",
    "callingCode": 98,
    "isoA2": "IR",
    "isoA3": "IRN",
    "isoNum": 364
  },
  "IQ": {
    "name": "Iraq",
    "callingCode": 964,
    "isoA2": "IQ",
    "isoA3": "IRQ",
    "isoNum": 368
  },
  "IE": {
    "name": "Ireland",
    "callingCode": 353,
    "isoA2": "IE",
    "isoA3": "IRL",
    "isoNum": 372
  },
  "IL": {
    "name": "Israel",
    "callingCode": 972,
    "isoA2": "IL",
    "isoA3": "ISR",
    "isoNum": 376
  },
  "IT": {
    "name": "Italy",
    "callingCode": 39,
    "isoA2": "IT",
    "isoA3": "ITA",
    "isoNum": 380
  },
  "JM": {
    "name": "Jamaica",
    "callingCode": 1876,
    "isoA2": "JM",
    "isoA3": "JAM",
    "isoNum": 388
  },
  "JP": {
    "name": "Japan",
    "callingCode": 81,
    "isoA2": "JP",
    "isoA3": "JPN",
    "isoNum": 392
  },
  "JO": {
    "name": "Jordan",
    "callingCode": 962,
    "isoA2": "JO",
    "isoA3": "JOR",
    "isoNum": 400
  },
  "KZ": {
    "name": "Kazakhstan",
    "callingCode": 7,
    "isoA2": "KZ",
    "isoA3": "KAZ",
    "isoNum": 398
  },
  "KE": {
    "name": "Kenya",
    "callingCode": 254,
    "isoA2": "KE",
    "isoA3": "KEN",
    "isoNum": 404
  },
  "KI": {
    "name": "Kiribati",
    "callingCode": 686,
    "isoA2": "KI",
    "isoA3": "KIR",
    "isoNum": 296
  },
  "KP": {
    "name": "North Korea",
    "callingCode": 850,
    "isoA2": "KP",
    "isoA3": "PRK",
    "isoNum": 408
  },
  "KR": {
    "name": "South Korea",
    "callingCode": 82,
    "isoA2": "KR",
    "isoA3": "KOR",
    "isoNum": 410
  },
  "KW": {
    "name": "Kuwait",
    "callingCode": 965,
    "isoA2": "KW",
    "isoA3": "KWT",
    "isoNum": 414
  },
  "KG": {
    "name": "Kyrgyzstan",
    "callingCode": 996,
    "isoA2": "KG",
    "isoA3": "KGZ",
    "isoNum": 417
  },
  "LA": {
    "name": "Laos",
    "callingCode": 856,
    "isoA2": "LA",
    "isoA3": "LAO",
    "isoNum": 418
  },
  "LV": {
    "name": "Latvia",
    "callingCode": 371,
    "isoA2": "LV",
    "isoA3": "LVA",
    "isoNum": 428
  },
  "LB": {
    "name": "Lebanon",
    "callingCode": 961,
    "isoA2": "LB",
    "isoA3": "LBN",
    "isoNum": 422
  },
  "LS": {
    "name": "Lesotho",
    "callingCode": 266,
    "isoA2": "LS",
    "isoA3": "LSO",
    "isoNum": 426
  },
  "LR": {
    "name": "Liberia",
    "callingCode": 231,
    "isoA2": "LR",
    "isoA3": "LBR",
    "isoNum": 430
  },
  "LY": {
    "name": "Libya",
    "callingCode": 218,
    "isoA2": "LY",
    "isoA3": "LBY",
    "isoNum": 434
  },
  "LI": {
    "name": "Liechtenstein",
    "callingCode": 423,
    "isoA2": "LI",
    "isoA3": "LIE",
    "isoNum": 438
  },
  "LT": {
    "name": "Lithuania",
    "callingCode": 370,
    "isoA2": "LT",
    "isoA3": "LTU",
    "isoNum": 440
  },
  "LU": {
    "name": "Luxembourg",
    "callingCode": 352,
    "isoA2": "LU",
    "isoA3": "LUX",
    "isoNum": 442
  },
  "MG": {
    "name": "Madagascar",
    "callingCode": 261,
    "isoA2": "MG",
    "isoA3": "MDG",
    "isoNum": 450
  },
  "MW": {
    "name": "Malawi",
    "callingCode": 265,
    "isoA2": "MW",
    "isoA3": "MWI",
    "isoNum": 454
  },
  "MY": {
    "name": "Malaysia",
    "callingCode": 60,
    "isoA2": "MY",
    "isoA3": "MYS",
    "isoNum": 458
  },
  "MV": {
    "name": "Maldives",
    "callingCode": 960,
    "isoA2": "MV",
    "isoA3": "MDV",
    "isoNum": 462
  },
  "ML": {
    "name": "Mali",
    "callingCode": 223,
    "isoA2": "ML",
    "isoA3": "MLI",
    "isoNum": 466
  },
  "MT": {
    "name": "Malta",
    "callingCode": 356,
    "isoA2": "MT",
    "isoA3": "MLT",
    "isoNum": 470
  },
  "MH": {
    "name": "Marshall Islands",
    "callingCode": 692,
    "isoA2": "MH",
    "isoA3": "MHL",
    "isoNum": 584
  },
  "MR": {
    "name": "Mauritania",
    "callingCode": 222,
    "isoA2": "MR",
    "isoA3": "MRT",
    "isoNum": 478
  },
  "MU": {
    "name": "Mauritius",
    "callingCode": 230,
    "isoA2": "MU",
    "isoA3": "MUS",
    "isoNum": 480
  },
  "MX": {
    "name": "Mexico",
    "callingCode": 52,
    "isoA2": "MX",
    "isoA3": "MEX",
    "isoNum": 484
  },
  "FM": {
    "name": "Micronesia (Federated States of)",
    "callingCode": 691,
    "isoA2": "FM",
    "isoA3": "FSM",
    "isoNum": 583
  },
  "MD": {
    "name": "Moldova",
    "callingCode": 373,
    "isoA2": "MD",
    "isoA3": "MDA",
    "isoNum": 498
  },
  "MC": {
    "name": "Monaco",
    "callingCode": 377,
    "isoA2": "MC",
    "isoA3": "MCO",
    "isoNum": 492
  },
  "MN": {
    "name": "Mongolia",
    "callingCode": 976,
    "isoA2": "MN",
    "isoA3": "MNG",
    "isoNum": 496
  },
  "ME": {
    "name": "Montenegro",
    "callingCode": 382,
    "isoA2": "ME",
    "isoA3": "MNE",
    "isoNum": 499
  },
  "MA": {
    "name": "Morocco",
    "callingCode": 212,
    "isoA2": "MA",
    "isoA3": "MAR",
    "isoNum": 504
  },
  "MZ": {
    "name": "Mozambique",
    "callingCode": 258,
    "isoA2": "MZ",
    "isoA3": "MOZ",
    "isoNum": 508
  },
  "MM": {
    "name": "Myanmar",
    "callingCode": 95,
    "isoA2": "MM",
    "isoA3": "MMR",
    "isoNum": 104
  },
  "NA": {
    "name": "Namibia",
    "callingCode": 264,
    "isoA2": "NA",
    "isoA3": "NAM",
    "isoNum": 516
  },
  "NR": {
    "name": "Nauru",
    "callingCode": 674,
    "isoA2": "NR",
    "isoA3": "NRU",
    "isoNum": 520
  },
  "NP": {
    "name": "Nepal",
    "callingCode": 977,
    "isoA2": "NP",
    "isoA3": "NPL",
    "isoNum": 524
  },
  "NL": {
    "name": "Netherlands",
    "callingCode": 31,
    "isoA2": "NL",
    "isoA3": "NLD",
    "isoNum": 528
  },
  "NZ": {
    "name": "New Zealand",
    "callingCode": 64,
    "isoA2": "NZ",
    "isoA3": "NZL",
    "isoNum": 554
  },
  "NI": {
    "name": "Nicaragua",
    "callingCode": 505,
    "isoA2": "NI",
    "isoA3": "NIC",
    "isoNum": 558
  },
  "NE": {
    "name": "Niger",
    "callingCode": 227,
    "isoA2": "NE",
    "isoA3": "NER",
    "isoNum": 562
  },
  "NG": {
    "name": "Nigeria",
    "callingCode": 234,
    "isoA2": "NG",
    "isoA3": "NGA",
    "isoNum": 566
  },
  "NO": {
    "name": "Norway",
    "callingCode": 47,
    "isoA2": "NO",
    "isoA3": "NOR",
    "isoNum": 578
  },
  "OM": {
    "name": "Oman",
    "callingCode": 968,
    "isoA2": "OM",
    "isoA3": "OMN",
    "isoNum": 512
  },
  "PK": {
    "name": "Pakistan",
    "callingCode": 92,
    "isoA2": "PK",
    "isoA3": "PAK",
    "isoNum": 586
  },
  "PW": {
    "name": "Palau",
    "callingCode": 680,
    "isoA2": "PW",
    "isoA3": "PLW",
    "isoNum": 585
  },
  "PS": {
    "name": "Palestine",
    "callingCode": 970,
    "isoA2": "PS",
    "isoA3": "PSE",
    "isoNum": 275
  },
  "PA": {
    "name": "Panama",
    "callingCode": 507,
    "isoA2": "PA",
    "isoA3": "PAN",
    "isoNum": 591
  },
  "PG": {
    "name": "Papua New Guinea",
    "callingCode": 675,
    "isoA2": "PG",
    "isoA3": "PNG",
    "isoNum": 598
  },
  "PY": {
    "name": "Paraguay",
    "callingCode": 595,
    "isoA2": "PY",
    "isoA3": "PRY",
    "isoNum": 600
  },
  "PE": {
    "name": "Peru",
    "callingCode": 51,
    "isoA2": "PE",
    "isoA3": "PER",
    "isoNum": 604
  },
  "PH": {
    "name": "Philippines",
    "callingCode": 63,
    "isoA2": "PH",
    "isoA3": "PHL",
    "isoNum": 608
  },
  "PL": {
    "name": "Poland",
    "callingCode": 48,
    "isoA2": "PL",
    "isoA3": "POL",
    "isoNum": 616
  },
  "PT": {
    "name": "Portugal",
    "callingCode": 351,
    "isoA2": "PT",
    "isoA3": "PRT",
    "isoNum": 620
  },
  "QA": {
    "name": "Qatar",
    "callingCode": 974,
    "isoA2": "QA",
    "isoA3": "QAT",
    "isoNum": 634
  },
  "RO": {
    "name": "Romania",
    "callingCode": 40,
    "isoA2": "RO",
    "isoA3": "ROU",
    "isoNum": 642
  },
  "RU": {
    "name": "Russia",
    "callingCode": 7,
    "isoA2": "RU",
    "isoA3": "RUS",
    "isoNum": 643
  },
  "RW": {
    "name": "Rwanda",
    "callingCode": 250,
    "isoA2": "RW",
    "isoA3": "RWA",
    "isoNum": 646
  },
  "KN": {
    "name": "Saint Kitts and Nevis",
    "callingCode": 1869,
    "isoA2": "KN",
    "isoA3": "KNA",
    "isoNum": 659
  },
  "LC": {
    "name": "Saint Lucia",
    "callingCode": 1758,
    "isoA2": "LC",
    "isoA3": "LCA",
    "isoNum": 662
  },
  "VC": {
    "name": "Saint Vincent and the Grenadines",
    "callingCode": 1784,
    "isoA2": "VC",
    "isoA3": "VCT",
    "isoNum": 670
  },
  "WS": {
    "name": "Samoa",
    "callingCode": 685,
    "isoA2": "WS",
    "isoA3": "WSM",
    "isoNum": 882
  },
  "SM": {
    "name": "San Marino",
    "callingCode": 378,
    "isoA2": "SM",
    "isoA3": "SMR",
    "isoNum": 674
  },
  "ST": {
    "name": "Sao Tome and Principe",
    "callingCode": 239,
    "isoA2": "ST",
    "isoA3": "STP",
    "isoNum": 678
  },
  "SA": {
    "name": "Saudi Arabia",
    "callingCode": 966,
    "isoA2": "SA",
    "isoA3": "SAU",
    "isoNum": 682
  },
  "SN": {
    "name": "Senegal",
    "callingCode": 221,
    "isoA2": "SN",
    "isoA3": "SEN",
    "isoNum": 686
  },
  "RS": {
    "name": "Serbia",
    "callingCode": 381,
    "isoA2": "RS",
    "isoA3": "SRB",
    "isoNum": 688
  },
  "SC": {
    "name": "Seychelles",
    "callingCode": 248,
    "isoA2": "SC",
    "isoA3": "SYC",
    "isoNum": 690
  },
  "SL": {
    "name": "Sierra Leone",
    "callingCode": 232,
    "isoA2": "SL",
    "isoA3": "SLE",
    "isoNum": 694
  },
  "SG": {
    "name": "Singapore",
    "callingCode": 65,
    "isoA2": "SG",
    "isoA3": "SGP",
    "isoNum": 702
  },
  "SK": {
    "name": "Slovakia",
    "callingCode": 421,
    "isoA2": "SK",
    "isoA3": "SVK",
    "isoNum": 703
  },
  "SI": {
    "name": "Slovenia",
    "callingCode": 386,
    "isoA2": "SI",
    "isoA3": "SVN",
    "isoNum": 705
  },
  "SB": {
    "name": "Solomon Islands",
    "callingCode": 677,
    "isoA2": "SB",
    "isoA3": "SLB",
    "isoNum": 90
  },
  "SO": {
    "name": "Somalia",
    "callingCode": 252,
    "isoA2": "SO",
    "isoA3": "SOM",
    "isoNum": 706
  },
  "ZA": {
    "name": "South Africa",
    "callingCode": 27,
    "isoA2": "ZA",
    "isoA3": "ZAF",
    "isoNum": 710
  },
  "SS": {
    "name": "South Sudan",
    "callingCode": 211,
    "isoA2": "SS",
    "isoA3": "SSD",
    "isoNum": 728
  },
  "ES": {
    "name": "Spain",
    "callingCode": 34,
    "isoA2": "ES",
    "isoA3": "ESP",
    "isoNum": 724
  },
  "LK": {
    "name": "Sri Lanka",
    "callingCode": 94,
    "isoA2": "LK",
    "isoA3": "LKA",
    "isoNum": 144
  },
  "SD": {
    "name": "Sudan",
    "callingCode": 249,
    "isoA2": "SD",
    "isoA3": "SDN",
    "isoNum": 729
  },
  "SR": {
    "name": "Suriname",
    "callingCode": 597,
    "isoA2": "SR",
    "isoA3": "SUR",
    "isoNum": 740
  },
  "SE": {
    "name": "Sweden",
    "callingCode": 46,
    "isoA2": "SE",
    "isoA3": "SWE",
    "isoNum": 752
  },
  "CH": {
    "name": "Switzerland",
    "callingCode": 41,
    "isoA2": "CH",
    "isoA3": "CHE",
    "isoNum": 756
  },
  "SY": {
    "name": "Syria",
    "callingCode": 963,
    "isoA2": "SY",
    "isoA3": "SYR",
    "isoNum": 760
  },
  "TW": {
    "name": "Taiwan",
    "callingCode": 886,
    "isoA2": "TW",
    "isoA3": "TWN",
    "isoNum": 158
  },
  "TJ": {
    "name": "Tajikistan",
    "callingCode": 992,
    "isoA2": "TJ",
    "isoA3": "TJK",
    "isoNum": 762
  },
  "TZ": {
    "name": "Tanzania",
    "callingCode": 255,
    "isoA2": "TZ",
    "isoA3": "TZA",
    "isoNum": 834
  },
  "TH": {
    "name": "Thailand",
    "callingCode": 66,
    "isoA2": "TH",
    "isoA3": "THA",
    "isoNum": 764
  },
  "TL": {
    "name": "Timor-Leste",
    "callingCode": 670,
    "isoA2": "TL",
    "isoA3": "TLS",
    "isoNum": 626
  },
  "TG": {
    "name": "Togo",
    "callingCode": 228,
    "isoA2": "TG",
    "isoA3": "TGO",
    "isoNum": 768
  },
  "TO": {
    "name": "Tonga",
    "callingCode": 676,
    "isoA2": "TO",
    "isoA3": "TON",
    "isoNum": 776
  },
  "TT": {
    "name": "Trinidad and Tobago",
    "callingCode": 1868,
    "isoA2": "TT",
    "isoA3": "TTO",
    "isoNum": 780
  },
  "TN": {
    "name": "Tunisia",
    "callingCode": 216,
    "isoA2": "TN",
    "isoA3": "TUN",
    "isoNum": 788
  },
  "TR": {
    "name": "Turkey",
    "callingCode": 90,
    "isoA2": "TR",
    "isoA3": "TUR",
    "isoNum": 792
  },
  "TM": {
    "name": "Turkmenistan",
    "callingCode": 993,
    "isoA2": "TM",
    "isoA3": "TKM",
    "isoNum": 795
  },
  "TV": {
    "name": "Tuvalu",
    "callingCode": 688,
    "isoA2": "TV",
    "isoA3": "TUV",
    "isoNum": 798
  },
  "UG": {
    "name": "Uganda",
    "callingCode": 256,
    "isoA2": "UG",
    "isoA3": "UGA",
    "isoNum": 800
  },
  "UA": {
    "name": "Ukraine",
    "callingCode": 380,
    "isoA2": "UA",
    "isoA3": "UKR",
    "isoNum": 804
  },
  "AE": {
    "name": "United Arab Emirates",
    "callingCode": 971,
    "isoA2": "AE",
    "isoA3": "ARE",
    "isoNum": 784
  },
  "GB": {
    "name": "United Kingdom",
    "callingCode": 44,
    "isoA2": "GB",
    "isoA3": "GBR",
    "isoNum": 826
  },
  "US": {
    "name": "United States",
    "callingCode": 1,
    "isoA2": "US",
    "isoA3": "USA",
    "isoNum": 840
  },
  "UY": {
    "name": "Uruguay",
    "callingCode": 598,
    "isoA2": "UY",
    "isoA3": "URY",
    "isoNum": 858
  },
  "UZ": {
    "name": "Uzbekistan",
    "callingCode": 998,
    "isoA2": "UZ",
    "isoA3": "UZB",
    "isoNum": 860
  },
  "VU": {
    "name": "Vanuatu",
    "callingCode": 678,
    "isoA2": "VU",
    "isoA3": "VUT",
    "isoNum": 548
  },
  "VA": {
    "name": "Vatican City",
    "callingCode": 379,
    "isoA2": "VA",
    "isoA3": "VAT",
    "isoNum": 336
  },
  "VE": {
    "name": "Venezuela",
    "callingCode": 58,
    "isoA2": "VE",
    "isoA3": "VEN",
    "isoNum": 862
  },
  "VN": {
    "name": "Vietnam",
    "callingCode": 84,
    "isoA2": "VN",
    "isoA3": "VNM",
    "isoNum": 704
  },
  "YE": {
    "name": "Yemen",
    "callingCode": 967,
    "isoA2": "YE",
    "isoA3": "YEM",
    "isoNum": 887
  },
  "ZM": {
    "name": "Zambia",
    "callingCode": 260,
    "isoA2": "ZM",
    "isoA3": "ZMB",
    "isoNum": 894
  },
  "ZW": {
    "name": "Zimbabwe",
    "callingCode": 263,
    "isoA2": "ZW",
    "isoA3": "ZWE",
    "isoNum": 716
  }
}

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