Understanding calling codes

See the list ordered by country here.

This document is meant to explain to programmers et al how the phone calling codes work, and any information needed on parsing such data

for a better understanding, you might want to visit the wikipedia page, on this page, only the need to know for website and programming purposes data is included, when the calling codes geography is not important.

1: North america (Including canada), and unincorporated territories of the United States, there are area codes following the 1 shown below.
2X: Egypt and South Africa
2XX: Africa, Nothing will be 20x or 27x
3X: Sone countries in West Europe
3XX: Europe, east and west, nothing will be in the 30X, 31X, 32X, 33X, 34X, 36X, 39X (Used above)
4X: Europe
42X, like 3XX, do not share a prefix with the category right above
5X: South Americas
5XX: 50X and 59X, also South Americas
6X: (60, 61, 62, 63, 64, 65, 66)
6XX: 67X, 68X, 69X
7: Russia and Kazakhstan
8X: China is 86
8XX: Other Asian countries
9X: 90, 91, 92, 93, 94, 95, 98,
9XX: Other countries in the middle east, 96X, 97X, 99X

The following is the complete list, comma separated so that you can easily import it into your database or create an array from it. The last column can be missing and is mainly for unincorporated territories of the United States

 

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

Session Information