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

@rickycheers rickycheers commented Jun 16, 2013

Awesome man! Just what I needed.

@csmu-cenr

This comment has been minimized.

Copy link

@csmu-cenr csmu-cenr 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

@mariusionescu mariusionescu commented Aug 18, 2013

Thanks dude!

@abdulapopoola

This comment has been minimized.

Copy link

@abdulapopoola abdulapopoola commented Aug 21, 2013

Awesome work!

@ralphcrisostomo

This comment has been minimized.

Copy link

@ralphcrisostomo ralphcrisostomo commented Aug 21, 2013

thanks!

@pvillega

This comment has been minimized.

Copy link

@pvillega pvillega commented Aug 31, 2013

thanks a million!

@barmmie

This comment has been minimized.

Copy link

@barmmie barmmie commented Oct 10, 2013

Thanks a zillion!!

@agozie

This comment has been minimized.

Copy link

@agozie agozie commented Oct 14, 2013

Thanks!!

@claudey

This comment has been minimized.

Copy link

@claudey claudey commented Nov 12, 2013

Thanks, @keeguon.

@sherah

This comment has been minimized.

Copy link

@sherah sherah commented Dec 16, 2013

thank you :)

@muhammadghazali

This comment has been minimized.

Copy link

@muhammadghazali muhammadghazali commented Dec 19, 2013

Massive!
Thank you from this commit

Regards.

@abrkn

This comment has been minimized.

Copy link

@abrkn abrkn 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

@ishanray ishanray commented Mar 5, 2014

thanks a lot

@kayalshri

This comment has been minimized.

Copy link

@kayalshri kayalshri 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

@tkrotoff tkrotoff 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

@Maidomax Maidomax 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

@nrsedat nrsedat commented Apr 5, 2014

Thanks a ton

@cameronroe

This comment has been minimized.

Copy link

@cameronroe cameronroe commented Apr 23, 2014

Thanks!

@ardrian

This comment has been minimized.

Copy link

@ardrian ardrian 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

@thinklinux thinklinux commented May 3, 2014

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

@thinklinux

This comment has been minimized.

Copy link

@thinklinux thinklinux 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

@danielflippance danielflippance commented May 5, 2014

Awesome, thanks!

@Neologist

This comment has been minimized.

Copy link

@Neologist Neologist commented May 8, 2014

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

@mledoze

This comment has been minimized.

Copy link

@mledoze mledoze 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

@bdabrowski bdabrowski commented Jun 2, 2014

Missing colon after Kosovo.

@IAmKio

This comment has been minimized.

Copy link

@IAmKio IAmKio 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

@mariayala mariayala commented Aug 18, 2014

Thanks!!!

@rtucker88

This comment has been minimized.

Copy link

@rtucker88 rtucker88 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

@manuelstofer manuelstofer 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

@matthewhll matthewhll 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

@tarraq tarraq 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

@chitranshu chitranshu 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

@fradaloisio fradaloisio 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

@samayo samayo 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

@wesww wesww 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

@uitrainemg uitrainemg commented Jun 27, 2015

Would love to have a wiki link along with country data

@anjijava16

This comment has been minimized.

Copy link

@anjijava16 anjijava16 commented Aug 30, 2015

Thanks dude :)

@aleross

This comment has been minimized.

Copy link

@aleross aleross 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

@josephrexme josephrexme commented Oct 1, 2015

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Oct 4, 2015

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

This will be very helpful

@pieter-biesemans

This comment has been minimized.

Copy link

@pieter-biesemans pieter-biesemans commented Oct 5, 2015

lifesaver! thanks everyone for original and fixes!

@salmasamiei

This comment has been minimized.

Copy link

@salmasamiei salmasamiei commented Oct 18, 2015

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

@josephrexme

This comment has been minimized.

Copy link

@josephrexme josephrexme commented Nov 27, 2015

You need to change the single quotes to double quotes

@saman

This comment has been minimized.

Copy link

@saman saman 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

@saman saman 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

@roadev roadev commented Jan 25, 2016

Thanks! :D

@turen1234

This comment has been minimized.

Copy link

@turen1234 turen1234 commented Feb 12, 2016

any 3 letter codes?

@samayo

This comment has been minimized.

Copy link

@samayo samayo commented Mar 18, 2016

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

@jcsky

This comment has been minimized.

Copy link

@jcsky jcsky commented Apr 14, 2016

Taiwan is not Province of China

@mrkala

This comment has been minimized.

Copy link

@mrkala mrkala commented May 11, 2016

is anyone having JSON for india's state list ?

@BrainCrumbz

This comment has been minimized.

Copy link

@BrainCrumbz BrainCrumbz 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

@jalamprea jalamprea 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

@slidenerd slidenerd 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

@lorey lorey 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

@meetmehdi meetmehdi commented Sep 1, 2016

Thanks it really helped a lot :)

@Compufreak345

This comment has been minimized.

Copy link

@Compufreak345 Compufreak345 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

@carmona carmona 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

@erikswed erikswed 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

@renanborgez renanborgez commented Sep 30, 2016

Thank you

@erikswed

This comment has been minimized.

Copy link

@erikswed erikswed 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

@vishnumohan89 vishnumohan89 commented Oct 13, 2016

Hey...

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

@BharatGangadiya32

This comment has been minimized.

Copy link

@BharatGangadiya32 BharatGangadiya32 commented Oct 26, 2016

please list of dialing code and country code

@keithpjolley

This comment has been minimized.

Copy link

@keithpjolley keithpjolley 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

@aakilfernandes aakilfernandes commented Jan 5, 2017

@aakilfernandes

This comment has been minimized.

Copy link

@aakilfernandes aakilfernandes 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' }
}
@rmkane

This comment has been minimized.

Copy link

@rmkane rmkane 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

@susana-garcia susana-garcia commented Jan 16, 2017

thank you all!

@LightMan

This comment has been minimized.

Copy link

@LightMan LightMan 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

@jorgeorpinel jorgeorpinel 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

@ryukato ryukato commented Apr 15, 2017

Thanks mate!

@akankshafb

This comment has been minimized.

Copy link

@akankshafb akankshafb 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

@rmuhire rmuhire 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

@hemanthkaipaa hemanthkaipaa 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

@doness doness 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

@xinthose xinthose commented Oct 10, 2017

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

@kaburkett

This comment has been minimized.

Copy link

@kaburkett kaburkett 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

@raisty raisty commented Dec 19, 2017

Why is Rwanda with capital letters?

@indiesk

This comment has been minimized.

Copy link

@indiesk indiesk 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

@umpirsky umpirsky 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

@kuroshio kuroshio 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

@Biglr Biglr commented Apr 30, 2018

Awesome, thanks!

@devlemire

This comment has been minimized.

Copy link

@devlemire devlemire commented May 24, 2018

Thanks for saving me some time!

@srerisso

This comment has been minimized.

Copy link

@srerisso srerisso commented Jun 12, 2018

Thanks. Great work

@marutiprasad

This comment has been minimized.

Copy link

@marutiprasad marutiprasad commented Jun 12, 2018

@pintop

This comment has been minimized.

Copy link

@pintop pintop commented Aug 5, 2018

Greatly Appreciated!

@dpmango

This comment has been minimized.

Copy link

@dpmango dpmango commented Aug 7, 2018

Thanks !

@vtjc2002

This comment has been minimized.

Copy link

@vtjc2002 vtjc2002 commented Aug 9, 2018

Thank you!

@besnikh

This comment has been minimized.

Copy link

@besnikh besnikh commented Aug 20, 2018

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

@besnikh

This comment has been minimized.

Copy link

@besnikh besnikh 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

@xergioalex xergioalex 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

@taurcandance taurcandance commented Sep 28, 2018

thanks to all. I found what I need

@briteside

This comment has been minimized.

Copy link

@briteside briteside 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

@8eecf0d2 8eecf0d2 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":