Skip to content

Instantly share code, notes, and snippets.

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