Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A list of countries in 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, Province of China', 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'}
]
@rickycheers

This comment has been minimized.

Copy link

commented Jun 16, 2013

Awesome man! Just what I needed.

@csmu-cenr

This comment has been minimized.

Copy link

commented Jul 24, 2013

The following is the same data i json format.

[
{"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, Province of China", "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"}
]

@mariusionescu

This comment has been minimized.

Copy link

commented Aug 18, 2013

Thanks dude!

@abdulapopoola

This comment has been minimized.

Copy link

commented Aug 21, 2013

Awesome work!

@ralphcrisostomo

This comment has been minimized.

Copy link

commented Aug 21, 2013

thanks!

@pvillega

This comment has been minimized.

Copy link

commented Aug 31, 2013

thanks a million!

@barmmie

This comment has been minimized.

Copy link

commented Oct 10, 2013

Thanks a zillion!!

@agozie

This comment has been minimized.

Copy link

commented Oct 14, 2013

Thanks!!

@claudey

This comment has been minimized.

Copy link

commented Nov 12, 2013

Thanks, @keeguon.

@sherah

This comment has been minimized.

Copy link

commented Dec 16, 2013

thank you :)

@muhammadghazali

This comment has been minimized.

Copy link

commented Dec 19, 2013

Massive!
Thank you from this commit

Regards.

@abrkn

This comment has been minimized.

Copy link

commented Feb 19, 2014

[
    {
        "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, Province of China",
        "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"
    }
]

Re-formatted

@ishanray

This comment has been minimized.

Copy link

commented Mar 5, 2014

thanks a lot

@kayalshri

This comment has been minimized.

Copy link

commented Mar 21, 2014

Get it from http://vocab.nic.in/rest.php/country/json and you could find various REST API relates to gov.in, Hope it may help someone... :)

@tkrotoff

This comment has been minimized.

Copy link

commented Mar 26, 2014

There is a fork here that includes some nice fixes: https://gist.github.com/unceus/6501985

@Maidomax

This comment has been minimized.

Copy link

commented Mar 26, 2014

Since 2006 "Serbia and Montenegro" no longer exists as a country. They are now two seperate countries, Serbia with the country cone "RS", and Montenegro with the country code "ME"

The old:
http://en.wikipedia.org/wiki/Serbia_and_montenegro

The new:
http://en.wikipedia.org/wiki/Serbia
http://en.wikipedia.org/wiki/Montenegro

@nrsedat

This comment has been minimized.

Copy link

commented Apr 5, 2014

Thanks a ton

@cameronroe

This comment has been minimized.

Copy link

commented Apr 23, 2014

Thanks!

@ardrian

This comment has been minimized.

Copy link

commented Apr 28, 2014

[
    {
        "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",
        "code": "RS"
    },
        {
        "name": "Montenegro",
        "code": "ME"
    },
    {
        "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, Province of China",
        "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"
    }
]

Fixed up Serbia and Montenegro

@thinklinux

This comment has been minimized.

Copy link

commented May 3, 2014

Thanks a lot! Saved me a lot of time : )

@thinklinux

This comment has been minimized.

Copy link

commented May 4, 2014

Added Kosovo with country code "XK" assigned as a temporary code to Kosovo under UN Security Council resolution 1244/99 and some other fixes

[
    {
        "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, Democratic Republic",
        "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",
        "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 (North)",
        "code": "KP"
    },
    {
        "name": "Korea (South)",
        "code": "KR"
    },
    {
        "name": "Kosovo",
        "code": "XK"
    }
    {
        "name": "Kuwait",
        "code": "KW"
    },
    {
        "name": "Kyrgyzstan",
        "code": "KG"
    },
    {
        "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",
        "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",
        "code": "FM"
    },
    {
        "name": "Moldova",
        "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",
        "code": "RS"
    },
        {
        "name": "Montenegro",
        "code": "ME"
    },
    {
        "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, Province of China",
        "code": "TW"
    },
    {
        "name": "Tajikistan",
        "code": "TJ"
    },
    {
        "name": "Tanzania",
        "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"
    }
]
@danielflippance

This comment has been minimized.

Copy link

commented May 5, 2014

Awesome, thanks!

@Neologist

This comment has been minimized.

Copy link

commented May 8, 2014

What about "South Sudan"? http://en.wikipedia.org/wiki/South_Sudan

@mledoze

This comment has been minimized.

Copy link

commented May 23, 2014

For those in need of more data, I maintain a dataset with additional data for each countries: https://github.com/mledoze/countries

@bdabrowski

This comment has been minimized.

Copy link

commented Jun 2, 2014

Missing colon after Kosovo.

@IAmKio

This comment has been minimized.

Copy link

commented Jul 18, 2014

The same again, but with missing colon after Kosovo.

[
    {
        "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, Democratic Republic",
        "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",
        "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 (North)",
        "code": "KP"
    },
    {
        "name": "Korea (South)",
        "code": "KR"
    },
    {
        "name": "Kosovo",
        "code": "XK"
    },
    {
        "name": "Kuwait",
        "code": "KW"
    },
    {
        "name": "Kyrgyzstan",
        "code": "KG"
    },
    {
        "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",
        "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",
        "code": "FM"
    },
    {
        "name": "Moldova",
        "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",
        "code": "RS"
    },
        {
        "name": "Montenegro",
        "code": "ME"
    },
    {
        "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, Province of China",
        "code": "TW"
    },
    {
        "name": "Tajikistan",
        "code": "TJ"
    },
    {
        "name": "Tanzania",
        "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"
    }
]
@mariayala

This comment has been minimized.

Copy link

commented Aug 18, 2014

Thanks!!!

@rtucker88

This comment has been minimized.

Copy link

commented Oct 21, 2014

Same thing as above but with the capitalization of Rwanda fixed.

[
    {
        "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, Democratic Republic",
        "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",
        "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 (North)",
        "code": "KP"
    },
    {
        "name": "Korea (South)",
        "code": "KR"
    },
    {
        "name": "Kosovo",
        "code": "XK"
    },
    {
        "name": "Kuwait",
        "code": "KW"
    },
    {
        "name": "Kyrgyzstan",
        "code": "KG"
    },
    {
        "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",
        "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",
        "code": "FM"
    },
    {
        "name": "Moldova",
        "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",
        "code": "RS"
    },
        {
        "name": "Montenegro",
        "code": "ME"
    },
    {
        "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, Province of China",
        "code": "TW"
    },
    {
        "name": "Tajikistan",
        "code": "TJ"
    },
    {
        "name": "Tanzania",
        "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"
    }
]
@manuelstofer

This comment has been minimized.

Copy link

commented Feb 20, 2015

Same data, more compact as key value

{
  "AF": "Afghanistan",
  "AX": "Åland Islands",
  "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, Democratic Republic",
  "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",
  "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",
  "GG": "Guernsey",
  "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",
  "IQ": "Iraq",
  "IE": "Ireland",
  "IM": "Isle of Man",
  "IL": "Israel",
  "IT": "Italy",
  "JM": "Jamaica",
  "JP": "Japan",
  "JE": "Jersey",
  "JO": "Jordan",
  "KZ": "Kazakhstan",
  "KE": "Kenya",
  "KI": "Kiribati",
  "KP": "Korea (North)",
  "KR": "Korea (South)",
  "XK": "Kosovo",
  "KW": "Kuwait",
  "KG": "Kyrgyzstan",
  "LA": "Laos",
  "LV": "Latvia",
  "LB": "Lebanon",
  "LS": "Lesotho",
  "LR": "Liberia",
  "LY": "Libyan Arab Jamahiriya",
  "LI": "Liechtenstein",
  "LT": "Lithuania",
  "LU": "Luxembourg",
  "MO": "Macao",
  "MK": "Macedonia",
  "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",
  "MD": "Moldova",
  "MC": "Monaco",
  "MN": "Mongolia",
  "MS": "Montserrat",
  "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",
  "ME": "Montenegro",
  "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",
  "TH": "Thailand",
  "TL": "Timor-Leste",
  "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"
}
@matthewhll

This comment has been minimized.

Copy link

commented Apr 16, 2015

Hi,

I have noticed that there is a typo in the name of Andorra. Currently it is AndorrA whereas it should be Andorra.

@tarraq

This comment has been minimized.

Copy link

commented Apr 17, 2015

I created a repo for these files (and more like them to come).
https://github.com/tarraq/JSON-data-arrays
Watch the repo for updates and let me know if you have changes or need for other lists

@chitranshu

This comment has been minimized.

Copy link

commented May 6, 2015

I had a requirement where country codes were not required for me, but I needed all the states & cities within the countries too. I created a repo for with JSON in hierarchy & flat format.

https://github.com/chitranshu/worlddb

Please let me know if this helps and if it requires any additions.

@fradaloisio

This comment has been minimized.

Copy link

commented Jun 1, 2015

I have noticed that there is a typo in double quotes versions:

  • Cote D"Ivoire instead of Cote D'Ivoire (single quote)
  • Korea, Democratic People"S instead of Republic of Democratic People's Republic
  • Lao People"S Democratic Republic instead of Lao People's Democratic Republic
@samayo

This comment has been minimized.

Copy link

commented Jun 1, 2015

I have 16 .json files, for population, calling code, language, tld, life-expectancty and more @ https://github.com/samayo/country.json/tree/master/src

make sure to check it out

@wesww

This comment has been minimized.

Copy link

commented Jun 2, 2015

Hey heads up for anyone considering using this dataset, the entry for Taiwan is listed as
{"name": "Taiwan, Province of China", "code": "TW"}
which is extremely problematic. Taiwan is a country, not a province. It should just say
{"name": "Taiwan", "code": "TW"},

@uitrainemg

This comment has been minimized.

Copy link

commented Jun 27, 2015

Would love to have a wiki link along with country data

@anjijava16

This comment has been minimized.

Copy link

commented Aug 30, 2015

Thanks dude :)

@aleross

This comment has been minimized.

Copy link

commented Sep 2, 2015

Here's a version in the same code format as the original with all the errors pointed out so far fixed, including Taiwan, Andorra, Rwanda, North Korea, Montenegro, Serbia, Laos, and anything else mentioned in this thread.

    [
        { 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: 'Democratic People\'s Republic of Korea', code: 'KP' },
        { name: 'Korea, Republic of', code: 'KR' },
        { name: 'Kosovo', code: 'XK' },
        { 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: '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: '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', code: 'RS' },
        { 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' }
    ]
@josephrexme

This comment has been minimized.

Copy link

commented Oct 1, 2015

@ghost

This comment has been minimized.

Copy link

commented Oct 4, 2015

http://peric.github.io/GetCountries/

This will be very helpful

@pieter-biesemans

This comment has been minimized.

Copy link

commented Oct 5, 2015

lifesaver! thanks everyone for original and fixes!

@salmasamiei

This comment has been minimized.

Copy link

commented Oct 18, 2015

is this in JSON format? I couldn't use it

@josephrexme

This comment has been minimized.

Copy link

commented Nov 27, 2015

You need to change the single quotes to double quotes

@saman

This comment has been minimized.

Copy link

commented Jan 1, 2016

@aleross's list, correct JSON format:

[
        { "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": "Democratic People's Republic of Korea", "code": "KP" },
        { "name": "Korea, Republic of", "code": "KR" },
        { "name": "Kosovo", "code": "XK" },
        { "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": "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": "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", "code": "RS" },
        { "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" }
]
@saman

This comment has been minimized.

Copy link

commented Jan 1, 2016

@aleross's list in other format:

{
    "AF": "Afghanistan", 
    "AX": "Åland Islands", 
    "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", 
    "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", 
    "GG": "Guernsey", 
    "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", 
    "IM": "Isle of Man", 
    "IL": "Israel", 
    "IT": "Italy", 
    "JM": "Jamaica", 
    "JP": "Japan", 
    "JE": "Jersey", 
    "JO": "Jordan", 
    "KZ": "Kazakhstan", 
    "KE": "Kenya", 
    "KI": "Kiribati", 
    "KP": "Democratic People's Republic of Korea", 
    "KR": "Korea, Republic of", 
    "XK": "Kosovo", 
    "KW": "Kuwait", 
    "KG": "Kyrgyzstan", 
    "LA": "Lao People's Democratic Republic", 
    "LV": "Latvia", 
    "LB": "Lebanon", 
    "LS": "Lesotho", 
    "LR": "Liberia", 
    "LY": "Libyan Arab Jamahiriya", 
    "LI": "Liechtenstein", 
    "LT": "Lithuania", 
    "LU": "Luxembourg", 
    "MO": "Macao", 
    "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", 
    "ME": "Montenegro", 
    "MS": "Montserrat", 
    "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", 
    "TJ": "Tajikistan", 
    "TZ": "Tanzania, United Republic of", 
    "TH": "Thailand", 
    "TL": "Timor-Leste", 
    "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"
}
@roadev

This comment has been minimized.

Copy link

commented Jan 25, 2016

Thanks! :D

@turen1234

This comment has been minimized.

Copy link

commented Feb 12, 2016

any 3 letter codes?

@samayo

This comment has been minimized.

Copy link

commented Mar 18, 2016

make sure you guys check out https://github.com/samayo/country-data

@jcsky

This comment has been minimized.

Copy link

commented Apr 14, 2016

Taiwan is not Province of China

@mrkala

This comment has been minimized.

Copy link

commented May 11, 2016

is anyone having JSON for india's state list ?

@BrainCrumbz

This comment has been minimized.

Copy link

commented Jun 5, 2016

@mrkala have you already tried on https://restcountries.eu/ ? It might be worth having a look at that

@jalamprea

This comment has been minimized.

Copy link

commented Jun 23, 2016

Great contribution!!
Do you have something like this json but with all states and other wiht the cities by each state on USA?

@slidenerd

This comment has been minimized.

Copy link

commented Aug 13, 2016

Does anyone have this in NDJSON format? or newline delimited json format?

Thanks

@lorey

This comment has been minimized.

Copy link

commented Aug 29, 2016

I have created a repository with this and much more data (ISO, tld, capital, language, population) in various formats (json, csv, php) at https://github.com/lorey/list-of-countries

@meetmehdi

This comment has been minimized.

Copy link

commented Sep 1, 2016

Thanks it really helped a lot :)

@Compufreak345

This comment has been minimized.

Copy link

commented Sep 7, 2016

I used this in some demo code. I am wondering of the license - is there any? :>

@carmona

This comment has been minimized.

Copy link

commented Sep 8, 2016

@saman I just came here to say thank you! This has helped me a lot.

@erikswed

This comment has been minimized.

Copy link

commented Sep 13, 2016

Thanks very much for the country list.

Here´s some cool things to know about the world:
"UN Members: 193
UN Observer States: 2
States With Partial Recognition: 2
Inhabited Dependent Territories: 45
Uninhabited Territories: 6
Antarctica: 1
Total: 249

So there you have it! Next time someone tells you "There are X countries in the world," remember that the real answer isn't so simple!"

http://www.polgeonow.com/2011/04/how-many-countries-are-there-in-world.html

@renanborgez

This comment has been minimized.

Copy link

commented Sep 30, 2016

Thank you

@erikswed

This comment has been minimized.

Copy link

commented Oct 5, 2016

her´s another json with countries as key. json dont like "." so the 'Virgin Islands, U.S.' hade to let go of the ".".
might save someone a few hours have fun:)

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

@vishnumohan89

This comment has been minimized.

Copy link

commented Oct 13, 2016

Hey...

Thank you very much... All the best to you

@BharatGangadiya32

This comment has been minimized.

Copy link

commented Oct 26, 2016

please list of dialing code and country code

@keithpjolley

This comment has been minimized.

Copy link

commented Jan 1, 2017

http://country.io/data/ -- though i don't see a timestamp or external sources.

@aakilfernandes

This comment has been minimized.

Copy link

commented Jan 5, 2017

@aakilfernandes

This comment has been minimized.

Copy link

commented Jan 5, 2017

key value store, where code is self referenced in the value.

{ 
  af: { code: 'af', name: 'Afghanistan' },
  ax: { code: 'ax', name: 'Åland Islands' },
  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' },
  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, Democratic Republic' },
  ck: { code: 'ck', name: 'Cook Islands' },
  cr: { code: 'cr', name: 'Costa Rica' },
  ci: { code: 'ci', name: 'Cote D"Ivoire' },
  hr: { code: 'hr', name: 'Croatia' },
  cu: { code: 'cu', name: 'Cuba' },
  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' },
  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 (North)' },
  kr: { code: 'kr', name: 'Korea (South)' },
  xk: { code: 'xk', name: 'Kosovo' },
  kw: { code: 'kw', name: 'Kuwait' },
  kg: { code: 'kg', name: 'Kyrgyzstan' },
  la: { code: 'la', name: 'Laos' },
  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' },
  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' },
  md: { code: 'md', name: 'Moldova' },
  mc: { code: 'mc', name: 'Monaco' },
  mn: { code: 'mn', name: 'Mongolia' },
  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' },
  re: { code: 're', name: 'Reunion' },
  ro: { code: 'ro', name: 'Romania' },
  ru: { code: 'ru', name: 'Russian Federation' },
  rw: { code: 'rw', name: 'Rwanda' },
  sh: { code: 'sh', name: 'Saint Helena' },
  kn: { code: 'kn', name: 'Saint Kitts and Nevis' },
  lc: { code: 'lc', name: 'Saint Lucia' },
  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' },
  me: { code: 'me', name: 'Montenegro' },
  sc: { code: 'sc', name: 'Seychelles' },
  sl: { code: 'sl', name: 'Sierra Leone' },
  sg: { code: 'sg', name: 'Singapore' },
  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' },
  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' },
  se: { code: 'se', name: 'Sweden' },
  ch: { code: 'ch', name: 'Switzerland' },
  sy: { code: 'sy', name: 'Syrian Arab Republic' },
  tw: { code: 'tw', name: 'Taiwan, Province of China' },
  tj: { code: 'tj', name: 'Tajikistan' },
  tz: { code: 'tz', name: 'Tanzania' },
  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: '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' }
}
@ryankane

This comment has been minimized.

Copy link

commented Jan 11, 2017

Why is everyone linking their code directly in the comments? Create a Gist yourself and link it here.

https://rawgit.com/ryankane/d40364df707e9e600fcaa0bb645c762f/raw/95c865f7258e61e254a5b405d867e35de7530e61/countries.json

Anyone can use this in a production environment, because it is valid JSON and it is hosted via RawGit (a CDN), which adds the proper XHR headers.

@susana-garcia

This comment has been minimized.

Copy link

commented Jan 16, 2017

thank you all!

@LightMan

This comment has been minimized.

Copy link

commented Feb 8, 2017

Just to say that "AndorrA" should be "Andorra", last letter should be in lowercase

@jorgeorpinel

This comment has been minimized.

Copy link

commented Feb 9, 2017

Wow this is an annoying conversation hahahaha. GH should collapse long comments... Anyway, all these list will be outdated eventually, use a 3rd party source/ service! geonames.org or even MaxMind, for example.

Also, while I agree Taiwan is a country, it's a province of China according to the UN because it's in the interest of the US to respect the so called "one China" principle! Hong Kong and other places are in similar situations. We just call them all "territories" to avoid politics since this is a purely technical problem for a software developer.

@ryukato

This comment has been minimized.

Copy link

commented Apr 15, 2017

Thanks mate!

@akankshafb

This comment has been minimized.

Copy link

commented May 16, 2017

Hi.. I want a list of country, country wise state and country and state wise city...
anybady has list of this ... please help me.

@rmuhire

This comment has been minimized.

Copy link

commented Jun 27, 2017

[
{
"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, Province of China",
"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"
}
]

@hemanthkaipaa

This comment has been minimized.

Copy link

commented Aug 5, 2017

Hey There,
All list of CountryCodes with DIAL CODE. (230 countries)

{
"countryCodes": [{
"country_code": "AF",
"country_name": "Afghanistan",
"dialling_code": "+93"
},
{
"country_code": "AL",
"country_name": "Albania",
"dialling_code": "+355"
},
{
"country_code": "DZ",
"country_name": "Algeria",
"dialling_code": "+213"
},
{
"country_code": "AS",
"country_name": "American Samoa",
"dialling_code": "+1"
},
{
"country_code": "AD",
"country_name": "Andorra",
"dialling_code": "+376"
},
{
"country_code": "AO",
"country_name": "Angola",
"dialling_code": "+244"
},
{
"country_code": "AI",
"country_name": "Anguilla",
"dialling_code": "+1"
},
{
"country_code": "AG",
"country_name": "Antigua",
"dialling_code": "+1"
},
{
"country_code": "AR",
"country_name": "Argentina",
"dialling_code": "+54"
},
{
"country_code": "AM",
"country_name": "Armenia",
"dialling_code": "+374"
},
{
"country_code": "AW",
"country_name": "Aruba",
"dialling_code": "+297"
},
{
"country_code": "AU",
"country_name": "Australia",
"dialling_code": "+61"
},
{
"country_code": "AI",
"country_name": "Austria",
"dialling_code": "+43"
},
{
"country_code": "AZ",
"country_name": "Azerbaijan",
"dialling_code": "+994"
},
{
"country_code": "BH",
"country_name": "Bahrain",
"dialling_code": "+973"
},
{
"country_code": "BD",
"country_name": "Bangladesh",
"dialling_code": "+880"
},
{
"country_code": "BB",
"country_name": "Barbados",
"dialling_code": "+1"
},
{
"country_code": "BY",
"country_name": "Belarus",
"dialling_code": "+375"
},
{
"country_code": "BE",
"country_name": "Belgium",
"dialling_code": "+32"
},
{
"country_code": "BZ",
"country_name": "Belize",
"dialling_code": "+501"
},
{
"country_code": "BJ",
"country_name": "Benin",
"dialling_code": "+229"
},
{
"country_code": "BM",
"country_name": "Bermuda",
"dialling_code": "+1"
},
{
"country_code": "BT",
"country_name": "Bhutan",
"dialling_code": "+975"
},
{
"country_code": "BO",
"country_name": "Bolivia",
"dialling_code": "+591"
},
{
"country_code": "BA",
"country_name": "Bosnia and Herzegovina",
"dialling_code": "+387"
},
{
"country_code": "BW",
"country_name": "Botswana",
"dialling_code": "+267"
},
{
"country_code": "BR",
"country_name": "Brazil",
"dialling_code": "+55"
},
{
"country_code": "IO",
"country_name": "British Indian Ocean Territory",
"dialling_code": "+246"
},
{
"country_code": "VG",
"country_name": "British Virgin Islands",
"dialling_code": "+1"
},
{
"country_code": "BN",
"country_name": "Brunei",
"dialling_code": "+673"
},
{
"country_code": "BG",
"country_name": "Bulgaria",
"dialling_code": "+359"
},
{
"country_code": "BF",
"country_name": "Burkina Faso",
"dialling_code": "+226"
},
{
"country_code": "MM",
"country_name": "Burma Myanmar",
"dialling_code": "+95"
},
{
"country_code": "BI",
"country_name": "Burundi",
"dialling_code": "+257"
},
{
"country_code": "KH",
"country_name": "Cambodia",
"dialling_code": "+855"
},
{
"country_code": "CM",
"country_name": "Cameroon",
"dialling_code": "+237"
},
{
"country_code": "CA",
"country_name": "Canada",
"dialling_code": "+1"
},
{
"country_code": "CV",
"country_name": "Cape Verde",
"dialling_code": "+238"
},
{
"country_code": "KY",
"country_name": "Cayman Islands",
"dialling_code": "+1"
},
{
"country_code": "CF",
"country_name": "Central African Republic",
"dialling_code": "+236"
},
{
"country_code": "ID",
"country_name": "Chad",
"dialling_code": "+235"
},
{
"country_code": "CL",
"country_name": "Chile",
"dialling_code": "+56"
},
{
"country_code": "CN",
"country_name": "China",
"dialling_code": "+86"
},
{
"country_code": "CO",
"country_name": "Colombia",
"dialling_code": "+57"
},
{
"country_code": "KM",
"country_name": "Comoros",
"dialling_code": "+269"
},
{
"country_code": "CK",
"country_name": "Cook Islands",
"dialling_code": "+682"
},
{
"country_code": "CR",
"country_name": "Costa Rica",
"dialling_code": "+506"
},
{
"country_code": "CI",
"country_name": "Côte d'Ivoire",
"dialling_code": "+225"
},
{
"country_code": "HR",
"country_name": "Croatia",
"dialling_code": "+385"
},
{
"country_code": "CU",
"country_name": "Cuba",
"dialling_code": "+53"
},
{
"country_code": "CY",
"country_name": "Cyprus",
"dialling_code": "+357"
},
{
"country_code": "CZ",
"country_name": "Czech Republic",
"dialling_code": "+420"
},
{
"country_code": "CD",
"country_name": "Democratic Republic of Congo",
"dialling_code": "+243"
},
{
"country_code": "DK",
"country_name": "Denmark",
"dialling_code": "+45"
},
{
"country_code": "DJ",
"country_name": "Djibouti",
"dialling_code": "+253"
},
{
"country_code": "DM",
"country_name": "Dominica",
"dialling_code": "+1"
},
{
"country_code": "DO",
"country_name": "Dominican Republic",
"dialling_code": "+1"
},
{
"country_code": "EC",
"country_name": "Ecuador",
"dialling_code": "+593"
},
{
"country_code": "EG",
"country_name": "Egypt",
"dialling_code": "+20"
},
{
"country_code": "SV",
"country_name": "El Salvador",
"dialling_code": "+503"
},
{
"country_code": "GQ",
"country_name": "Equatorial Guinea",
"dialling_code": "+240"
},
{
"country_code": "ER",
"country_name": "Eritrea",
"dialling_code": "+291"
},
{
"country_code": "EE",
"country_name": "Estonia",
"dialling_code": "+372"
},
{
"country_code": "ET",
"country_name": "Ethiopia",
"dialling_code": "+251"
},
{
"country_code": "FK",
"country_name": "Falkland Islands",
"dialling_code": "+500"
},
{
"country_code": "FO",
"country_name": "Faroe Islands",
"dialling_code": "+298"
},
{
"country_code": "FM",
"country_name": "Federated States of Micronesia",
"dialling_code": "+691"
},
{
"country_code": "FJ",
"country_name": "Fiji",
"dialling_code": "+679"
},
{
"country_code": "FI",
"country_name": "Finland",
"dialling_code": "+358"
},
{
"country_code": "FR",
"country_name": "France",
"dialling_code": "+33"
},
{
"country_code": "GF",
"country_name": "French Guiana",
"dialling_code": "+594"
},
{
"country_code": "PF",
"country_name": "French Polynesia",
"dialling_code": "+689"
},
{
"country_code": "GA",
"country_name": "Gabon",
"dialling_code": "+241"
},
{
"country_code": "GE",
"country_name": "Georgia",
"dialling_code": "+995"
},
{
"country_code": "DE",
"country_name": "Germany",
"dialling_code": "+49"
},
{
"country_code": "GH",
"country_name": "Ghana",
"dialling_code": "+233"
},
{
"country_code": "GI",
"country_name": "Gibraltar",
"dialling_code": "+350"
},
{
"country_code": "GR",
"country_name": "Greece",
"dialling_code": "+30"
},
{
"country_code": "GL",
"country_name": "Greenland",
"dialling_code": "+299"
},
{
"country_code": "GD",
"country_name": "Grenada",
"dialling_code": "+1"
},
{
"country_code": "GP",
"country_name": "Guadeloupe",
"dialling_code": "+590"
},
{
"country_code": "GU",
"country_name": "Guam",
"dialling_code": "+1"
},
{
"country_code": "GT",
"country_name": "Guatemala",
"dialling_code": "+502"
},
{
"country_code": "GN",
"country_name": "Guinea",
"dialling_code": "+224"
},
{
"country_code": "GW",
"country_name": "Guinea-Bissau",
"dialling_code": "+245"
},
{
"country_code": "GY",
"country_name": "Guyana",
"dialling_code": "+592"
},
{
"country_code": "HT",
"country_name": "Haiti",
"dialling_code": "+509"
},
{
"country_code": "HN",
"country_name": "Honduras",
"dialling_code": "+504"
},
{
"country_code": "HK",
"country_name": "Hong Kong",
"dialling_code": "+852"
},
{
"country_code": "HU",
"country_name": "Hungary",
"dialling_code": "+36"
},
{
"country_code": "IS",
"country_name": "Iceland",
"dialling_code": "+354"
},
{
"country_code": "IN",
"country_name": "India",
"dialling_code": "+91"
},
{
"country_code": "ID",
"country_name": "Indonesia",
"dialling_code": "+62"
},
{
"country_code": "IR",
"country_name": "Iran",
"dialling_code": "+98"
},
{
"country_code": "IQ",
"country_name": "Iraq",
"dialling_code": "+964"
},
{
"country_code": "IE",
"country_name": "Ireland",
"dialling_code": "+353"
},
{
"country_code": "IL",
"country_name": "Israel",
"dialling_code": "+972"
},
{
"country_code": "IT",
"country_name": "Italy",
"dialling_code": "+39"
},
{
"country_code": "JM",
"country_name": "Jamaica",
"dialling_code": "+1"
},
{
"country_code": "JP",
"country_name": "Japan",
"dialling_code": "+81"
},
{
"country_code": "JO",
"country_name": "Jordan",
"dialling_code": "+962"
},
{
"country_code": "KZ",
"country_name": "Kazakhstan",
"dialling_code": "+7"
},
{
"country_code": "KE",
"country_name": "Kenya",
"dialling_code": "+254"
},
{
"country_code": "KI",
"country_name": "Kiribati",
"dialling_code": "+686"
},
{
"country_code": "XK",
"country_name": "Kosovo",
"dialling_code": "+381"
},
{
"country_code": "KW",
"country_name": "Kuwait",
"dialling_code": "+965"
},
{
"country_code": "KG",
"country_name": "Kyrgyzstan",
"dialling_code": "+996"
},
{
"country_code": "LA",
"country_name": "Laos",
"dialling_code": "+856"
},
{
"country_code": "LV",
"country_name": "Latvia",
"dialling_code": "+371"
},
{
"country_code": "LB",
"country_name": "Lebanon",
"dialling_code": "+961"
},
{
"country_code": "LS",
"country_name": "Lesotho",
"dialling_code": "+266"
},
{
"country_code": "LR",
"country_name": "Liberia",
"dialling_code": "+231"
},
{
"country_code": "LY",
"country_name": "Libya",
"dialling_code": "+218"
},
{
"country_code": "LI",
"country_name": "Liechtenstein",
"dialling_code": "+423"
},
{
"country_code": "LT",
"country_name": "Lithuania",
"dialling_code": "+370"
},
{
"country_code": "LU",
"country_name": "Luxembourg",
"dialling_code": "+352"
},
{
"country_code": "MO",
"country_name": "Macau",
"dialling_code": "+853"
},
{
"country_code": "MK",
"country_name": "Macedonia",
"dialling_code": "+389"
},
{
"country_code": "MG",
"country_name": "Madagascar",
"dialling_code": "+261"
},
{
"country_code": "MW",
"country_name": "Malawi",
"dialling_code": "+265"
},
{
"country_code": "MY",
"country_name": "Malaysia",
"dialling_code": "+60"
},
{
"country_code": "MV",
"country_name": "Maldives",
"dialling_code": "+960"
},
{
"country_code": "ML",
"country_name": "Mali",
"dialling_code": "+223"
},
{
"country_code": "MT",
"country_name": "Malta",
"dialling_code": "+356"
},
{
"country_code": "MH",
"country_name": "Marshall Islands",
"dialling_code": "+692"
},
{
"country_code": "MQ",
"country_name": "Martinique",
"dialling_code": "+596"
},
{
"country_code": "MR",
"country_name": "Mauritania",
"dialling_code": "+222"
},
{
"country_code": "MU",
"country_name": "Mauritius",
"dialling_code": "+230"
},
{
"country_code": "YT",
"country_name": "Mayotte",
"dialling_code": "+262"
},
{
"country_code": "MX",
"country_name": "Mexico",
"dialling_code": "+52"
},
{
"country_code": "MD",
"country_name": "Moldova",
"dialling_code": "+373"
},
{
"country_code": "MC",
"country_name": "Monaco",
"dialling_code": "+377"
},
{
"country_code": "MN",
"country_name": "Mongolia",
"dialling_code": "+976"
},
{
"country_code": "ME",
"country_name": "Montenegro",
"dialling_code": "+382"
},
{
"country_code": "MS",
"country_name": "Montserrat",
"dialling_code": "+1"
},
{
"country_code": "MA",
"country_name": "Morocco",
"dialling_code": "+212"
},
{
"country_code": "MZ",
"country_name": "Mozambique",
"dialling_code": "+258"
},
{
"country_code": "NA",
"country_name": "Namibia",
"dialling_code": "+264"
},
{
"country_code": "NR",
"country_name": "Nauru",
"dialling_code": "+674"
},
{
"country_code": "NP",
"country_name": "Nepal",
"dialling_code": "+977"
},
{
"country_code": "NL",
"country_name": "Netherlands",
"dialling_code": "+31"
},
{
"country_code": "AN",
"country_name": "Netherlands Antilles",
"dialling_code": "+599"
},
{
"country_code": "NC",
"country_name": "New Caledonia",
"dialling_code": "+687"
},
{
"country_code": "NZ",
"country_name": "New Zealand",
"dialling_code": "+64"
},
{
"country_code": "NI",
"country_name": "Nicaragua",
"dialling_code": "+505"
},
{
"country_code": "NE",
"country_name": "Niger",
"dialling_code": "+227"
},
{
"country_code": "NG",
"country_name": "Nigeria",
"dialling_code": "+234"
},
{
"country_code": "NU",
"country_name": "Niue",
"dialling_code": "+683"
},
{
"country_code": "NF",
"country_name": "Norfolk Island",
"dialling_code": "+672"
},
{
"country_code": "KP",
"country_name": "North Korea",
"dialling_code": "+850"
},
{
"country_code": "MP",
"country_name": "Northern Mariana Islands",
"dialling_code": "+1"
},
{
"country_code": "NO",
"country_name": "Norway",
"dialling_code": "+47"
},
{
"country_code": "OM",
"country_name": "Oman",
"dialling_code": "+968"
},
{
"country_code": "PK",
"country_name": "Pakistan",
"dialling_code": "+92"
},
{
"country_code": "PW",
"country_name": "Palau",
"dialling_code": "+680"
},
{
"country_code": "PS",
"country_name": "Palestine",
"dialling_code": "+970"
},
{
"country_code": "PA",
"country_name": "Panama",
"dialling_code": "+507"
},
{
"country_code": "PG",
"country_name": "Papua New Guinea",
"dialling_code": "+675"
},
{
"country_code": "PY",
"country_name": "Paraguay",
"dialling_code": "+595"
},
{
"country_code": "PE",
"country_name": "Peru",
"dialling_code": "+51"
},
{
"country_code": "PH",
"country_name": "Philippines",
"dialling_code": "+63"
},
{
"country_code": "PL",
"country_name": "Poland",
"dialling_code": "+48"
},
{
"country_code": "PT",
"country_name": "Portugal",
"dialling_code": "+351"
},
{
"country_code": "PR",
"country_name": "Puerto Rico",
"dialling_code": "+1"
},
{
"country_code": "QA",
"country_name": "Qatar",
"dialling_code": "+974"
},
{
"country_code": "CG",
"country_name": "Republic of the Congo",
"dialling_code": "+242"
},
{
"country_code": "RE",
"country_name": "Réunion",
"dialling_code": "+262"
},
{
"country_code": "RO",
"country_name": "Romania",
"dialling_code": "+40"
},
{
"country_code": "RU",
"country_name": "Russia",
"dialling_code": "+7"
},
{
"country_code": "RW",
"country_name": "Rwanda",
"dialling_code": "+250"
},
{
"country_code": "BL",
"country_name": "Saint Barthélemy",
"dialling_code": "+590"
},
{
"country_code": "SH",
"country_name": "Saint Helena",
"dialling_code": "+290"
},
{
"country_code": "KN",
"country_name": "Saint Kitts and Nevis",
"dialling_code": "+1"
},
{
"country_code": "MF",
"country_name": "Saint Martin",
"dialling_code": "+590"
},
{
"country_code": "PM",
"country_name": "Saint Pierre and Miquelon",
"dialling_code": "+508"
},
{
"country_code": "VC",
"country_name": "Saint Vincent and the Grenadines",
"dialling_code": "+1"
},
{
"country_code": "WS",
"country_name": "Samoa",
"dialling_code": "+685"
},
{
"country_code": "SM",
"country_name": "San Marino",
"dialling_code": "+378"
},
{
"country_code": "ST",
"country_name": "São Tomé and Príncipe",
"dialling_code": "+239"
},
{
"country_code": "SA",
"country_name": "Saudi Arabia",
"dialling_code": "+966"
},
{
"country_code": "SN",
"country_name": "Senegal",
"dialling_code": "+221"
},
{
"country_code": "RS",
"country_name": "Serbia",
"dialling_code": "+381"
},
{
"country_code": "SC",
"country_name": "Seychelles",
"dialling_code": "+248"
},
{
"country_code": "SL",
"country_name": "Sierra Leone",
"dialling_code": "+232"
},
{
"country_code": "SG",
"country_name": "Singapore",
"dialling_code": "+65"
},
{
"country_code": "SK",
"country_name": "Slovakia",
"dialling_code": "+421"
},
{
"country_code": "SI",
"country_name": "Slovenia",
"dialling_code": "+386"
},
{
"country_code": "SB",
"country_name": "Solomon Islands",
"dialling_code": "+677"
},
{
"country_code": "SO",
"country_name": "Somalia",
"dialling_code": "+252"
},
{
"country_code": "ZA",
"country_name": "South Africa",
"dialling_code": "+27"
},
{
"country_code": "KR",
"country_name": "South Korea",
"dialling_code": "+82"
},
{
"country_code": "ES",
"country_name": "Spain",
"dialling_code": "+34"
},
{
"country_code": "LK",
"country_name": "Sri Lanka",
"dialling_code": "+94"
},
{
"country_code": "LC",
"country_name": "St. Lucia",
"dialling_code": "+1"
},
{
"country_code": "SD",
"country_name": "Sudan",
"dialling_code": "+249"
},
{
"country_code": "SR",
"country_name": "Suriname",
"dialling_code": "+597"
},
{
"country_code": "SZ",
"country_name": "Swaziland",
"dialling_code": "+268"
},
{
"country_code": "SE",
"country_name": "Sweden",
"dialling_code": "+46"
},
{
"country_code": "CH",
"country_name": "Switzerland",
"dialling_code": "+41"
},
{
"country_code": "SY",
"country_name": "Syria",
"dialling_code": "+963"
},
{
"country_code": "TW",
"country_name": "Taiwan",
"dialling_code": "+886"
},
{
"country_code": "TJ",
"country_name": "Tajikistan",
"dialling_code": "+992"
},
{
"country_code": "TZ",
"country_name": "Tanzania",
"dialling_code": "+255"
},
{
"country_code": "TH",
"country_name": "Thailand",
"dialling_code": "+66"
},
{
"country_code": "BS",
"country_name": "The Bahamas",
"dialling_code": "+1"
},
{
"country_code": "GM",
"country_name": "The Gambia",
"dialling_code": "+220"
},
{
"country_code": "TL",
"country_name": "Timor-Leste",
"dialling_code": "+670"
},
{
"country_code": "TG",
"country_name": "Togo",
"dialling_code": "+228"
},
{
"country_code": "TK",
"country_name": "Tokelau",
"dialling_code": "+690"
},
{
"country_code": "TO",
"country_name": "Tonga",
"dialling_code": "+676"
},
{
"country_code": "TT",
"country_name": "Trinidad and Tobago",
"dialling_code": "+1"
},
{
"country_code": "TN",
"country_name": "Tunisia",
"dialling_code": "+216"
},
{
"country_code": "TR",
"country_name": "Turkey",
"dialling_code": "+90"
},
{
"country_code": "TM",
"country_name": "Turkmenistan",
"dialling_code": "+993"
},
{
"country_code": "TC",
"country_name": "Turks and Caicos Islands",
"dialling_code": "+1"
},
{
"country_code": "TV",
"country_name": "Tuvalu",
"dialling_code": "+688"
},
{
"country_code": "UG",
"country_name": "Uganda",
"dialling_code": "+256"
},
{
"country_code": "UA",
"country_name": "Ukraine",
"dialling_code": "+380"
},
{
"country_code": "AE",
"country_name": "United Arab Emirates",
"dialling_code": "+971"
},
{
"country_code": "GB",
"country_name": "United Kingdom",
"dialling_code": "+44"
},
{
"country_code": "US",
"country_name": "United States",
"dialling_code": "+1"
},
{
"country_code": "UY",
"country_name": "Uruguay",
"dialling_code": "+598"
},
{
"country_code": "VI",
"country_name": "US Virgin Islands",
"dialling_code": "+1"
},
{
"country_code": "UZ",
"country_name": "Uzbekistan",
"dialling_code": "+998"
},
{
"country_code": "VU",
"country_name": "Vanuatu",
"dialling_code": "+678"
},
{
"country_code": "VA",
"country_name": "Vatican City",
"dialling_code": "+39"
},
{
"country_code": "VE",
"country_name": "Venezuela",
"dialling_code": "+58"
},
{
"country_code": "VN",
"country_name": "Vietnam",
"dialling_code": "+84"
},
{
"country_code": "WF",
"country_name": "Wallis and Futuna",
"dialling_code": "+681"
},
{
"country_code": "YE",
"country_name": "Yemen",
"dialling_code": "+967"
},
{
"country_code": "ZM",
"country_name": "Zambia",
"dialling_code": "+260"
},
{
"country_code": "ZW",
"country_name": "Zimbabwe",
"dialling_code": "+263"
}
]
}

@doness

This comment has been minimized.

Copy link

commented Sep 26, 2017

{
	"countryCodes": [{
			"country_code": "AF",
			"country_name": "Afghanistan",
			"dialling_code": "+93"
		},
		{
			"country_code": "AL",
			"country_name": "Albania",
			"dialling_code": "+355"
		},
		{
			"country_code": "DZ",
			"country_name": "Algeria",
			"dialling_code": "+213"
		},
		{
			"country_code": "AS",
			"country_name": "American Samoa",
			"dialling_code": "+1"
		},
		{
			"country_code": "AD",
			"country_name": "Andorra",
			"dialling_code": "+376"
		},
		{
			"country_code": "AO",
			"country_name": "Angola",
			"dialling_code": "+244"
		},
		{
			"country_code": "AI",
			"country_name": "Anguilla",
			"dialling_code": "+1"
		},
		{
			"country_code": "AG",
			"country_name": "Antigua",
			"dialling_code": "+1"
		},
		{
			"country_code": "AR",
			"country_name": "Argentina",
			"dialling_code": "+54"
		},
		{
			"country_code": "AM",
			"country_name": "Armenia",
			"dialling_code": "+374"
		},
		{
			"country_code": "AW",
			"country_name": "Aruba",
			"dialling_code": "+297"
		},
		{
			"country_code": "AU",
			"country_name": "Australia",
			"dialling_code": "+61"
		},
		{
			"country_code": "AI",
			"country_name": "Austria",
			"dialling_code": "+43"
		},
		{
			"country_code": "AZ",
			"country_name": "Azerbaijan",
			"dialling_code": "+994"
		},
		{
			"country_code": "BH",
			"country_name": "Bahrain",
			"dialling_code": "+973"
		},
		{
			"country_code": "BD",
			"country_name": "Bangladesh",
			"dialling_code": "+880"
		},
		{
			"country_code": "BB",
			"country_name": "Barbados",
			"dialling_code": "+1"
		},
		{
			"country_code": "BY",
			"country_name": "Belarus",
			"dialling_code": "+375"
		},
		{
			"country_code": "BE",
			"country_name": "Belgium",
			"dialling_code": "+32"
		},
		{
			"country_code": "BZ",
			"country_name": "Belize",
			"dialling_code": "+501"
		},
		{
			"country_code": "BJ",
			"country_name": "Benin",
			"dialling_code": "+229"
		},
		{
			"country_code": "BM",
			"country_name": "Bermuda",
			"dialling_code": "+1"
		},
		{
			"country_code": "BT",
			"country_name": "Bhutan",
			"dialling_code": "+975"
		},
		{
			"country_code": "BO",
			"country_name": "Bolivia",
			"dialling_code": "+591"
		},
		{
			"country_code": "BA",
			"country_name": "Bosnia and Herzegovina",
			"dialling_code": "+387"
		},
		{
			"country_code": "BW",
			"country_name": "Botswana",
			"dialling_code": "+267"
		},
		{
			"country_code": "BR",
			"country_name": "Brazil",
			"dialling_code": "+55"
		},
		{
			"country_code": "IO",
			"country_name": "British Indian Ocean Territory",
			"dialling_code": "+246"
		},
		{
			"country_code": "VG",
			"country_name": "British Virgin Islands",
			"dialling_code": "+1"
		},
		{
			"country_code": "BN",
			"country_name": "Brunei",
			"dialling_code": "+673"
		},
		{
			"country_code": "BG",
			"country_name": "Bulgaria",
			"dialling_code": "+359"
		},
		{
			"country_code": "BF",
			"country_name": "Burkina Faso",
			"dialling_code": "+226"
		},
		{
			"country_code": "MM",
			"country_name": "Burma Myanmar",
			"dialling_code": "+95"
		},
		{
			"country_code": "BI",
			"country_name": "Burundi",
			"dialling_code": "+257"
		},
		{
			"country_code": "KH",
			"country_name": "Cambodia",
			"dialling_code": "+855"
		},
		{
			"country_code": "CM",
			"country_name": "Cameroon",
			"dialling_code": "+237"
		},
		{
			"country_code": "CA",
			"country_name": "Canada",
			"dialling_code": "+1"
		},
		{
			"country_code": "CV",
			"country_name": "Cape Verde",
			"dialling_code": "+238"
		},
		{
			"country_code": "KY",
			"country_name": "Cayman Islands",
			"dialling_code": "+1"
		},
		{
			"country_code": "CF",
			"country_name": "Central African Republic",
			"dialling_code": "+236"
		},
		{
			"country_code": "ID",
			"country_name": "Chad",
			"dialling_code": "+235"
		},
		{
			"country_code": "CL",
			"country_name": "Chile",
			"dialling_code": "+56"
		},
		{
			"country_code": "CN",
			"country_name": "China",
			"dialling_code": "+86"
		},
		{
			"country_code": "CO",
			"country_name": "Colombia",
			"dialling_code": "+57"
		},
		{
			"country_code": "KM",
			"country_name": "Comoros",
			"dialling_code": "+269"
		},
		{
			"country_code": "CK",
			"country_name": "Cook Islands",
			"dialling_code": "+682"
		},
		{
			"country_code": "CR",
			"country_name": "Costa Rica",
			"dialling_code": "+506"
		},
		{
			"country_code": "CI",
			"country_name": "Côte d'Ivoire",
			"dialling_code": "+225"
		},
		{
			"country_code": "HR",
			"country_name": "Croatia",
			"dialling_code": "+385"
		},
		{
			"country_code": "CU",
			"country_name": "Cuba",
			"dialling_code": "+53"
		},
		{
			"country_code": "CY",
			"country_name": "Cyprus",
			"dialling_code": "+357"
		},
		{
			"country_code": "CZ",
			"country_name": "Czech Republic",
			"dialling_code": "+420"
		},
		{
			"country_code": "CD",
			"country_name": "Democratic Republic of Congo",
			"dialling_code": "+243"
		},
		{
			"country_code": "DK",
			"country_name": "Denmark",
			"dialling_code": "+45"
		},
		{
			"country_code": "DJ",
			"country_name": "Djibouti",
			"dialling_code": "+253"
		},
		{
			"country_code": "DM",
			"country_name": "Dominica",
			"dialling_code": "+1"
		},
		{
			"country_code": "DO",
			"country_name": "Dominican Republic",
			"dialling_code": "+1"
		},
		{
			"country_code": "EC",
			"country_name": "Ecuador",
			"dialling_code": "+593"
		},
		{
			"country_code": "EG",
			"country_name": "Egypt",
			"dialling_code": "+20"
		},
		{
			"country_code": "SV",
			"country_name": "El Salvador",
			"dialling_code": "+503"
		},
		{
			"country_code": "GQ",
			"country_name": "Equatorial Guinea",
			"dialling_code": "+240"
		},
		{
			"country_code": "ER",
			"country_name": "Eritrea",
			"dialling_code": "+291"
		},
		{
			"country_code": "EE",
			"country_name": "Estonia",
			"dialling_code": "+372"
		},
		{
			"country_code": "ET",
			"country_name": "Ethiopia",
			"dialling_code": "+251"
		},
		{
			"country_code": "FK",
			"country_name": "Falkland Islands",
			"dialling_code": "+500"
		},
		{
			"country_code": "FO",
			"country_name": "Faroe Islands",
			"dialling_code": "+298"
		},
		{
			"country_code": "FM",
			"country_name": "Federated States of Micronesia",
			"dialling_code": "+691"
		},
		{
			"country_code": "FJ",
			"country_name": "Fiji",
			"dialling_code": "+679"
		},
		{
			"country_code": "FI",
			"country_name": "Finland",
			"dialling_code": "+358"
		},
		{
			"country_code": "FR",
			"country_name": "France",
			"dialling_code": "+33"
		},
		{
			"country_code": "GF",
			"country_name": "French Guiana",
			"dialling_code": "+594"
		},
		{
			"country_code": "PF",
			"country_name": "French Polynesia",
			"dialling_code": "+689"
		},
		{
			"country_code": "GA",
			"country_name": "Gabon",
			"dialling_code": "+241"
		},
		{
			"country_code": "GE",
			"country_name": "Georgia",
			"dialling_code": "+995"
		},
		{
			"country_code": "DE",
			"country_name": "Germany",
			"dialling_code": "+49"
		},
		{
			"country_code": "GH",
			"country_name": "Ghana",
			"dialling_code": "+233"
		},
		{
			"country_code": "GI",
			"country_name": "Gibraltar",
			"dialling_code": "+350"
		},
		{
			"country_code": "GR",
			"country_name": "Greece",
			"dialling_code": "+30"
		},
		{
			"country_code": "GL",
			"country_name": "Greenland",
			"dialling_code": "+299"
		},
		{
			"country_code": "GD",
			"country_name": "Grenada",
			"dialling_code": "+1"
		},
		{
			"country_code": "GP",
			"country_name": "Guadeloupe",
			"dialling_code": "+590"
		},
		{
			"country_code": "GU",
			"country_name": "Guam",
			"dialling_code": "+1"
		},
		{
			"country_code": "GT",
			"country_name": "Guatemala",
			"dialling_code": "+502"
		},
		{
			"country_code": "GN",
			"country_name": "Guinea",
			"dialling_code": "+224"
		},
		{
			"country_code": "GW",
			"country_name": "Guinea-Bissau",
			"dialling_code": "+245"
		},
		{
			"country_code": "GY",
			"country_name": "Guyana",
			"dialling_code": "+592"
		},
		{
			"country_code": "HT",
			"country_name": "Haiti",
			"dialling_code": "+509"
		},
		{
			"country_code": "HN",
			"country_name": "Honduras",
			"dialling_code": "+504"
		},
		{
			"country_code": "HK",
			"country_name": "Hong Kong",
			"dialling_code": "+852"
		},
		{
			"country_code": "HU",
			"country_name": "Hungary",
			"dialling_code": "+36"
		},
		{
			"country_code": "IS",
			"country_name": "Iceland",
			"dialling_code": "+354"
		},
		{
			"country_code": "IN",
			"country_name": "India",
			"dialling_code": "+91"
		},
		{
			"country_code": "ID",
			"country_name": "Indonesia",
			"dialling_code": "+62"
		},
		{
			"country_code": "IR",
			"country_name": "Iran",
			"dialling_code": "+98"
		},
		{
			"country_code": "IQ",
			"country_name": "Iraq",
			"dialling_code": "+964"
		},
		{
			"country_code": "IE",
			"country_name": "Ireland",
			"dialling_code": "+353"
		},
		{
			"country_code": "IL",
			"country_name": "Israel",
			"dialling_code": "+972"
		},
		{
			"country_code": "IT",
			"country_name": "Italy",
			"dialling_code": "+39"
		},
		{
			"country_code": "JM",
			"country_name": "Jamaica",
			"dialling_code": "+1"
		},
		{
			"country_code": "JP",
			"country_name": "Japan",
			"dialling_code": "+81"
		},
		{
			"country_code": "JO",
			"country_name": "Jordan",
			"dialling_code": "+962"
		},
		{
			"country_code": "KZ",
			"country_name": "Kazakhstan",
			"dialling_code": "+7"
		},
		{
			"country_code": "KE",
			"country_name": "Kenya",
			"dialling_code": "+254"
		},
		{
			"country_code": "KI",
			"country_name": "Kiribati",
			"dialling_code": "+686"
		},
		{
			"country_code": "XK",
			"country_name": "Kosovo",
			"dialling_code": "+381"
		},
		{
			"country_code": "KW",
			"country_name": "Kuwait",
			"dialling_code": "+965"
		},
		{
			"country_code": "KG",
			"country_name": "Kyrgyzstan",
			"dialling_code": "+996"
		},
		{
			"country_code": "LA",
			"country_name": "Laos",
			"dialling_code": "+856"
		},
		{
			"country_code": "LV",
			"country_name": "Latvia",
			"dialling_code": "+371"
		},
		{
			"country_code": "LB",
			"country_name": "Lebanon",
			"dialling_code": "+961"
		},
		{
			"country_code": "LS",
			"country_name": "Lesotho",
			"dialling_code": "+266"
		},
		{
			"country_code": "LR",
			"country_name": "Liberia",
			"dialling_code": "+231"
		},
		{
			"country_code": "LY",
			"country_name": "Libya",
			"dialling_code": "+218"
		},
		{
			"country_code": "LI",
			"country_name": "Liechtenstein",
			"dialling_code": "+423"
		},
		{
			"country_code": "LT",
			"country_name": "Lithuania",
			"dialling_code": "+370"
		},
		{
			"country_code": "LU",
			"country_name": "Luxembourg",
			"dialling_code": "+352"
		},
		{
			"country_code": "MO",
			"country_name": "Macau",
			"dialling_code": "+853"
		},
		{
			"country_code": "MK",
			"country_name": "Macedonia",
			"dialling_code": "+389"
		},
		{
			"country_code": "MG",
			"country_name": "Madagascar",
			"dialling_code": "+261"
		},
		{
			"country_code": "MW",
			"country_name": "Malawi",
			"dialling_code": "+265"
		},
		{
			"country_code": "MY",
			"country_name": "Malaysia",
			"dialling_code": "+60"
		},
		{
			"country_code": "MV",
			"country_name": "Maldives",
			"dialling_code": "+960"
		},
		{
			"country_code": "ML",
			"country_name": "Mali",
			"dialling_code": "+223"
		},
		{
			"country_code": "MT",
			"country_name": "Malta",
			"dialling_code": "+356"
		},
		{
			"country_code": "MH",
			"country_name": "Marshall Islands",
			"dialling_code": "+692"
		},
		{
			"country_code": "MQ",
			"country_name": "Martinique",
			"dialling_code": "+596"
		},
		{
			"country_code": "MR",
			"country_name": "Mauritania",
			"dialling_code": "+222"
		},
		{
			"country_code": "MU",
			"country_name": "Mauritius",
			"dialling_code": "+230"
		},
		{
			"country_code": "YT",
			"country_name": "Mayotte",
			"dialling_code": "+262"
		},
		{
			"country_code": "MX",
			"country_name": "Mexico",
			"dialling_code": "+52"
		},
		{
			"country_code": "MD",
			"country_name": "Moldova",
			"dialling_code": "+373"
		},
		{
			"country_code": "MC",
			"country_name": "Monaco",
			"dialling_code": "+377"
		},
		{
			"country_code": "MN",
			"country_name": "Mongolia",
			"dialling_code": "+976"
		},
		{
			"country_code": "ME",
			"country_name": "Montenegro",
			"dialling_code": "+382"
		},
		{
			"country_code": "MS",
			"country_name": "Montserrat",
			"dialling_code": "+1"
		},
		{
			"country_code": "MA",
			"country_name": "Morocco",
			"dialling_code": "+212"
		},
		{
			"country_code": "MZ",
			"country_name": "Mozambique",
			"dialling_code": "+258"
		},
		{
			"country_code": "NA",
			"country_name": "Namibia",
			"dialling_code": "+264"
		},
		{
			"country_code": "NR",
			"country_name": "Nauru",
			"dialling_code": "+674"
		},
		{
			"country_code": "NP",
			"country_name": "Nepal",
			"dialling_code": "+977"
		},
		{
			"country_code": "NL",
			"country_name": "Netherlands",
			"dialling_code": "+31"
		},
		{
			"country_code": "AN",
			"country_name": "Netherlands Antilles",
			"dialling_code": "+599"
		},
		{
			"country_code": "NC",
			"country_name": "New Caledonia",
			"dialling_code": "+687"
		},
		{
			"country_code": "NZ",
			"country_name": "New Zealand",
			"dialling_code": "+64"
		},
		{
			"country_code": "NI",
			"country_name": "Nicaragua",
			"dialling_code": "+505"
		},
		{
			"country_code": "NE",
			"country_name": "Niger",
			"dialling_code": "+227"
		},
		{
			"country_code": "NG",
			"country_name": "Nigeria",
			"dialling_code": "+234"
		},
		{
			"country_code": "NU",
			"country_name": "Niue",
			"dialling_code": "+683"
		},
		{
			"country_code": "NF",
			"country_name": "Norfolk Island",
			"dialling_code": "+672"
		},
		{
			"country_code": "KP",
			"country_name": "North Korea",
			"dialling_code": "+850"
		},
		{
			"country_code": "MP",
			"country_name": "Northern Mariana Islands",
			"dialling_code": "+1"
		},
		{
			"country_code": "NO",
			"country_name": "Norway",
			"dialling_code": "+47"
		},
		{
			"country_code": "OM",
			"country_name": "Oman",
			"dialling_code": "+968"
		},
		{
			"country_code": "PK",
			"country_name": "Pakistan",
			"dialling_code": "+92"
		},
		{
			"country_code": "PW",
			"country_name": "Palau",
			"dialling_code": "+680"
		},
		{
			"country_code": "PS",
			"country_name": "Palestine",
			"dialling_code": "+970"
		},
		{
			"country_code": "PA",
			"country_name": "Panama",
			"dialling_code": "+507"
		},
		{
			"country_code": "PG",
			"country_name": "Papua New Guinea",
			"dialling_code": "+675"
		},
		{
			"country_code": "PY",
			"country_name": "Paraguay",
			"dialling_code": "+595"
		},
		{
			"country_code": "PE",
			"country_name": "Peru",
			"dialling_code": "+51"
		},
		{
			"country_code": "PH",
			"country_name": "Philippines",
			"dialling_code": "+63"
		},
		{
			"country_code": "PL",
			"country_name": "Poland",
			"dialling_code": "+48"
		},
		{
			"country_code": "PT",
			"country_name": "Portugal",
			"dialling_code": "+351"
		},
		{
			"country_code": "PR",
			"country_name": "Puerto Rico",
			"dialling_code": "+1"
		},
		{
			"country_code": "QA",
			"country_name": "Qatar",
			"dialling_code": "+974"
		},
		{
			"country_code": "CG",
			"country_name": "Republic of the Congo",
			"dialling_code": "+242"
		},
		{
			"country_code": "RE",
			"country_name": "Réunion",
			"dialling_code": "+262"
		},
		{
			"country_code": "RO",
			"country_name": "Romania",
			"dialling_code": "+40"
		},
		{
			"country_code": "RU",
			"country_name": "Russia",
			"dialling_code": "+7"
		},
		{
			"country_code": "RW",
			"country_name": "Rwanda",
			"dialling_code": "+250"
		},
		{
			"country_code": "BL",
			"country_name": "Saint Barthélemy",
			"dialling_code": "+590"
		},
		{
			"country_code": "SH",
			"country_name": "Saint Helena",
			"dialling_code": "+290"
		},
		{
			"country_code": "KN",
			"country_name": "Saint Kitts and Nevis",
			"dialling_code": "+1"
		},
		{
			"country_code": "MF",
			"country_name": "Saint Martin",
			"dialling_code": "+590"
		},
		{
			"country_code": "PM",
			"country_name": "Saint Pierre and Miquelon",
			"dialling_code": "+508"
		},
		{
			"country_code": "VC",
			"country_name": "Saint Vincent and the Grenadines",
			"dialling_code": "+1"
		},
		{
			"country_code": "WS",
			"country_name": "Samoa",
			"dialling_code": "+685"
		},
		{
			"country_code": "SM",
			"country_name": "San Marino",
			"dialling_code": "+378"
		},
		{
			"country_code": "ST",
			"country_name": "São Tomé and Príncipe",
			"dialling_code": "+239"
		},
		{
			"country_code": "SA",
			"country_name": "Saudi Arabia",
			"dialling_code": "+966"
		},
		{
			"country_code": "SN",
			"country_name": "Senegal",
			"dialling_code": "+221"
		},
		{
			"country_code": "RS",
			"country_name": "Serbia",
			"dialling_code": "+381"
		},
		{
			"country_code": "SC",
			"country_name": "Seychelles",
			"dialling_code": "+248"
		},
		{
			"country_code": "SL",
			"country_name": "Sierra Leone",
			"dialling_code": "+232"
		},
		{
			"country_code": "SG",
			"country_name": "Singapore",
			"dialling_code": "+65"
		},
		{
			"country_code": "SK",
			"country_name": "Slovakia",
			"dialling_code": "+421"
		},
		{
			"country_code": "SI",
			"country_name": "Slovenia",
			"dialling_code": "+386"
		},
		{
			"country_code": "SB",
			"country_name": "Solomon Islands",
			"dialling_code": "+677"
		},
		{
			"country_code": "SO",
			"country_name": "Somalia",
			"dialling_code": "+252"
		},
		{
			"country_code": "ZA",
			"country_name": "South Africa",
			"dialling_code": "+27"
		},
		{
			"country_code": "KR",
			"country_name": "South Korea",
			"dialling_code": "+82"
		},
		{
			"country_code": "ES",
			"country_name": "Spain",
			"dialling_code": "+34"
		},
		{
			"country_code": "LK",
			"country_name": "Sri Lanka",
			"dialling_code": "+94"
		},
		{
			"country_code": "LC",
			"country_name": "St. Lucia",
			"dialling_code": "+1"
		},
		{
			"country_code": "SD",
			"country_name": "Sudan",
			"dialling_code": "+249"
		},
		{
			"country_code": "SR",
			"country_name": "Suriname",
			"dialling_code": "+597"
		},
		{
			"country_code": "SZ",
			"country_name": "Swaziland",
			"dialling_code": "+268"
		},
		{
			"country_code": "SE",
			"country_name": "Sweden",
			"dialling_code": "+46"
		},
		{
			"country_code": "CH",
			"country_name": "Switzerland",
			"dialling_code": "+41"
		},
		{
			"country_code": "SY",
			"country_name": "Syria",
			"dialling_code": "+963"
		},
		{
			"country_code": "TW",
			"country_name": "Taiwan",
			"dialling_code": "+886"
		},
		{
			"country_code": "TJ",
			"country_name": "Tajikistan",
			"dialling_code": "+992"
		},
		{
			"country_code": "TZ",
			"country_name": "Tanzania",
			"dialling_code": "+255"
		},
		{
			"country_code": "TH",
			"country_name": "Thailand",
			"dialling_code": "+66"
		},
		{
			"country_code": "BS",
			"country_name": "The Bahamas",
			"dialling_code": "+1"
		},
		{
			"country_code": "GM",
			"country_name": "The Gambia",
			"dialling_code": "+220"
		},
		{
			"country_code": "TL",
			"country_name": "Timor-Leste",
			"dialling_code": "+670"
		},
		{
			"country_code": "TG",
			"country_name": "Togo",
			"dialling_code": "+228"
		},
		{
			"country_code": "TK",
			"country_name": "Tokelau",
			"dialling_code": "+690"
		},
		{
			"country_code": "TO",
			"country_name": "Tonga",
			"dialling_code": "+676"
		},
		{
			"country_code": "TT",
			"country_name": "Trinidad and Tobago",
			"dialling_code": "+1"
		},
		{
			"country_code": "TN",
			"country_name": "Tunisia",
			"dialling_code": "+216"
		},
		{
			"country_code": "TR",
			"country_name": "Turkey",
			"dialling_code": "+90"
		},
		{
			"country_code": "TM",
			"country_name": "Turkmenistan",
			"dialling_code": "+993"
		},
		{
			"country_code": "TC",
			"country_name": "Turks and Caicos Islands",
			"dialling_code": "+1"
		},
		{
			"country_code": "TV",
			"country_name": "Tuvalu",
			"dialling_code": "+688"
		},
		{
			"country_code": "UG",
			"country_name": "Uganda",
			"dialling_code": "+256"
		},
		{
			"country_code": "UA",
			"country_name": "Ukraine",
			"dialling_code": "+380"
		},
		{
			"country_code": "AE",
			"country_name": "United Arab Emirates",
			"dialling_code": "+971"
		},
		{
			"country_code": "GB",
			"country_name": "United Kingdom",
			"dialling_code": "+44"
		},
		{
			"country_code": "US",
			"country_name": "United States",
			"dialling_code": "+1"
		},
		{
			"country_code": "UY",
			"country_name": "Uruguay",
			"dialling_code": "+598"
		},
		{
			"country_code": "VI",
			"country_name": "US Virgin Islands",
			"dialling_code": "+1"
		},
		{
			"country_code": "UZ",
			"country_name": "Uzbekistan",
			"dialling_code": "+998"
		},
		{
			"country_code": "VU",
			"country_name": "Vanuatu",
			"dialling_code": "+678"
		},
		{
			"country_code": "VA",
			"country_name": "Vatican City",
			"dialling_code": "+39"
		},
		{
			"country_code": "VE",
			"country_name": "Venezuela",
			"dialling_code": "+58"
		},
		{
			"country_code": "VN",
			"country_name": "Vietnam",
			"dialling_code": "+84"
		},
		{
			"country_code": "WF",
			"country_name": "Wallis and Futuna",
			"dialling_code": "+681"
		},
		{
			"country_code": "YE",
			"country_name": "Yemen",
			"dialling_code": "+967"
		},
		{
			"country_code": "ZM",
			"country_name": "Zambia",
			"dialling_code": "+260"
		},
		{
			"country_code": "ZW",
			"country_name": "Zimbabwe",
			"dialling_code": "+263"
		}
	]
}
@xinthose

This comment has been minimized.

Copy link

commented Oct 10, 2017

I added an index to @doness's list: https://pastebin.com/k79mKHzG.

@kaburkett

This comment has been minimized.

Copy link

commented Oct 19, 2017

Great find, this is the top result in google for json country code. Thank you everyone.

@raisty

This comment has been minimized.

Copy link

commented Dec 19, 2017

Why is Rwanda with capital letters?

@indiesk

This comment has been minimized.

Copy link

commented Feb 3, 2018

In case anyone needs it to use in react-select:

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

This comment has been minimized.

Copy link

commented Mar 3, 2018

Check https://github.com/umpirsky/country-list out, it's updated on regular bases, there are several formats available and it's multilingual.

@kuroshio

This comment has been minimized.

Copy link

commented Mar 10, 2018

Updated react-select list above to use JSON format, left-aligned values for cleaner look, and fixed some strange spacing/capitalization:

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

This comment has been minimized.

Copy link

commented Apr 30, 2018

Awesome, thanks!

@devlemire

This comment has been minimized.

Copy link

commented May 24, 2018

Thanks for saving me some time!

@srerisso

This comment has been minimized.

Copy link

commented Jun 12, 2018

Thanks. Great work

@marutiprasad

This comment has been minimized.

Copy link

commented Jun 12, 2018

@pintop

This comment has been minimized.

Copy link

commented Aug 5, 2018

Greatly Appreciated!

@dpmango

This comment has been minimized.

Copy link

commented Aug 7, 2018

Thanks !

@vtjc2002

This comment has been minimized.

Copy link

commented Aug 9, 2018

Thank you!

@besnikh

This comment has been minimized.

Copy link

commented Aug 20, 2018

Hi, can you update Kosovo Country code is +383 now !

@besnikh

This comment has been minimized.

Copy link

commented Aug 20, 2018

countries: [
{
cc: 'AF',
cn: 'Afghanistan',
dc: '+93'
},
{
cc: 'AL',
cn: 'Albania',
dc: '+355'
},
{
cc: 'DZ',
cn: 'Algeria',
dc: '+213'
},
{
cc: 'AS',
cn: 'American Samoa',
dc: '+1'
},
{
cc: 'AD',
cn: 'Andorra',
dc: '+376'
},
{
cc: 'AO',
cn: 'Angola',
dc: '+244'
},
{
cc: 'AI',
cn: 'Anguilla',
dc: '+1'
},
{
cc: 'AG',
cn: 'Antigua',
dc: '+1'
},
{
cc: 'AR',
cn: 'Argentina',
dc: '+54'
},
{
cc: 'AM',
cn: 'Armenia',
dc: '+374'
},
{
cc: 'AW',
cn: 'Aruba',
dc: '+297'
},
{
cc: 'AU',
cn: 'Australia',
dc: '+61'
},
{
cc: 'AI',
cn: 'Austria',
dc: '+43'
},
{
cc: 'AZ',
cn: 'Azerbaijan',
dc: '+994'
},
{
cc: 'BH',
cn: 'Bahrain',
dc: '+973'
},
{
cc: 'BD',
cn: 'Bangladesh',
dc: '+880'
},
{
cc: 'BB',
cn: 'Barbados',
dc: '+1'
},
{
cc: 'BY',
cn: 'Belarus',
dc: '+375'
},
{
cc: 'BE',
cn: 'Belgium',
dc: '+32'
},
{
cc: 'BZ',
cn: 'Belize',
dc: '+501'
},
{
cc: 'BJ',
cn: 'Benin',
dc: '+229'
},
{
cc: 'BM',
cn: 'Bermuda',
dc: '+1'
},
{
cc: 'BT',
cn: 'Bhutan',
dc: '+975'
},
{
cc: 'BO',
cn: 'Bolivia',
dc: '+591'
},
{
cc: 'BA',
cn: 'Bosnia and Herzegovina',
dc: '+387'
},
{
cc: 'BW',
cn: 'Botswana',
dc: '+267'
},
{
cc: 'BR',
cn: 'Brazil',
dc: '+55'
},
{
cc: 'IO',
cn: 'British Indian Ocean Territory',
dc: '+246'
},
{
cc: 'VG',
cn: 'British Virgin Islands',
dc: '+1'
},
{
cc: 'BN',
cn: 'Brunei',
dc: '+673'
},
{
cc: 'BG',
cn: 'Bulgaria',
dc: '+359'
},
{
cc: 'BF',
cn: 'Burkina Faso',
dc: '+226'
},
{
cc: 'MM',
cn: 'Burma Myanmar',
dc: '+95'
},
{
cc: 'BI',
cn: 'Burundi',
dc: '+257'
},
{
cc: 'KH',
cn: 'Cambodia',
dc: '+855'
},
{
cc: 'CM',
cn: 'Cameroon',
dc: '+237'
},
{
cc: 'CA',
cn: 'Canada',
dc: '+1'
},
{
cc: 'CV',
cn: 'Cape Verde',
dc: '+238'
},
{
cc: 'KY',
cn: 'Cayman Islands',
dc: '+1'
},
{
cc: 'CF',
cn: 'Central African Republic',
dc: '+236'
},
{
cc: 'ID',
cn: 'Chad',
dc: '+235'
},
{
cc: 'CL',
cn: 'Chile',
dc: '+56'
},
{
cc: 'CN',
cn: 'China',
dc: '+86'
},
{
cc: 'CO',
cn: 'Colombia',
dc: '+57'
},
{
cc: 'KM',
cn: 'Comoros',
dc: '+269'
},
{
cc: 'CK',
cn: 'Cook Islands',
dc: '+682'
},
{
cc: 'CR',
cn: 'Costa Rica',
dc: '+506'
},
{
cc: 'CI',
cn: 'Côte dIvoire',
dc: '+225'
},
{
cc: 'HR',
cn: 'Croatia',
dc: '+385'
},
{
cc: 'CU',
cn: 'Cuba',
dc: '+53'
},
{
cc: 'CY',
cn: 'Cyprus',
dc: '+357'
},
{
cc: 'CZ',
cn: 'Czech Republic',
dc: '+420'
},
{
cc: 'CD',
cn: 'Democratic Republic of Congo',
dc: '+243'
},
{
cc: 'DK',
cn: 'Denmark',
dc: '+45'
},
{
cc: 'DJ',
cn: 'Djibouti',
dc: '+253'
},
{
cc: 'DM',
cn: 'Dominica',
dc: '+1'
},
{
cc: 'DO',
cn: 'Dominican Republic',
dc: '+1'
},
{
cc: 'EC',
cn: 'Ecuador',
dc: '+593'
},
{
cc: 'EG',
cn: 'Egypt',
dc: '+20'
},
{
cc: 'SV',
cn: 'El Salvador',
dc: '+503'
},
{
cc: 'GQ',
cn: 'Equatorial Guinea',
dc: '+240'
},
{
cc: 'ER',
cn: 'Eritrea',
dc: '+291'
},
{
cc: 'EE',
cn: 'Estonia',
dc: '+372'
},
{
cc: 'ET',
cn: 'Ethiopia',
dc: '+251'
},
{
cc: 'FK',
cn: 'Falkland Islands',
dc: '+500'
},
{
cc: 'FO',
cn: 'Faroe Islands',
dc: '+298'
},
{
cc: 'FM',
cn: 'Federated States of Micronesia',
dc: '+691'
},
{
cc: 'FJ',
cn: 'Fiji',
dc: '+679'
},
{
cc: 'FI',
cn: 'Finland',
dc: '+358'
},
{
cc: 'FR',
cn: 'France',
dc: '+33'
},
{
cc: 'GF',
cn: 'French Guiana',
dc: '+594'
},
{
cc: 'PF',
cn: 'French Polynesia',
dc: '+689'
},
{
cc: 'GA',
cn: 'Gabon',
dc: '+241'
},
{
cc: 'GE',
cn: 'Georgia',
dc: '+995'
},
{
cc: 'DE',
cn: 'Germany',
dc: '+49'
},
{
cc: 'GH',
cn: 'Ghana',
dc: '+233'
},
{
cc: 'GI',
cn: 'Gibraltar',
dc: '+350'
},
{
cc: 'GR',
cn: 'Greece',
dc: '+30'
},
{
cc: 'GL',
cn: 'Greenland',
dc: '+299'
},
{
cc: 'GD',
cn: 'Grenada',
dc: '+1'
},
{
cc: 'GP',
cn: 'Guadeloupe',
dc: '+590'
},
{
cc: 'GU',
cn: 'Guam',
dc: '+1'
},
{
cc: 'GT',
cn: 'Guatemala',
dc: '+502'
},
{
cc: 'GN',
cn: 'Guinea',
dc: '+224'
},
{
cc: 'GW',
cn: 'Guinea-Bissau',
dc: '+245'
},
{
cc: 'GY',
cn: 'Guyana',
dc: '+592'
},
{
cc: 'HT',
cn: 'Haiti',
dc: '+509'
},
{
cc: 'HN',
cn: 'Honduras',
dc: '+504'
},
{
cc: 'HK',
cn: 'Hong Kong',
dc: '+852'
},
{
cc: 'HU',
cn: 'Hungary',
dc: '+36'
},
{
cc: 'IS',
cn: 'Iceland',
dc: '+354'
},
{
cc: 'IN',
cn: 'India',
dc: '+91'
},
{
cc: 'ID',
cn: 'Indonesia',
dc: '+62'
},
{
cc: 'IR',
cn: 'Iran',
dc: '+98'
},
{
cc: 'IQ',
cn: 'Iraq',
dc: '+964'
},
{
cc: 'IE',
cn: 'Ireland',
dc: '+353'
},
{
cc: 'IL',
cn: 'Israel',
dc: '+972'
},
{
cc: 'IT',
cn: 'Italy',
dc: '+39'
},
{
cc: 'JM',
cn: 'Jamaica',
dc: '+1'
},
{
cc: 'JP',
cn: 'Japan',
dc: '+81'
},
{
cc: 'JO',
cn: 'Jordan',
dc: '+962'
},
{
cc: 'KZ',
cn: 'Kazakhstan',
dc: '+7'
},
{
cc: 'KE',
cn: 'Kenya',
dc: '+254'
},
{
cc: 'KI',
cn: 'Kiribati',
dc: '+686'
},
{
cc: 'XK',
cn: 'Kosovo',
dc: '+383'
},
{
cc: 'KW',
cn: 'Kuwait',
dc: '+965'
},
{
cc: 'KG',
cn: 'Kyrgyzstan',
dc: '+996'
},
{
cc: 'LA',
cn: 'Laos',
dc: '+856'
},
{
cc: 'LV',
cn: 'Latvia',
dc: '+371'
},
{
cc: 'LB',
cn: 'Lebanon',
dc: '+961'
},
{
cc: 'LS',
cn: 'Lesotho',
dc: '+266'
},
{
cc: 'LR',
cn: 'Liberia',
dc: '+231'
},
{
cc: 'LY',
cn: 'Libya',
dc: '+218'
},
{
cc: 'LI',
cn: 'Liechtenstein',
dc: '+423'
},
{
cc: 'LT',
cn: 'Lithuania',
dc: '+370'
},
{
cc: 'LU',
cn: 'Luxembourg',
dc: '+352'
},
{
cc: 'MO',
cn: 'Macau',
dc: '+853'
},
{
cc: 'MK',
cn: 'Macedonia',
dc: '+389'
},
{
cc: 'MG',
cn: 'Madagascar',
dc: '+261'
},
{
cc: 'MW',
cn: 'Malawi',
dc: '+265'
},
{
cc: 'MY',
cn: 'Malaysia',
dc: '+60'
},
{
cc: 'MV',
cn: 'Maldives',
dc: '+960'
},
{
cc: 'ML',
cn: 'Mali',
dc: '+223'
},
{
cc: 'MT',
cn: 'Malta',
dc: '+356'
},
{
cc: 'MH',
cn: 'Marshall Islands',
dc: '+692'
},
{
cc: 'MQ',
cn: 'Martinique',
dc: '+596'
},
{
cc: 'MR',
cn: 'Mauritania',
dc: '+222'
},
{
cc: 'MU',
cn: 'Mauritius',
dc: '+230'
},
{
cc: 'YT',
cn: 'Mayotte',
dc: '+262'
},
{
cc: 'MX',
cn: 'Mexico',
dc: '+52'
},
{
cc: 'MD',
cn: 'Moldova',
dc: '+373'
},
{
cc: 'MC',
cn: 'Monaco',
dc: '+377'
},
{
cc: 'MN',
cn: 'Mongolia',
dc: '+976'
},
{
cc: 'ME',
cn: 'Montenegro',
dc: '+382'
},
{
cc: 'MS',
cn: 'Montserrat',
dc: '+1'
},
{
cc: 'MA',
cn: 'Morocco',
dc: '+212'
},
{
cc: 'MZ',
cn: 'Mozambique',
dc: '+258'
},
{
cc: 'NA',
cn: 'Namibia',
dc: '+264'
},
{
cc: 'NR',
cn: 'Nauru',
dc: '+674'
},
{
cc: 'NP',
cn: 'Nepal',
dc: '+977'
},
{
cc: 'NL',
cn: 'Netherlands',
dc: '+31'
},
{
cc: 'AN',
cn: 'Netherlands Antilles',
dc: '+599'
},
{
cc: 'NC',
cn: 'New Caledonia',
dc: '+687'
},
{
cc: 'NZ',
cn: 'New Zealand',
dc: '+64'
},
{
cc: 'NI',
cn: 'Nicaragua',
dc: '+505'
},
{
cc: 'NE',
cn: 'Niger',
dc: '+227'
},
{
cc: 'NG',
cn: 'Nigeria',
dc: '+234'
},
{
cc: 'NU',
cn: 'Niue',
dc: '+683'
},
{
cc: 'NF',
cn: 'Norfolk Island',
dc: '+672'
},
{
cc: 'KP',
cn: 'North Korea',
dc: '+850'
},
{
cc: 'MP',
cn: 'Northern Mariana Islands',
dc: '+1'
},
{
cc: 'NO',
cn: 'Norway',
dc: '+47'
},
{
cc: 'OM',
cn: 'Oman',
dc: '+968'
},
{
cc: 'PK',
cn: 'Pakistan',
dc: '+92'
},
{
cc: 'PW',
cn: 'Palau',
dc: '+680'
},
{
cc: 'PS',
cn: 'Palestine',
dc: '+970'
},
{
cc: 'PA',
cn: 'Panama',
dc: '+507'
},
{
cc: 'PG',
cn: 'Papua New Guinea',
dc: '+675'
},
{
cc: 'PY',
cn: 'Paraguay',
dc: '+595'
},
{
cc: 'PE',
cn: 'Peru',
dc: '+51'
},
{
cc: 'PH',
cn: 'Philippines',
dc: '+63'
},
{
cc: 'PL',
cn: 'Poland',
dc: '+48'
},
{
cc: 'PT',
cn: 'Portugal',
dc: '+351'
},
{
cc: 'PR',
cn: 'Puerto Rico',
dc: '+1'
},
{
cc: 'QA',
cn: 'Qatar',
dc: '+974'
},
{
cc: 'CG',
cn: 'Republic of the Congo',
dc: '+242'
},
{
cc: 'RE',
cn: 'Réunion',
dc: '+262'
},
{
cc: 'RO',
cn: 'Romania',
dc: '+40'
},
{
cc: 'RU',
cn: 'Russia',
dc: '+7'
},
{
cc: 'RW',
cn: 'Rwanda',
dc: '+250'
},
{
cc: 'BL',
cn: 'Saint Barthélemy',
dc: '+590'
},
{
cc: 'SH',
cn: 'Saint Helena',
dc: '+290'
},
{
cc: 'KN',
cn: 'Saint Kitts and Nevis',
dc: '+1'
},
{
cc: 'MF',
cn: 'Saint Martin',
dc: '+590'
},
{
cc: 'PM',
cn: 'Saint Pierre and Miquelon',
dc: '+508'
},
{
cc: 'VC',
cn: 'Saint Vincent and the Grenadines',
dc: '+1'
},
{
cc: 'WS',
cn: 'Samoa',
dc: '+685'
},
{
cc: 'SM',
cn: 'San Marino',
dc: '+378'
},
{
cc: 'ST',
cn: 'São Tomé and Príncipe',
dc: '+239'
},
{
cc: 'SA',
cn: 'Saudi Arabia',
dc: '+966'
},
{
cc: 'SN',
cn: 'Senegal',
dc: '+221'
},
{
cc: 'RS',
cn: 'Serbia',
dc: '+381'
},
{
cc: 'SC',
cn: 'Seychelles',
dc: '+248'
},
{
cc: 'SL',
cn: 'Sierra Leone',
dc: '+232'
},
{
cc: 'SG',
cn: 'Singapore',
dc: '+65'
},
{
cc: 'SK',
cn: 'Slovakia',
dc: '+421'
},
{
cc: 'SI',
cn: 'Slovenia',
dc: '+386'
},
{
cc: 'SB',
cn: 'Solomon Islands',
dc: '+677'
},
{
cc: 'SO',
cn: 'Somalia',
dc: '+252'
},
{
cc: 'ZA',
cn: 'South Africa',
dc: '+27'
},
{
cc: 'KR',
cn: 'South Korea',
dc: '+82'
},
{
cc: 'ES',
cn: 'Spain',
dc: '+34'
},
{
cc: 'LK',
cn: 'Sri Lanka',
dc: '+94'
},
{
cc: 'LC',
cn: 'St. Lucia',
dc: '+1'
},
{
cc: 'SD',
cn: 'Sudan',
dc: '+249'
},
{
cc: 'SR',
cn: 'Suriname',
dc: '+597'
},
{
cc: 'SZ',
cn: 'Swaziland',
dc: '+268'
},
{
cc: 'SE',
cn: 'Sweden',
dc: '+46'
},
{
cc: 'CH',
cn: 'Switzerland',
dc: '+41'
},
{
cc: 'SY',
cn: 'Syria',
dc: '+963'
},
{
cc: 'TW',
cn: 'Taiwan',
dc: '+886'
},
{
cc: 'TJ',
cn: 'Tajikistan',
dc: '+992'
},
{
cc: 'TZ',
cn: 'Tanzania',
dc: '+255'
},
{
cc: 'TH',
cn: 'Thailand',
dc: '+66'
},
{
cc: 'BS',
cn: 'The Bahamas',
dc: '+1'
},
{
cc: 'GM',
cn: 'The Gambia',
dc: '+220'
},
{
cc: 'TL',
cn: 'Timor-Leste',
dc: '+670'
},
{
cc: 'TG',
cn: 'Togo',
dc: '+228'
},
{
cc: 'TK',
cn: 'Tokelau',
dc: '+690'
},
{
cc: 'TO',
cn: 'Tonga',
dc: '+676'
},
{
cc: 'TT',
cn: 'Trinidad and Tobago',
dc: '+1'
},
{
cc: 'TN',
cn: 'Tunisia',
dc: '+216'
},
{
cc: 'TR',
cn: 'Turkey',
dc: '+90'
},
{
cc: 'TM',
cn: 'Turkmenistan',
dc: '+993'
},
{
cc: 'TC',
cn: 'Turks and Caicos Islands',
dc: '+1'
},
{
cc: 'TV',
cn: 'Tuvalu',
dc: '+688'
},
{
cc: 'UG',
cn: 'Uganda',
dc: '+256'
},
{
cc: 'UA',
cn: 'Ukraine',
dc: '+380'
},
{
cc: 'AE',
cn: 'United Arab Emirates',
dc: '+971'
},
{
cc: 'GB',
cn: 'United Kingdom',
dc: '+44'
},
{
cc: 'US',
cn: 'United States',
dc: '+1'
},
{
cc: 'UY',
cn: 'Uruguay',
dc: '+598'
},
{
cc: 'VI',
cn: 'US Virgin Islands',
dc: '+1'
},
{
cc: 'UZ',
cn: 'Uzbekistan',
dc: '+998'
},
{
cc: 'VU',
cn: 'Vanuatu',
dc: '+678'
},
{
cc: 'VA',
cn: 'Vatican City',
dc: '+39'
},
{
cc: 'VE',
cn: 'Venezuela',
dc: '+58'
},
{
cc: 'VN',
cn: 'Vietnam',
dc: '+84'
},
{
cc: 'WF',
cn: 'Wallis and Futuna',
dc: '+681'
},
{
cc: 'YE',
cn: 'Yemen',
dc: '+967'
},
{
cc: 'ZM',
cn: 'Zambia',
dc: '+260'
},
{
cc: 'ZW',
cn: 'Zimbabwe',
dc: '+263'
}
],

@xergioalex

This comment has been minimized.

Copy link

commented Sep 11, 2018

Here is my json:

[
   {
    "name":"Afghanistan",
    "code":"AF",
    "phone_code":"+93"
   },
   {
    "name":"Albania",
    "code":"AL",
    "phone_code":"+355"
   },
   {
    "name":"Algeria",
    "code":"DZ",
    "phone_code":"+213"
   },
   {
    "name":"American Samoa",
    "code":"AS",
    "phone_code":"+1"
   },
   {
    "name":"Andorra",
    "code":"AD",
    "phone_code":"+376"
   },
   {
    "name":"Angola",
    "code":"AO",
    "phone_code":"+244"
   },
   {
    "name":"Anguilla",
    "code":"AI",
    "phone_code":"+1"
   },
   {
    "name":"Antigua",
    "code":"AG",
    "phone_code":"+1"
   },
   {
    "name":"Argentina",
    "code":"AR",
    "phone_code":"+54"
   },
   {
    "name":"Armenia",
    "code":"AM",
    "phone_code":"+374"
   },
   {
    "name":"Aruba",
    "code":"AW",
    "phone_code":"+297"
   },
   {
    "name":"Australia",
    "code":"AU",
    "phone_code":"+61"
   },
   {
    "name":"Austria",
    "code":"AI",
    "phone_code":"+43"
   },
   {
    "name":"Azerbaijan",
    "code":"AZ",
    "phone_code":"+994"
   },
   {
    "name":"Bahrain",
    "code":"BH",
    "phone_code":"+973"
   },
   {
    "name":"Bangladesh",
    "code":"BD",
    "phone_code":"+880"
   },
   {
    "name":"Barbados",
    "code":"BB",
    "phone_code":"+1"
   },
   {
    "name":"Belarus",
    "code":"BY",
    "phone_code":"+375"
   },
   {
    "name":"Belgium",
    "code":"BE",
    "phone_code":"+32"
   },
   {
    "name":"Belize",
    "code":"BZ",
    "phone_code":"+501"
   },
   {
    "name":"Benin",
    "code":"BJ",
    "phone_code":"+229"
   },
   {
    "name":"Bermuda",
    "code":"BM",
    "phone_code":"+1"
   },
   {
    "name":"Bhutan",
    "code":"BT",
    "phone_code":"+975"
   },
   {
    "name":"Bolivia",
    "code":"BO",
    "phone_code":"+591"
   },
   {
    "name":"Bosnia and Herzegovina",
    "code":"BA",
    "phone_code":"+387"
   },
   {
    "name":"Botswana",
    "code":"BW",
    "phone_code":"+267"
   },
   {
    "name":"Brazil",
    "code":"BR",
    "phone_code":"+55"
   },
   {
    "name":"British Indian Ocean Territory",
    "code":"IO",
    "phone_code":"+246"
   },
   {
    "name":"British Virgin Islands",
    "code":"VG",
    "phone_code":"+1"
   },
   {
    "name":"Brunei",
    "code":"BN",
    "phone_code":"+673"
   },
   {
    "name":"Bulgaria",
    "code":"BG",
    "phone_code":"+359"
   },
   {
    "name":"Burkina Faso",
    "code":"BF",
    "phone_code":"+226"
   },
   {
    "name":"Burma Myanmar",
    "code":"MM",
    "phone_code":"+95"
   },
   {
    "name":"Burundi",
    "code":"BI",
    "phone_code":"+257"
   },
   {
    "name":"Cambodia",
    "code":"KH",
    "phone_code":"+855"
   },
   {
    "name":"Cameroon",
    "code":"CM",
    "phone_code":"+237"
   },
   {
    "name":"Canada",
    "code":"CA",
    "phone_code":"+1"
   },
   {
    "name":"Cape Verde",
    "code":"CV",
    "phone_code":"+238"
   },
   {
    "name":"Cayman Islands",
    "code":"KY",
    "phone_code":"+1"
   },
   {
    "name":"Central African Republic",
    "code":"CF",
    "phone_code":"+236"
   },
   {
    "name":"Chad",
    "code":"ID",
    "phone_code":"+235"
   },
   {
    "name":"Chile",
    "code":"CL",
    "phone_code":"+56"
   },
   {
    "name":"China",
    "code":"CN",
    "phone_code":"+86"
   },
   {
    "name":"Colombia",
    "code":"CO",
    "phone_code":"+57"
   },
   {
    "name":"Comoros",
    "code":"KM",
    "phone_code":"+269"
   },
   {
    "name":"Cook Islands",
    "code":"CK",
    "phone_code":"+682"
   },
   {
    "name":"Costa Rica",
    "code":"CR",
    "phone_code":"+506"
   },
   {
    "name":"Côte dIvoire",
    "code":"CI",
    "phone_code":"+225"
   },
   {
    "name":"Croatia",
    "code":"HR",
    "phone_code":"+385"
   },
   {
    "name":"Cuba",
    "code":"CU",
    "phone_code":"+53"
   },
   {
    "name":"Cyprus",
    "code":"CY",
    "phone_code":"+357"
   },
   {
    "name":"Czech Republic",
    "code":"CZ",
    "phone_code":"+420"
   },
   {
    "name":"Democratic Republic of Congo",
    "code":"CD",
    "phone_code":"+243"
   },
   {
    "name":"Denmark",
    "code":"DK",
    "phone_code":"+45"
   },
   {
    "name":"Djibouti",
    "code":"DJ",
    "phone_code":"+253"
   },
   {
    "name":"Dominica",
    "code":"DM",
    "phone_code":"+1"
   },
   {
    "name":"Dominican Republic",
    "code":"DO",
    "phone_code":"+1"
   },
   {
    "name":"Ecuador",
    "code":"EC",
    "phone_code":"+593"
   },
   {
    "name":"Egypt",
    "code":"EG",
    "phone_code":"+20"
   },
   {
    "name":"El Salvador",
    "code":"SV",
    "phone_code":"+503"
   },
   {
    "name":"Equatorial Guinea",
    "code":"GQ",
    "phone_code":"+240"
   },
   {
    "name":"Eritrea",
    "code":"ER",
    "phone_code":"+291"
   },
   {
    "name":"Estonia",
    "code":"EE",
    "phone_code":"+372"
   },
   {
    "name":"Ethiopia",
    "code":"ET",
    "phone_code":"+251"
   },
   {
    "name":"Falkland Islands",
    "code":"FK",
    "phone_code":"+500"
   },
   {
    "name":"Faroe Islands",
    "code":"FO",
    "phone_code":"+298"
   },
   {
    "name":"Federated States of Micronesia",
    "code":"FM",
    "phone_code":"+691"
   },
   {
    "name":"Fiji",
    "code":"FJ",
    "phone_code":"+679"
   },
   {
    "name":"Finland",
    "code":"FI",
    "phone_code":"+358"
   },
   {
    "name":"France",
    "code":"FR",
    "phone_code":"+33"
   },
   {
    "name":"French Guiana",
    "code":"GF",
    "phone_code":"+594"
   },
   {
    "name":"French Polynesia",
    "code":"PF",
    "phone_code":"+689"
   },
   {
    "name":"Gabon",
    "code":"GA",
    "phone_code":"+241"
   },
   {
    "name":"Georgia",
    "code":"GE",
    "phone_code":"+995"
   },
   {
    "name":"Germany",
    "code":"DE",
    "phone_code":"+49"
   },
   {
    "name":"Ghana",
    "code":"GH",
    "phone_code":"+233"
   },
   {
    "name":"Gibraltar",
    "code":"GI",
    "phone_code":"+350"
   },
   {
    "name":"Greece",
    "code":"GR",
    "phone_code":"+30"
   },
   {
    "name":"Greenland",
    "code":"GL",
    "phone_code":"+299"
   },
   {
    "name":"Grenada",
    "code":"GD",
    "phone_code":"+1"
   },
   {
    "name":"Guadeloupe",
    "code":"GP",
    "phone_code":"+590"
   },
   {
    "name":"Guam",
    "code":"GU",
    "phone_code":"+1"
   },
   {
    "name":"Guatemala",
    "code":"GT",
    "phone_code":"+502"
   },
   {
    "name":"Guinea",
    "code":"GN",
    "phone_code":"+224"
   },
   {
    "name":"Guinea-Bissau",
    "code":"GW",
    "phone_code":"+245"
   },
   {
    "name":"Guyana",
    "code":"GY",
    "phone_code":"+592"
   },
   {
    "name":"Haiti",
    "code":"HT",
    "phone_code":"+509"
   },
   {
    "name":"Honduras",
    "code":"HN",
    "phone_code":"+504"
   },
   {
    "name":"Hong Kong",
    "code":"HK",
    "phone_code":"+852"
   },
   {
    "name":"Hungary",
    "code":"HU",
    "phone_code":"+36"
   },
   {
    "name":"Iceland",
    "code":"IS",
    "phone_code":"+354"
   },
   {
    "name":"India",
    "code":"IN",
    "phone_code":"+91"
   },
   {
    "name":"Indonesia",
    "code":"ID",
    "phone_code":"+62"
   },
   {
    "name":"Iran",
    "code":"IR",
    "phone_code":"+98"
   },
   {
    "name":"Iraq",
    "code":"IQ",
    "phone_code":"+964"
   },
   {
    "name":"Ireland",
    "code":"IE",
    "phone_code":"+353"
   },
   {
    "name":"Israel",
    "code":"IL",
    "phone_code":"+972"
   },
   {
    "name":"Italy",
    "code":"IT",
    "phone_code":"+39"
   },
   {
    "name":"Jamaica",
    "code":"JM",
    "phone_code":"+1"
   },
   {
    "name":"Japan",
    "code":"JP",
    "phone_code":"+81"
   },
   {
    "name":"Jordan",
    "code":"JO",
    "phone_code":"+962"
   },
   {
    "name":"Kazakhstan",
    "code":"KZ",
    "phone_code":"+7"
   },
   {
    "name":"Kenya",
    "code":"KE",
    "phone_code":"+254"
   },
   {
    "name":"Kiribati",
    "code":"KI",
    "phone_code":"+686"
   },
   {
    "name":"Kosovo",
    "code":"XK",
    "phone_code":"+383"
   },
   {
    "name":"Kuwait",
    "code":"KW",
    "phone_code":"+965"
   },
   {
    "name":"Kyrgyzstan",
    "code":"KG",
    "phone_code":"+996"
   },
   {
    "name":"Laos",
    "code":"LA",
    "phone_code":"+856"
   },
   {
    "name":"Latvia",
    "code":"LV",
    "phone_code":"+371"
   },
   {
    "name":"Lebanon",
    "code":"LB",
    "phone_code":"+961"
   },
   {
    "name":"Lesotho",
    "code":"LS",
    "phone_code":"+266"
   },
   {
    "name":"Liberia",
    "code":"LR",
    "phone_code":"+231"
   },
   {
    "name":"Libya",
    "code":"LY",
    "phone_code":"+218"
   },
   {
    "name":"Liechtenstein",
    "code":"LI",
    "phone_code":"+423"
   },
   {
    "name":"Lithuania",
    "code":"LT",
    "phone_code":"+370"
   },
   {
    "name":"Luxembourg",
    "code":"LU",
    "phone_code":"+352"
   },
   {
    "name":"Macau",
    "code":"MO",
    "phone_code":"+853"
   },
   {
    "name":"Macedonia",
    "code":"MK",
    "phone_code":"+389"
   },
   {
    "name":"Madagascar",
    "code":"MG",
    "phone_code":"+261"
   },
   {
    "name":"Malawi",
    "code":"MW",
    "phone_code":"+265"
   },
   {
    "name":"Malaysia",
    "code":"MY",
    "phone_code":"+60"
   },
   {
    "name":"Maldives",
    "code":"MV",
    "phone_code":"+960"
   },
   {
    "name":"Mali",
    "code":"ML",
    "phone_code":"+223"
   },
   {
    "name":"Malta",
    "code":"MT",
    "phone_code":"+356"
   },
   {
    "name":"Marshall Islands",
    "code":"MH",
    "phone_code":"+692"
   },
   {
    "name":"Martinique",
    "code":"MQ",
    "phone_code":"+596"
   },
   {
    "name":"Mauritania",
    "code":"MR",
    "phone_code":"+222"
   },
   {
    "name":"Mauritius",
    "code":"MU",
    "phone_code":"+230"
   },
   {
    "name":"Mayotte",
    "code":"YT",
    "phone_code":"+262"
   },
   {
    "name":"Mexico",
    "code":"MX",
    "phone_code":"+52"
   },
   {
    "name":"Moldova",
    "code":"MD",
    "phone_code":"+373"
   },
   {
    "name":"Monaco",
    "code":"MC",
    "phone_code":"+377"
   },
   {
    "name":"Mongolia",
    "code":"MN",
    "phone_code":"+976"
   },
   {
    "name":"Montenegro",
    "code":"ME",
    "phone_code":"+382"
   },
   {
    "name":"Montserrat",
    "code":"MS",
    "phone_code":"+1"
   },
   {
    "name":"Morocco",
    "code":"MA",
    "phone_code":"+212"
   },
   {
    "name":"Mozambique",
    "code":"MZ",
    "phone_code":"+258"
   },
   {
    "name":"Namibia",
    "code":"NA",
    "phone_code":"+264"
   },
   {
    "name":"Nauru",
    "code":"NR",
    "phone_code":"+674"
   },
   {
    "name":"Nepal",
    "code":"NP",
    "phone_code":"+977"
   },
   {
    "name":"Netherlands",
    "code":"NL",
    "phone_code":"+31"
   },
   {
    "name":"Netherlands Antilles",
    "code":"AN",
    "phone_code":"+599"
   },
   {
    "name":"New Caledonia",
    "code":"NC",
    "phone_code":"+687"
   },
   {
    "name":"New Zealand",
    "code":"NZ",
    "phone_code":"+64"
   },
   {
    "name":"Nicaragua",
    "code":"NI",
    "phone_code":"+505"
   },
   {
    "name":"Niger",
    "code":"NE",
    "phone_code":"+227"
   },
   {
    "name":"Nigeria",
    "code":"NG",
    "phone_code":"+234"
   },
   {
    "name":"Niue",
    "code":"NU",
    "phone_code":"+683"
   },
   {
    "name":"Norfolk Island",
    "code":"NF",
    "phone_code":"+672"
   },
   {
    "name":"North Korea",
    "code":"KP",
    "phone_code":"+850"
   },
   {
    "name":"Northern Mariana Islands",
    "code":"MP",
    "phone_code":"+1"
   },
   {
    "name":"Norway",
    "code":"NO",
    "phone_code":"+47"
   },
   {
    "name":"Oman",
    "code":"OM",
    "phone_code":"+968"
   },
   {
    "name":"Pakistan",
    "code":"PK",
    "phone_code":"+92"
   },
   {
    "name":"Palau",
    "code":"PW",
    "phone_code":"+680"
   },
   {
    "name":"Palestine",
    "code":"PS",
    "phone_code":"+970"
   },
   {
    "name":"Panama",
    "code":"PA",
    "phone_code":"+507"
   },
   {
    "name":"Papua New Guinea",
    "code":"PG",
    "phone_code":"+675"
   },
   {
    "name":"Paraguay",
    "code":"PY",
    "phone_code":"+595"
   },
   {
    "name":"Peru",
    "code":"PE",
    "phone_code":"+51"
   },
   {
    "name":"Philippines",
    "code":"PH",
    "phone_code":"+63"
   },
   {
    "name":"Poland",
    "code":"PL",
    "phone_code":"+48"
   },
   {
    "name":"Portugal",
    "code":"PT",
    "phone_code":"+351"
   },
   {
    "name":"Puerto Rico",
    "code":"PR",
    "phone_code":"+1"
   },
   {
    "name":"Qatar",
    "code":"QA",
    "phone_code":"+974"
   },
   {
    "name":"Republic of the Congo",
    "code":"CG",
    "phone_code":"+242"
   },
   {
    "name":"Réunion",
    "code":"RE",
    "phone_code":"+262"
   },
   {
    "name":"Romania",
    "code":"RO",
    "phone_code":"+40"
   },
   {
    "name":"Russia",
    "code":"RU",
    "phone_code":"+7"
   },
   {
    "name":"Rwanda",
    "code":"RW",
    "phone_code":"+250"
   },
   {
    "name":"Saint Barthélemy",
    "code":"BL",
    "phone_code":"+590"
   },
   {
    "name":"Saint Helena",
    "code":"SH",
    "phone_code":"+290"
   },
   {
    "name":"Saint Kitts and Nevis",
    "code":"KN",
    "phone_code":"+1"
   },
   {
    "name":"Saint Martin",
    "code":"MF",
    "phone_code":"+590"
   },
   {
    "name":"Saint Pierre and Miquelon",
    "code":"PM",
    "phone_code":"+508"
   },
   {
    "name":"Saint Vincent and the Grenadines",
    "code":"VC",
    "phone_code":"+1"
   },
   {
    "name":"Samoa",
    "code":"WS",
    "phone_code":"+685"
   },
   {
    "name":"San Marino",
    "code":"SM",
    "phone_code":"+378"
   },
   {
    "name":"São Tomé and Príncipe",
    "code":"ST",
    "phone_code":"+239"
   },
   {
    "name":"Saudi Arabia",
    "code":"SA",
    "phone_code":"+966"
   },
   {
    "name":"Senegal",
    "code":"SN",
    "phone_code":"+221"
   },
   {
    "name":"Serbia",
    "code":"RS",
    "phone_code":"+381"
   },
   {
    "name":"Seychelles",
    "code":"SC",
    "phone_code":"+248"
   },
   {
    "name":"Sierra Leone",
    "code":"SL",
    "phone_code":"+232"
   },
   {
    "name":"Singapore",
    "code":"SG",
    "phone_code":"+65"
   },
   {
    "name":"Slovakia",
    "code":"SK",
    "phone_code":"+421"
   },
   {
    "name":"Slovenia",
    "code":"SI",
    "phone_code":"+386"
   },
   {
    "name":"Solomon Islands",
    "code":"SB",
    "phone_code":"+677"
   },
   {
    "name":"Somalia",
    "code":"SO",
    "phone_code":"+252"
   },
   {
    "name":"South Africa",
    "code":"ZA",
    "phone_code":"+27"
   },
   {
    "name":"South Korea",
    "code":"KR",
    "phone_code":"+82"
   },
   {
    "name":"Spain",
    "code":"ES",
    "phone_code":"+34"
   },
   {
    "name":"Sri Lanka",
    "code":"LK",
    "phone_code":"+94"
   },
   {
    "name":"St. Lucia",
    "code":"LC",
    "phone_code":"+1"
   },
   {
    "name":"Sudan",
    "code":"SD",
    "phone_code":"+249"
   },
   {
    "name":"Suriname",
    "code":"SR",
    "phone_code":"+597"
   },
   {
    "name":"Swaziland",
    "code":"SZ",
    "phone_code":"+268"
   },
   {
    "name":"Sweden",
    "code":"SE",
    "phone_code":"+46"
   },
   {
    "name":"Switzerland",
    "code":"CH",
    "phone_code":"+41"
   },
   {
    "name":"Syria",
    "code":"SY",
    "phone_code":"+963"
   },
   {
    "name":"Taiwan",
    "code":"TW",
    "phone_code":"+886"
   },
   {
    "name":"Tajikistan",
    "code":"TJ",
    "phone_code":"+992"
   },
   {
    "name":"Tanzania",
    "code":"TZ",
    "phone_code":"+255"
   },
   {
    "name":"Thailand",
    "code":"TH",
    "phone_code":"+66"
   },
   {
    "name":"The Bahamas",
    "code":"BS",
    "phone_code":"+1"
   },
   {
    "name":"The Gambia",
    "code":"GM",
    "phone_code":"+220"
   },
   {
    "name":"Timor-Leste",
    "code":"TL",
    "phone_code":"+670"
   },
   {
    "name":"Togo",
    "code":"TG",
    "phone_code":"+228"
   },
   {
    "name":"Tokelau",
    "code":"TK",
    "phone_code":"+690"
   },
   {
    "name":"Tonga",
    "code":"TO",
    "phone_code":"+676"
   },
   {
    "name":"Trinidad and Tobago",
    "code":"TT",
    "phone_code":"+1"
   },
   {
    "name":"Tunisia",
    "code":"TN",
    "phone_code":"+216"
   },
   {
    "name":"Turkey",
    "code":"TR",
    "phone_code":"+90"
   },
   {
    "name":"Turkmenistan",
    "code":"TM",
    "phone_code":"+993"
   },
   {
    "name":"Turks and Caicos Islands",
    "code":"TC",
    "phone_code":"+1"
   },
   {
    "name":"Tuvalu",
    "code":"TV",
    "phone_code":"+688"
   },
   {
    "name":"Uganda",
    "code":"UG",
    "phone_code":"+256"
   },
   {
    "name":"Ukraine",
    "code":"UA",
    "phone_code":"+380"
   },
   {
    "name":"United Arab Emirates",
    "code":"AE",
    "phone_code":"+971"
   },
   {
    "name":"United Kingdom",
    "code":"GB",
    "phone_code":"+44"
   },
   {
    "name":"United States",
    "code":"US",
    "phone_code":"+1"
   },
   {
    "name":"Uruguay",
    "code":"UY",
    "phone_code":"+598"
   },
   {
    "name":"US Virgin Islands",
    "code":"VI",
    "phone_code":"+1"
   },
   {
    "name":"Uzbekistan",
    "code":"UZ",
    "phone_code":"+998"
   },
   {
    "name":"Vanuatu",
    "code":"VU",
    "phone_code":"+678"
   },
   {
    "name":"Vatican City",
    "code":"VA",
    "phone_code":"+39"
   },
   {
    "name":"Venezuela",
    "code":"VE",
    "phone_code":"+58"
   },
   {
    "name":"Vietnam",
    "code":"VN",
    "phone_code":"+84"
   },
   {
    "name":"Wallis and Futuna",
    "code":"WF",
    "phone_code":"+681"
   },
   {
    "name":"Yemen",
    "code":"YE",
    "phone_code":"+967"
   },
   {
    "name":"Zambia",
    "code":"ZM",
    "phone_code":"+260"
   },
   {
    "name":"Zimbabwe",
    "code":"ZW",
    "phone_code":"+263"
   }
]
@taurcandance

This comment has been minimized.

Copy link

commented Sep 28, 2018

thanks to all. I found what I need

@briteside

This comment has been minimized.

Copy link

commented Oct 11, 2018

PHP array

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

    ];
@8eecf0d2

This comment has been minimized.

Copy link

commented Jan 28, 2019

Similar to @thinklinux's but random order.

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

This comment has been minimized.

Copy link

commented Feb 20, 2019

new additions

[
  {
    "code": "BQ",
    "name": "Bonaire, Sint Eustatius and Saba",
    "phone_code": "+599"
  },
  {
    "code": "CW",
    "name": "Curaçao",
    "phone_code": "+599"
  },
  {
    "code": "SX",
    "name": "Sint Maarten (Dutch part)",
    "phone_code": "+1"
  },
  {
    "code": "SS",
    "name": "South Sudan",
    "phone_code": "+211"
  }
]
@joshalexandre

This comment has been minimized.

Copy link

commented Mar 22, 2019

JSON one-liner with ID
[{name:'Andorra',value:'1'},{name:'United Arab Emirates',value:'2'},{name:'Afghanistan',value:'3'},{name:'Antigua and Barbuda',value:'4'},{name:'Anguilla',value:'5'},{name:'Albania',value:'6'},{name:'Armenia',value:'7'},{name:'Netherlands Antilles',value:'8'},{name:'Angola',value:'9'},{name:'Antarctica',value:'10'},{name:'Argentina',value:'11'},{name:'American Samoa',value:'12'},{name:'Austria',value:'13'},{name:'Australia',value:'14'},{name:'Aruba',value:'15'},{name:'Aland Islands',value:'16'},{name:'Azerbaijan',value:'17'},{name:'Bosnia and Herzegovina',value:'18'},{name:'Barbados',value:'19'},{name:'Bangladesh',value:'20'},{name:'Belgium',value:'21'},{name:'Burkina Faso',value:'22'},{name:'Bulgaria',value:'23'},{name:'Bahrain',value:'24'},{name:'Burundi',value:'25'},{name:'Benin',value:'26'},{name:'Saint Barthélemy',value:'27'},{name:'Bermuda',value:'28'},{name:'Brunei',value:'29'},{name:'Bolivia',value:'30'},{name:'Bonaire, Saint Eustatius and Saba ',value:'31'},{name:'Brazil',value:'32'},{name:'Bahamas',value:'33'},{name:'Bhutan',value:'34'},{name:'Bouvet Island',value:'35'},{name:'Botswana',value:'36'},{name:'Belarus',value:'37'},{name:'Belize',value:'38'},{name:'Canada',value:'39'},{name:'Cocos Islands',value:'40'},{name:'Democratic Republic of the Congo',value:'41'},{name:'Central African Republic',value:'42'},{name:'Republic of the Congo',value:'43'},{name:'Switzerland',value:'44'},{name:'Ivory Coast',value:'45'},{name:'Cook Islands',value:'46'},{name:'Chile',value:'47'},{name:'Cameroon',value:'48'},{name:'China',value:'49'},{name:'Colombia',value:'50'},{name:'Costa Rica',value:'51'},{name:'Serbia and Montenegro',value:'52'},{name:'Cuba',value:'53'},{name:'Cape Verde',value:'54'},{name:'Curaçao',value:'55'},{name:'Christmas Island',value:'56'},{name:'Cyprus',value:'57'},{name:'Czech Republic',value:'58'},{name:'Germany',value:'59'},{name:'Djibouti',value:'60'},{name:'Denmark',value:'61'},{name:'Dominica',value:'62'},{name:'Dominican Republic',value:'63'},{name:'Algeria',value:'64'},{name:'Ecuador',value:'65'},{name:'Estonia',value:'66'},{name:'Egypt',value:'67'},{name:'Western Sahara',value:'68'},{name:'Eritrea',value:'69'},{name:'Spain',value:'70'},{name:'Ethiopia',value:'71'},{name:'Finland',value:'72'},{name:'Fiji',value:'73'},{name:'Falkland Islands',value:'74'},{name:'Micronesia',value:'75'},{name:'Faroe Islands',value:'76'},{name:'France',value:'77'},{name:'Gabon',value:'78'},{name:'United Kingdom',value:'79'},{name:'Grenada',value:'80'},{name:'Georgia',value:'81'},{name:'French Guiana',value:'82'},{name:'Guernsey',value:'83'},{name:'Ghana',value:'84'},{name:'Gibraltar',value:'85'},{name:'Greenland',value:'86'},{name:'Gambia',value:'87'},{name:'Guinea',value:'88'},{name:'Guadeloupe',value:'89'},{name:'Equatorial Guinea',value:'90'},{name:'Greece',value:'91'},{name:'South Georgia and the South Sandwich Islands',value:'92'},{name:'Guatemala',value:'93'},{name:'Guam',value:'94'},{name:'Guinea-Bissau',value:'95'},{name:'Guyana',value:'96'},{name:'Hong Kong',value:'97'},{name:'Heard Island and McDonald Islands',value:'98'},{name:'Honduras',value:'99'},{name:'Croatia',value:'100'},{name:'Haiti',value:'101'},{name:'Hungary',value:'102'},{name:'Indonesia',value:'103'},{name:'Ireland',value:'104'},{name:'Israel',value:'105'},{name:'Isle of Man',value:'106'},{name:'India',value:'107'},{name:'British Indian Ocean Territory',value:'108'},{name:'Iraq',value:'109'},{name:'Iran',value:'110'},{name:'Iceland',value:'111'},{name:'Italy',value:'112'},{name:'Jersey',value:'113'},{name:'Jamaica',value:'114'},{name:'Jordan',value:'115'},{name:'Japan',value:'116'},{name:'Kenya',value:'117'},{name:'Kyrgyzstan',value:'118'},{name:'Cambodia',value:'119'},{name:'Kiribati',value:'120'},{name:'Comoros',value:'121'},{name:'Saint Kitts and Nevis',value:'122'},{name:'North Korea',value:'123'},{name:'South Korea',value:'124'},{name:'Kuwait',value:'125'},{name:'Cayman Islands',value:'126'},{name:'Kazakhstan',value:'127'},{name:'Laos',value:'128'},{name:'Lebanon',value:'129'},{name:'Saint Lucia',value:'130'},{name:'Liechtenstein',value:'131'},{name:'Sri Lanka',value:'132'},{name:'Liberia',value:'133'},{name:'Lesotho',value:'134'},{name:'Lithuania',value:'135'},{name:'Luxembourg',value:'136'},{name:'Latvia',value:'137'},{name:'Libya',value:'138'},{name:'Morocco',value:'139'},{name:'Monaco',value:'140'},{name:'Moldova',value:'141'},{name:'Montenegro',value:'142'},{name:'Saint Martin',value:'143'},{name:'Madagascar',value:'144'},{name:'Marshall Islands',value:'145'},{name:'Macedonia',value:'146'},{name:'Mali',value:'147'},{name:'Myanmar',value:'148'},{name:'Mongolia',value:'149'},{name:'Macao',value:'150'},{name:'Northern Mariana Islands',value:'151'},{name:'Martinique',value:'152'},{name:'Mauritania',value:'153'},{name:'Montserrat',value:'154'},{name:'Malta',value:'155'},{name:'Mauritius',value:'156'},{name:'Maldives',value:'157'},{name:'Malawi',value:'158'},{name:'Mexico',value:'159'},{name:'Malaysia',value:'160'},{name:'Mozambique',value:'161'},{name:'Namibia',value:'162'},{name:'New Caledonia',value:'163'},{name:'Niger',value:'164'},{name:'Norfolk Island',value:'165'},{name:'Nigeria',value:'166'},{name:'Nicaragua',value:'167'},{name:'Netherlands',value:'168'},{name:'Norway',value:'169'},{name:'Nepal',value:'170'},{name:'Nauru',value:'171'},{name:'Niue',value:'172'},{name:'New Zealand',value:'173'},{name:'Oman',value:'174'},{name:'Panama',value:'175'},{name:'Peru',value:'176'},{name:'French Polynesia',value:'177'},{name:'Papua New Guinea',value:'178'},{name:'Philippines',value:'179'},{name:'Pakistan',value:'180'},{name:'Poland',value:'181'},{name:'Saint Pierre and Miquelon',value:'182'},{name:'Pitcairn',value:'183'},{name:'Puerto Rico',value:'184'},{name:'Palestinian Territory',value:'185'},{name:'Portugal',value:'186'},{name:'Palau',value:'187'},{name:'Paraguay',value:'188'},{name:'Qatar',value:'189'},{name:'Reunion',value:'190'},{name:'Romania',value:'191'},{name:'Serbia',value:'192'},{name:'Russia',value:'193'},{name:'Rwanda',value:'194'},{name:'Saudi Arabia',value:'195'},{name:'Solomon Islands',value:'196'},{name:'Seychelles',value:'197'},{name:'Sudan',value:'198'},{name:'Sweden',value:'199'},{name:'Singapore',value:'200'},{name:'Saint Helena',value:'201'},{name:'Slovenia',value:'202'},{name:'Svalbard and Jan Mayen',value:'203'},{name:'Slovakia',value:'204'},{name:'Sierra Leone',value:'205'},{name:'San Marino',value:'206'},{name:'Senegal',value:'207'},{name:'Somalia',value:'208'},{name:'Suriname',value:'209'},{name:'South Sudan',value:'210'},{name:'Sao Tome and Principe',value:'211'},{name:'El Salvador',value:'212'},{name:'Sint Maarten',value:'213'},{name:'Syria',value:'214'},{name:'Swaziland',value:'215'},{name:'Turks and Caicos Islands',value:'216'},{name:'Chad',value:'217'},{name:'French Southern Territories',value:'218'},{name:'Togo',value:'219'},{name:'Thailand',value:'220'},{name:'Tajikistan',value:'221'},{name:'Tokelau',value:'222'},{name:'East Timor',value:'223'},{name:'Turkmenistan',value:'224'},{name:'Tunisia',value:'225'},{name:'Tonga',value:'226'},{name:'Turkey',value:'227'},{name:'Trinidad and Tobago',value:'228'},{name:'Tuvalu',value:'229'},{name:'Taiwan',value:'230'},{name:'Tanzania',value:'231'},{name:'Ukraine',value:'232'},{name:'Uganda',value:'233'},{name:'United States Minor Outlying Islands',value:'234'},{name:'United States',value:'235'},{name:'Uruguay',value:'236'},{name:'Uzbekistan',value:'237'},{name:'Vatican',value:'238'},{name:'Saint Vincent and the Grenadines',value:'239'},{name:'Venezuela',value:'240'},{name:'British Virgin Islands',value:'241'},{name:'U.S. Virgin Islands',value:'242'},{name:'Vietnam',value:'243'},{name:'Vanuatu',value:'244'},{name:'Wallis and Futuna',value:'245'},{name:'Samoa',value:'246'},{name:'Kosovo',value:'247'},{name:'Yemen',value:'248'},{name:'Mayotte',value:'249'},{name:'South Africa',value:'250'},{name:'Zambia',value:'251'},{name:'Zimbabwe',value:'252’}]

@Tomas-Kosik

This comment has been minimized.

Copy link

commented Mar 25, 2019

Updated JSON with ISO 3166-1 encoding list: phone code, aplha-2 and alpha-3 code:

[
{
"name":"Afghanistan",
"phoneCode":"+93",
"alpha2code":"AF",
"alpha3code":"AFG"
},
{
"name":"Albania",
"phoneCode":"+355",
"alpha2code":"AL",
"alpha3code":"ALB"
},
{
"name":"Algeria",
"phoneCode":"+213",
"alpha2code":"DZ",
"alpha3code":"DZA"
},
{
"name":"American Samoa",
"phoneCode":"+1",
"alpha2code":"AS",
"alpha3code":"ASM"
},
{
"name":"Andorra",
"phoneCode":"+376",
"alpha2code":"AD",
"alpha3code":"AND"
},
{
"name":"Angola",
"phoneCode":"+244",
"alpha2code":"AO",
"alpha3code":"AGO"
},
{
"name":"Anguilla",
"phoneCode":"+1",
"alpha2code":"AI",
"alpha3code":"AIA"
},
{
"name":"Antigua and Barbuda",
"phoneCode":"+1",
"alpha2code":"AG",
"alpha3code":"ATG"
},
{
"name":"Argentina",
"phoneCode":"+54",
"alpha2code":"AR",
"alpha3code":"ARG"
},
{
"name":"Armenia",
"phoneCode":"+374",
"alpha2code":"AM",
"alpha3code":"ARM"
},
{
"name":"Aruba",
"phoneCode":"+297",
"alpha2code":"AW",
"alpha3code":"ABW"
},
{
"name":"Australia",
"phoneCode":"+61",
"alpha2code":"AU",
"alpha3code":"AUS"
},
{
"name":"Austria",
"phoneCode":"+43",
"alpha2code":"AI",
"alpha3code":"AUT"
},
{
"name":"Azerbaijan",
"phoneCode":"+994",
"alpha2code":"AZ",
"alpha3code":"AZE"
},
{
"name":"Bahrain",
"phoneCode":"+973",
"alpha2code":"BH",
"alpha3code":"BHR"
},
{
"name":"Bangladesh",
"phoneCode":"+880",
"alpha2code":"BD",
"alpha3code":"BGD"
},
{
"name":"Barbados",
"phoneCode":"+1",
"alpha2code":"BB",
"alpha3code":"BRB"
},
{
"name":"Belarus",
"phoneCode":"+375",
"alpha2code":"BY",
"alpha3code":"BLR"
},
{
"name":"Belgium",
"phoneCode":"+32",
"alpha2code":"BE",
"alpha3code":"BEL"
},
{
"name":"Belize",
"phoneCode":"+501",
"alpha2code":"BZ",
"alpha3code":"BLZ"
},
{
"name":"Benin",
"phoneCode":"+229",
"alpha2code":"BJ",
"alpha3code":"BEN"
},
{
"name":"Bermuda",
"phoneCode":"+1",
"alpha2code":"BM",
"alpha3code":"BMU"
},
{
"name":"Bhutan",
"phoneCode":"+975",
"alpha2code":"BT",
"alpha3code":"BTN"
},
{
"name":"Bolivia",
"phoneCode":"+591",
"alpha2code":"BO",
"alpha3code":"BOL"
},
{
"name":"Bonaire, Sint Eustatius and Saba",
"phoneCode":"+599",
"alpha2code":"BQ",
"alpha3code":"BES"
},
{
"name":"Bosnia and Herzegovina",
"phoneCode":"+387",
"alpha2code":"BA",
"alpha3code":"BIH"
},
{
"name":"Botswana",
"phoneCode":"+267",
"alpha2code":"BW",
"alpha3code":"BWA"
},
{
"name":"Brazil",
"phoneCode":"+55",
"alpha2code":"BR",
"alpha3code":"BRA"
},
{
"name":"British Indian Ocean Territory",
"phoneCode":"+246",
"alpha2code":"IO",
"alpha3code":"IOT"
},
{
"name":"British Virgin Islands",
"phoneCode":"+1",
"alpha2code":"VG",
"alpha3code":"VGB"
},
{
"name":"Brunei Darussalam",
"phoneCode":"+673",
"alpha2code":"BN",
"alpha3code":"BRN"
},
{
"name":"Bulgaria",
"phoneCode":"+359",
"alpha2code":"BG",
"alpha3code":"BGR"
},
{
"name":"Burkina Faso",
"phoneCode":"+226",
"alpha2code":"BF",
"alpha3code":"BFA"
},
{
"name":"Myanmar",
"phoneCode":"+95",
"alpha2code":"MM",
"alpha3code":"MMR"
},
{
"name":"Burundi",
"phoneCode":"+257",
"alpha2code":"BI",
"alpha3code":"BDI"
},
{
"name":"Cambodia",
"phoneCode":"+855",
"alpha2code":"KH",
"alpha3code":"KHM"
},
{
"name":"Cameroon",
"phoneCode":"+237",
"alpha2code":"CM",
"alpha3code":"CMR"
},
{
"name":"Canada",
"phoneCode":"+1",
"alpha2code":"CA",
"alpha3code":"CAN"
},
{
"name":"Cabo Verde",
"phoneCode":"+238",
"alpha2code":"CV",
"alpha3code":"CPV"
},
{
"name":"Cayman Islands",
"phoneCode":"+1",
"alpha2code":"KY",
"alpha3code":"CYM"
},
{
"name":"Central African Republic",
"phoneCode":"+236",
"alpha2code":"CF",
"alpha3code":"CAF"
},
{
"name":"Chad",
"phoneCode":"+235",
"alpha2code":"ID",
"alpha3code":"TCD"
},
{
"name":"Chile",
"phoneCode":"+56",
"alpha2code":"CL",
"alpha3code":"CHL"
},
{
"name":"China",
"phoneCode":"+86",
"alpha2code":"CN",
"alpha3code":"CHN"
},
{
"name":"Colombia",
"phoneCode":"+57",
"alpha2code":"CO",
"alpha3code":"COL"
},
{
"name":"Comoros",
"phoneCode":"+269",
"alpha2code":"KM",
"alpha3code":"COM"
},
{
"name":"Cook Islands",
"phoneCode":"+682",
"alpha2code":"CK",
"alpha3code":"COK"
},
{
"name":"Costa Rica",
"phoneCode":"+506",
"alpha2code":"CR",
"alpha3code":"CRI"
},
{
"name":"Côte dIvoire",
"phoneCode":"+225",
"alpha2code":"CI",
"alpha3code":"CIV"
},
{
"name":"Croatia",
"phoneCode":"+385",
"alpha2code":"HR",
"alpha3code":"HRV"
},
{
"name":"Cuba",
"phoneCode":"+53",
"alpha2code":"CU",
"alpha3code":"CUB"
},
{
"name":"Curaçao",
"phoneCode":"+599",
"alpha2code":"CW",
"alpha3code":"CUW"
},
{
"name":"Cyprus",
"phoneCode":"+357",
"alpha2code":"CY",
"alpha3code":"CYP"
},
{
"name":"Czechia",
"phoneCode":"+420",
"alpha2code":"CZ",
"alpha3code":"CZE"
},
{
"name":"Denmark",
"phoneCode":"+45",
"alpha2code":"DK",
"alpha3code":"DNK"
},
{
"name":"Djibouti",
"phoneCode":"+253",
"alpha2code":"DJ",
"alpha3code":"DJI"
},
{
"name":"Dominica",
"phoneCode":"+1",
"alpha2code":"DM",
"alpha3code":"DMA"
},
{
"name":"Dominican Republic",
"phoneCode":"+1",
"alpha2code":"DO",
"alpha3code":"DOM"
},
{
"name":"Ecuador",
"phoneCode":"+593",
"alpha2code":"EC",
"alpha3code":"ECU"
},
{
"name":"Egypt",
"phoneCode":"+20",
"alpha2code":"EG",
"alpha3code":"EGY"
},
{
"name":"El Salvador",
"phoneCode":"+503",
"alpha2code":"SV",
"alpha3code":"SLV"
},
{
"name":"Equatorial Guinea",
"phoneCode":"+240",
"alpha2code":"GQ",
"alpha3code":"GNQ"
},
{
"name":"Eritrea",
"phoneCode":"+291",
"alpha2code":"ER",
"alpha3code":"ERI"
},
{
"name":"Estonia",
"phoneCode":"+372",
"alpha2code":"EE",
"alpha3code":"EST"
},
{
"name":"Ethiopia",
"phoneCode":"+251",
"alpha2code":"ET",
"alpha3code":"ETH"
},
{
"name":"Falkland Islands",
"phoneCode":"+500",
"alpha2code":"FK",
"alpha3code":"FLK"
},
{
"name":"Faroe Islands",
"phoneCode":"+298",
"alpha2code":"FO",
"alpha3code":"FRO"
},
{
"name":"Federated States of Micronesia",
"phoneCode":"+691",
"alpha2code":"FM",
"alpha3code":"FSM"
},
{
"name":"Fiji",
"phoneCode":"+679",
"alpha2code":"FJ",
"alpha3code":"FJI"
},
{
"name":"Finland",
"phoneCode":"+358",
"alpha2code":"FI",
"alpha3code":"FIN"
},
{
"name":"France",
"phoneCode":"+33",
"alpha2code":"FR",
"alpha3code":"FRA"
},
{
"name":"French Guiana",
"phoneCode":"+594",
"alpha2code":"GF",
"alpha3code":"GUF"
},
{
"name":"French Polynesia",
"phoneCode":"+689",
"alpha2code":"PF",
"alpha3code":"PYF"
},
{
"name":"Gabon",
"phoneCode":"+241",
"alpha2code":"GA",
"alpha3code":"GAB"
},
{
"name":"Georgia",
"phoneCode":"+995",
"alpha2code":"GE",
"alpha3code":"GEO"
},
{
"name":"Germany",
"phoneCode":"+49",
"alpha2code":"DE",
"alpha3code":"DEU"
},
{
"name":"Ghana",
"phoneCode":"+233",
"alpha2code":"GH",
"alpha3code":"GHA"
},
{
"name":"Gibraltar",
"phoneCode":"+350",
"alpha2code":"GI",
"alpha3code":"GIB"
},
{
"name":"Greece",
"phoneCode":"+30",
"alpha2code":"GR",
"alpha3code":"GRC"
},
{
"name":"Greenland",
"phoneCode":"+299",
"alpha2code":"GL",
"alpha3code":"GRL"
},
{
"name":"Grenada",
"phoneCode":"+1",
"alpha2code":"GD",
"alpha3code":"GRD"
},
{
"name":"Guadeloupe",
"phoneCode":"+590",
"alpha2code":"GP",
"alpha3code":"GLP"
},
{
"name":"Guam",
"phoneCode":"+1",
"alpha2code":"GU",
"alpha3code":"GUM"
},
{
"name":"Guatemala",
"phoneCode":"+502",
"alpha2code":"GT",
"alpha3code":"GTM"
},
{
"name":"Guinea",
"phoneCode":"+224",
"alpha2code":"GN",
"alpha3code":"GIN"
},
{
"name":"Guinea-Bissau",
"phoneCode":"+245",
"alpha2code":"GW",
"alpha3code":"GNB"
},
{
"name":"Guyana",
"phoneCode":"+592",
"alpha2code":"GY",
"alpha3code":"GUY"
},
{
"name":"Haiti",
"phoneCode":"+509",
"alpha2code":"HT",
"alpha3code":"HTI"
},
{
"name":"Honduras",
"phoneCode":"+504",
"alpha2code":"HN",
"alpha3code":"HND"
},
{
"name":"Hong Kong",
"phoneCode":"+852",
"alpha2code":"HK",
"alpha3code":"HKG"
},
{
"name":"Hungary",
"phoneCode":"+36",
"alpha2code":"HU",
"alpha3code":"HUN"
},
{
"name":"Iceland",
"phoneCode":"+354",
"alpha2code":"IS",
"alpha3code":"ISL"
},
{
"name":"India",
"phoneCode":"+91",
"alpha2code":"IN",
"alpha3code":"IND"
},
{
"name":"Indonesia",
"phoneCode":"+62",
"alpha2code":"ID",
"alpha3code":"IDN"
},
{
"name":"Iran",
"phoneCode":"+98",
"alpha2code":"IR",
"alpha3code":"IRN"
},
{
"name":"Iraq",
"phoneCode":"+964",
"alpha2code":"IQ",
"alpha3code":"IRQ"
},
{
"name":"Ireland",
"phoneCode":"+353",
"alpha2code":"IE",
"alpha3code":"IRL"
},
{
"name":"Israel",
"phoneCode":"+972",
"alpha2code":"IL",
"alpha3code":"ISR"
},
{
"name":"Italy",
"phoneCode":"+39",
"alpha2code":"IT",
"alpha3code":"ITA"
},
{
"name":"Jamaica",
"phoneCode":"+1",
"alpha2code":"JM",
"alpha3code":"JAM"
},
{
"name":"Japan",
"phoneCode":"+81",
"alpha2code":"JP",
"alpha3code":"JPN"
},
{
"name":"Jordan",
"phoneCode":"+962",
"alpha2code":"JO",
"alpha3code":"JOR"
},
{
"name":"Kazakhstan",
"phoneCode":"+7",
"alpha2code":"KZ",
"alpha3code":"KAZ"
},
{
"name":"Kenya",
"phoneCode":"+254",
"alpha2code":"KE",
"alpha3code":"KEN"
},
{
"name":"Kiribati",
"phoneCode":"+686",
"alpha2code":"KI",
"alpha3code":"KIR"
},
{
"name":"Kuwait",
"phoneCode":"+965",
"alpha2code":"KW",
"alpha3code":"KWT"
},
{
"name":"Kyrgyzstan",
"phoneCode":"+996",
"alpha2code":"KG",
"alpha3code":"KGZ"
},
{
"name":"Laos",
"phoneCode":"+856",
"alpha2code":"LA",
"alpha3code":"LAO"
},
{
"name":"Latvia",
"phoneCode":"+371",
"alpha2code":"LV",
"alpha3code":"LVA"
},
{
"name":"Lebanon",
"phoneCode":"+961",
"alpha2code":"LB",
"alpha3code":"LBN"
},
{
"name":"Lesotho",
"phoneCode":"+266",
"alpha2code":"LS",
"alpha3code":"LSO"
},
{
"name":"Liberia",
"phoneCode":"+231",
"alpha2code":"LR",
"alpha3code":"LBR"
},
{
"name":"Libya",
"phoneCode":"+218",
"alpha2code":"LY",
"alpha3code":"LBY"
},
{
"name":"Liechtenstein",
"phoneCode":"+423",
"alpha2code":"LI",
"alpha3code":"LIE"
},
{
"name":"Lithuania",
"phoneCode":"+370",
"alpha2code":"LT",
"alpha3code":"LTU"
},
{
"name":"Luxembourg",
"phoneCode":"+352",
"alpha2code":"LU",
"alpha3code":"LUX"
},
{
"name":"Macao",
"phoneCode":"+853",
"alpha2code":"MO",
"alpha3code":"MAC"
},
{
"name":"Macedonia",
"phoneCode":"+389",
"alpha2code":"MK",
"alpha3code":"MKD"
},
{
"name":"Madagascar",
"phoneCode":"+261",
"alpha2code":"MG",
"alpha3code":"MDG"
},
{
"name":"Malawi",
"phoneCode":"+265",
"alpha2code":"MW",
"alpha3code":"MWI"
},
{
"name":"Malaysia",
"phoneCode":"+60",
"alpha2code":"MY",
"alpha3code":"MYS"
},
{
"name":"Maldives",
"phoneCode":"+960",
"alpha2code":"MV",
"alpha3code":"MDV"
},
{
"name":"Mali",
"phoneCode":"+223",
"alpha2code":"ML",
"alpha3code":"MLI"
},
{
"name":"Malta",
"phoneCode":"+356",
"alpha2code":"MT",
"alpha3code":"MLT"
},
{
"name":"Marshall Islands",
"phoneCode":"+692",
"alpha2code":"MH",
"alpha3code":"MHL"
},
{
"name":"Martinique",
"phoneCode":"+596",
"alpha2code":"MQ",
"alpha3code":"MTQ"
},
{
"name":"Mauritania",
"phoneCode":"+222",
"alpha2code":"MR",
"alpha3code":"MRT"
},
{
"name":"Mauritius",
"phoneCode":"+230",
"alpha2code":"MU",
"alpha3code":"MUS"
},
{
"name":"Mayotte",
"phoneCode":"+262",
"alpha2code":"YT",
"alpha3code":"MYT"
},
{
"name":"Mexico",
"phoneCode":"+52",
"alpha2code":"MX",
"alpha3code":"MEX"
},
{
"name":"Moldova",
"phoneCode":"+373",
"alpha2code":"MD",
"alpha3code":"MDA"
},
{
"name":"Monaco",
"phoneCode":"+377",
"alpha2code":"MC",
"alpha3code":"MCO"
},
{
"name":"Mongolia",
"phoneCode":"+976",
"alpha2code":"MN",
"alpha3code":"MNG"
},
{
"name":"Montenegro",
"phoneCode":"+382",
"alpha2code":"ME",
"alpha3code":"MNE"
},
{
"name":"Montserrat",
"phoneCode":"+1",
"alpha2code":"MS",
"alpha3code":"MSR"
},
{
"name":"Morocco",
"phoneCode":"+212",
"alpha2code":"MA",
"alpha3code":"MAR"
},
{
"name":"Mozambique",
"phoneCode":"+258",
"alpha2code":"MZ",
"alpha3code":"MOZ"
},
{
"name":"Namibia",
"phoneCode":"+264",
"alpha2code":"NA",
"alpha3code":"NAM"
},
{
"name":"Nauru",
"phoneCode":"+674",
"alpha2code":"NR",
"alpha3code":"NRU"
},
{
"name":"Nepal",
"phoneCode":"+977",
"alpha2code":"NP",
"alpha3code":"NPL"
},
{
"name":"Netherlands",
"phoneCode":"+31",
"alpha2code":"NL",
"alpha3code":"NLD"
},
{
"name":"Netherlands Antilles",
"phoneCode":"+599",
"alpha2code":"AN",
"alpha3code":"ANT"
},
{
"name":"New Caledonia",
"phoneCode":"+687",
"alpha2code":"NC",
"alpha3code":"NCL"
},
{
"name":"New Zealand",
"phoneCode":"+64",
"alpha2code":"NZ",
"alpha3code":"NZL"
},
{
"name":"Nicaragua",
"phoneCode":"+505",
"alpha2code":"NI",
"alpha3code":"NIC"
},
{
"name":"Niger",
"phoneCode":"+227",
"alpha2code":"NE",
"alpha3code":"NER"
},
{
"name":"Nigeria",
"phoneCode":"+234",
"alpha2code":"NG",
"alpha3code":"NGA"
},
{
"name":"Niue",
"phoneCode":"+683",
"alpha2code":"NU",
"alpha3code":"NIU"
},
{
"name":"Norfolk Island",
"phoneCode":"+672",
"alpha2code":"NF",
"alpha3code":"NFK"
},
{
"name":"North Korea",
"phoneCode":"+850",
"alpha2code":"KP",
"alpha3code":"PRK"
},
{
"name":"Northern Mariana Islands",
"phoneCode":"+1",
"alpha2code":"MP",
"alpha3code":"MNP"
},
{
"name":"Norway",
"phoneCode":"+47",
"alpha2code":"NO",
"alpha3code":"NOR"
},
{
"name":"Oman",
"phoneCode":"+968",
"alpha2code":"OM",
"alpha3code":"OMN"
},
{
"name":"Pakistan",
"phoneCode":"+92",
"alpha2code":"PK",
"alpha3code":"PAK"
},
{
"name":"Palau",
"phoneCode":"+680",
"alpha2code":"PW",
"alpha3code":"PLW"
},
{
"name":"Palestine",
"phoneCode":"+970",
"alpha2code":"PS",
"alpha3code":"PSE"
},
{
"name":"Panama",
"phoneCode":"+507",
"alpha2code":"PA",
"alpha3code":"PAN"
},
{
"name":"Papua New Guinea",
"phoneCode":"+675",
"alpha2code":"PG",
"alpha3code":"PNG"
},
{
"name":"Paraguay",
"phoneCode":"+595",
"alpha2code":"PY",
"alpha3code":"PRY"
},
{
"name":"Peru",
"phoneCode":"+51",
"alpha2code":"PE",
"alpha3code":"PER"
},
{
"name":"Philippines",
"phoneCode":"+63",
"alpha2code":"PH",
"alpha3code":"PHL"
},
{
"name":"Poland",
"phoneCode":"+48",
"alpha2code":"PL",
"alpha3code":"POL"
},
{
"name":"Portugal",
"phoneCode":"+351",
"alpha2code":"PT",
"alpha3code":"PRT"
},
{
"name":"Puerto Rico",
"phoneCode":"+1",
"alpha2code":"PR",
"alpha3code":"PRI"
},
{
"name":"Qatar",
"phoneCode":"+974",
"alpha2code":"QA",
"alpha3code":"QAT"
},
{
"name":"Congo",
"phoneCode":"+242",
"alpha2code":"CG",
"alpha3code":"COG"
},
{
"name":"Réunion",
"phoneCode":"+262",
"alpha2code":"RE",
"alpha3code":"REU"
},
{
"name":"Romania",
"phoneCode":"+40",
"alpha2code":"RO",
"alpha3code":"ROU"
},
{
"name":"Russia",
"phoneCode":"+7",
"alpha2code":"RU",
"alpha3code":"RUS"
},
{
"name":"Rwanda",
"phoneCode":"+250",
"alpha2code":"RW",
"alpha3code":"RWA"
},
{
"name":"Saint Barthélemy",
"phoneCode":"+590",
"alpha2code":"BL",
"alpha3code":"BLM"
},
{
"name":"Saint Helena",
"phoneCode":"+290",
"alpha2code":"SH",
"alpha3code":"SHN"
},
{
"name":"Saint Kitts and Nevis",
"phoneCode":"+1",
"alpha2code":"KN",
"alpha3code":"KNA"
},
{
"name":"Saint Martin",
"phoneCode":"+590",
"alpha2code":"MF",
"alpha3code":"MAF"
},
{
"name":"Saint Pierre and Miquelon",
"phoneCode":"+508",
"alpha2code":"PM",
"alpha3code":"SPM"
},
{
"name":"Saint Vincent and the Grenadines",
"phoneCode":"+1",
"alpha2code":"VC",
"alpha3code":"VCT"
},
{
"name":"Samoa",
"phoneCode":"+685",
"alpha2code":"WS",
"alpha3code":"WSM"
},
{
"name":"San Marino",
"phoneCode":"+378",
"alpha2code":"SM",
"alpha3code":"SMR"
},
{
"name":"São Tomé and Príncipe",
"phoneCode":"+239",
"alpha2code":"ST",
"alpha3code":"STP"
},
{
"name":"Saudi Arabia",
"phoneCode":"+966",
"alpha2code":"SA",
"alpha3code":"SAU"
},
{
"name":"Senegal",
"phoneCode":"+221",
"alpha2code":"SN",
"alpha3code":"SEN"
},
{
"name":"Serbia",
"phoneCode":"+381",
"alpha2code":"RS",
"alpha3code":"SRB"
},
{
"name":"Seychelles",
"phoneCode":"+248",
"alpha2code":"SC",
"alpha3code":"SYC"
},
{
"name":"Sierra Leone",
"phoneCode":"+232",
"alpha2code":"SL",
"alpha3code":"SLE"
},
{
"name":"Singapore",
"phoneCode":"+65",
"alpha2code":"SG",
"alpha3code":"SGP"
},
{
"name":"Sint Maarten (Dutch part)",
"phoneCode":"+1",
"alpha2code":"SX",
"alpha3code":"SXM"
},
{
"name":"Slovakia",
"phoneCode":"+421",
"alpha2code":"SK",
"alpha3code":"SVK"
},
{
"name":"Slovenia",
"phoneCode":"+386",
"alpha2code":"SI",
"alpha3code":"SVN"
},
{
"name":"Solomon Islands",
"phoneCode":"+677",
"alpha2code":"SB",
"alpha3code":"SLB"
},
{
"name":"Somalia",
"phoneCode":"+252",
"alpha2code":"SO",
"alpha3code":"SOM"
},
{
"name":"South Africa",
"phoneCode":"+27",
"alpha2code":"ZA",
"alpha3code":"ZAF"
},
{
"name":"South Korea",
"phoneCode":"+82",
"alpha2code":"KR",
"alpha3code":"KOR"
},
{
"name":"South Sudan",
"phoneCode":"+211",
"alpha2code":"SS",
"alpha3code":"SSD"
},
{
"name":"Spain",
"phoneCode":"+34",
"alpha2code":"ES",
"alpha3code":"ESP"
},
{
"name":"Sri Lanka",
"phoneCode":"+94",
"alpha2code":"LK",
"alpha3code":"LKA"
},
{
"name":"Saint Lucia",
"phoneCode":"+1",
"alpha2code":"LC",
"alpha3code":"LCA"
},
{
"name":"Sudan",
"phoneCode":"+249",
"alpha2code":"SD",
"alpha3code":"SDN"
},
{
"name":"Suriname",
"phoneCode":"+597",
"alpha2code":"SR",
"alpha3code":"SUR"
},
{
"name":"Swaziland",
"phoneCode":"+268",
"alpha2code":"SZ",
"alpha3code":"SWZ"
},
{
"name":"Sweden",
"phoneCode":"+46",
"alpha2code":"SE",
"alpha3code":"SWE"
},
{
"name":"Switzerland",
"phoneCode":"+41",
"alpha2code":"CH",
"alpha3code":"CHE"
},
{
"name":"Syrian Arab Republic",
"phoneCode":"+963",
"alpha2code":"SY",
"alpha3code":"SYR"
},
{
"name":"Taiwan",
"phoneCode":"+886",
"alpha2code":"TW",
"alpha3code":"TWN"
},
{
"name":"Tajikistan",
"phoneCode":"+992",
"alpha2code":"TJ",
"alpha3code":"TJK"
},
{
"name":"Tanzania",
"phoneCode":"+255",
"alpha2code":"TZ",
"alpha3code":"TZA"
},
{
"name":"Thailand",
"phoneCode":"+66",
"alpha2code":"TH",
"alpha3code":"THA"
},
{
"name":"Bahamas",
"phoneCode":"+1",
"alpha2code":"BS",
"alpha3code":"BHS"
},
{
"name":"Gambia",
"phoneCode":"+220",
"alpha2code":"GM",
"alpha3code":"GMB"
},
{
"name":"Timor-Leste",
"phoneCode":"+670",
"alpha2code":"TL",
"alpha3code":"TLS"
},
{
"name":"Togo",
"phoneCode":"+228",
"alpha2code":"TG",
"alpha3code":"TGO"
},
{
"name":"Tokelau",
"phoneCode":"+690",
"alpha2code":"TK",
"alpha3code":"TKL"
},
{
"name":"Tonga",
"phoneCode":"+676",
"alpha2code":"TO",
"alpha3code":"TON"
},
{
"name":"Trinidad and Tobago",
"phoneCode":"+1",
"alpha2code":"TT",
"alpha3code":"TTO"
},
{
"name":"Tunisia",
"phoneCode":"+216",
"alpha2code":"TN",
"alpha3code":"TUN"
},
{
"name":"Turkey",
"phoneCode":"+90",
"alpha2code":"TR",
"alpha3code":"TUR"
},
{
"name":"Turkmenistan",
"phoneCode":"+993",
"alpha2code":"TM",
"alpha3code":"TKM"
},
{
"name":"Turks and Caicos Islands",
"phoneCode":"+1",
"alpha2code":"TC",
"alpha3code":"TCA"
},
{
"name":"Tuvalu",
"phoneCode":"+688",
"alpha2code":"TV",
"alpha3code":"TUV"
},
{
"name":"Uganda",
"phoneCode":"+256",
"alpha2code":"UG",
"alpha3code":"UGA"
},
{
"name":"Ukraine",
"phoneCode":"+380",
"alpha2code":"UA",
"alpha3code":"UKR"
},
{
"name":"United Arab Emirates",
"phoneCode":"+971",
"alpha2code":"AE",
"alpha3code":"ARE"
},
{
"name":"United Kingdom",
"phoneCode":"+44",
"alpha2code":"GB",
"alpha3code":"GBR"
},
{
"name":"United States",
"phoneCode":"+1",
"alpha2code":"US",
"alpha3code":"USA"
},
{
"name":"Uruguay",
"phoneCode":"+598",
"alpha2code":"UY",
"alpha3code":"URY"
},
{
"name":"U.S. Virgin Islands",
"phoneCode":"+1",
"alpha2code":"VI",
"alpha3code":"VIR"
},
{
"name":"Uzbekistan",
"phoneCode":"+998",
"alpha2code":"UZ",
"alpha3code":"UZB"
},
{
"name":"Vanuatu",
"phoneCode":"+678",
"alpha2code":"VU",
"alpha3code":"VUT"
},
{
"name":"Vatican City",
"phoneCode":"+39",
"alpha2code":"VA",
"alpha3code":"VAT"
},
{
"name":"Venezuela",
"phoneCode":"+58",
"alpha2code":"VE",
"alpha3code":"VEN"
},
{
"name":"Vietnam",
"phoneCode":"+84",
"alpha2code":"VN",
"alpha3code":"VNM"
},
{
"name":"Wallis and Futuna",
"phoneCode":"+681",
"alpha2code":"WF",
"alpha3code":"WLF"
},
{
"name":"Yemen",
"phoneCode":"+967",
"alpha2code":"YE",
"alpha3code":"YEM"
},
{
"name":"Zambia",
"phoneCode":"+260",
"alpha2code":"ZM",
"alpha3code":"ZMB"
},
{
"name":"Zimbabwe",
"phoneCode":"+263",
"alpha2code":"ZW",
"alpha3code":"ZWE"
}
]

@FeezyHendrix

This comment has been minimized.

Copy link

commented Apr 7, 2019

Awesome ... just what I needed

@leila-tk

This comment has been minimized.

Copy link

commented Apr 11, 2019

omg, this is perfect!

@samayo

This comment has been minimized.

Copy link

commented Apr 20, 2019

For anyone interested, I have the same but more data at https://github.com/samayo/country-json

@Salamit

This comment has been minimized.

Copy link

commented Jun 29, 2019

I created an altered version here https://gist.github.com/Salamit/c62acfd6b6b2af1fd7b5a13de1af1d71

Countries are listed in the following format.

{  
       value: 'Afghanistan',
       label: 'Afghanistan'
},
@nyoumi

This comment has been minimized.

Copy link

commented Jul 4, 2019

Get it from http://vocab.nic.in/rest.php/country/json and you could find various REST API relates to gov.in, Hope it may help someone... :)

there is no order

@smindia1988

This comment has been minimized.

Copy link

commented Jul 9, 2019

Country Names with Code:

{
"countries": [{
"name": "Afghanistan",
"cca2": "af",
"code": 93
}, {
"name": "Albania",
"cca2": "al",
"code": 355
}, {
"name": "Algeria",
"cca2": "dz",
"code": 213
}, {
"name": "American Samoa",
"cca2": "as",
"code": 1684
}, {
"name": "Andorra",
"cca2": "ad",
"code": 376
}, {
"name": "Angola",
"cca2": "ao",
"code": 244
}, {
"name": "Anguilla",
"cca2": "ai",
"code": 1264
}, {
"name": "Antigua and Barbuda",
"cca2": "ag",
"code": 1268
}, {
"name": "Argentina",
"cca2": "ar",
"code": 54
}, {
"name": "Armenia",
"cca2": "am",
"code": 374
}, {
"name": "Aruba",
"cca2": "aw",
"code": 297
}, {
"name": "Australia",
"cca2": "au",
"code": 61
}, {
"name": "Austria",
"cca2": "at",
"code": 43
}, {
"name": "Azerbaijan",
"cca2": "az",
"code": 994
}, {
"name": "Bahamas",
"cca2": "bs",
"code": 1242
}, {
"name": "Bahrain",
"cca2": "bh",
"code": 973
}, {
"name": "Bangladesh",
"cca2": "bd",
"code": 880
}, {
"name": "Barbados",
"cca2": "bb",
"code": 1246
}, {
"name": "Belarus",
"cca2": "by",
"code": 375
}, {
"name": "Belgium",
"cca2": "be",
"code": 32
}, {
"name": "Belize",
"cca2": "bz",
"code": 501
}, {
"name": "Benin",
"cca2": "bj",
"code": 229
}, {
"name": "Bermuda",
"cca2": "bm",
"code": 1441
}, {