country codes list

List of useful country codes for your flutter project (telephone and ISO codes)

While working on various projects we need sometimes a country code to be used. Various country flag widgets use country codes, so the List of useful country codes would be handy. I also created a post with a few plugins that allow adding a country flag to your project. That post can be found here.

Below I dropped a list of country codes which might be useful to someone.

The country codes themselves are from https://countrycode.org/ so if you click the county name you will be redirected to the specific country page. The information on the specific page might not be really related to your app or game, but sometimes it could be useful.

What is the Telephone Country Code?

A telephone country code is a series of digits that are used to make telephone calls to other countries. The country code is used to identify the country that a phone number belongs to, and is typically required when making an international call.

For example, if you want to call a phone number in the United States from another country, you would need to dial the telephone country code for the United States, which is +1. The plus sign indicates that it is an international call, and the 1 is the code for the United States.

There are many different telephone country codes, and they are assigned to countries and territories by the International Telecommunication Union (ITU). The ITU is a United Nations agency that is responsible for coordinating the international exchange of information and communication technologies.

To find the telephone country code for a particular country, you can look it up in a list of country codes, or you can use an online tool such as the one provided by the ITU. You can also find the country code by looking at the phone number itself.

International phone numbers typically start with the country code, followed by the area code and local number. For example, a phone number in the United States might be written as +1-212-555-1212, where the +1 is the country code, the 212 is the area code, and the 555-1212 is the local number.

Where to use the Telephone Country Codes in Flutter

In the Flutter programming framework, you can use telephone country codes in a number of ways. Here are a few examples:

  1. Form validation: You can use telephone country codes to validate phone numbers or other forms of contact information. For example, you might use the telephone country code to ensure that a phone number is in the correct format for the user’s country.
  2. Geolocation: You can use telephone country codes to determine the user’s location or to show content based on the user’s location. For example, you might use the telephone country code to show the user a map of their country or to show them local news or events.
  3. Internationalization: You can use telephone country codes to enable users to make international calls from within your app. For example, you might use the telephone country code to allow users to select a country and enter a phone number, and then use the code to make the call.

To use telephone country codes in a Flutter app, you can either use a library that provides a list of country codes, or you can manually create a list of codes and use it in your app. For example, you might create a list of country codes and names, and use it to populate a dropdown menu or a list of countries for the user to select from.

What is the Country Code (ISO)?

An ISO country code is a code that is used to identify countries, territories, and other geographic entities. They are developed and maintained by the International Organization for Standardization (ISO). There are three types of ISO country codes:

  1. ISO 3166-1 alpha-2 codes: These are two-letter codes that are used to represent countries and territories. For example, the ISO 3166-1 alpha-2 code for the United States is “US”.
  2. ISO 3166-1 alpha-3 codes: These are three-letter codes that are used to represent countries and territories. For example, the ISO 3166-1 alpha-3 code for the United States is “USA”.
  3. ISO 3166-3 codes: These are four-letter codes that are used to represent countries and territories that are no longer in existence or have been replaced by a new country or territory. For example, the ISO 3166-3 code for the Federal Republic of Yugoslavia, which no longer exists, is “YUG”.

ISO country codes are used for a variety of purposes, such as identifying countries on websites, in databases, and in other information systems. They are also used in international shipping and logistics, and in other industries where it is important to be able to accurately identify different countries and territories.

Where to use the Country Codes in Flutter

In the Flutter programming framework, you can use country codes in a number of ways. Here are a few examples:

  1. Localization: You can use country codes to display content in different languages or to customize the content based on the user’s location. For example, you might use the country code to determine which language to display your app in or to show different content to users in different countries.
  2. Form validation: You can use country codes to validate phone numbers or other forms of contact information. For example, you might use the country code to ensure that a phone number is in the correct format for the user’s country.
  3. Geolocation: You can use country codes to determine the user’s location or to show content based on the user’s location. For example, you might use the country code to show the user a map of their country or to show them local news or events.

To use country codes in a Flutter app, you can either use a library that provides a list of country codes, or you can manually create a list of codes and use it in your app. For example, you might create a list of country codes and names, and use it to populate a dropdown menu or a list of countries for the user to select from.

List of country codes for Flutter

COUNTRYTELEPHONE COUNTRY CODEISO CODES
Afghanistan93AF / AFG
Albania355AL / ALB
Algeria213DZ / DZA
American Samoa1-684AS / ASM
Andorra376AD / AND
Angola244AO / AGO
Anguilla1-264AI / AIA
Antarctica672AQ / ATA
Antigua and Barbuda1-268AG / ATG
Argentina54AR / ARG
Armenia374AM / ARM
Aruba297AW / ABW
Australia61AU / AUS
Austria43AT / AUT
Azerbaijan994AZ / AZE
Bahamas1-242BS / BHS
Bahrain973BH / BHR
Bangladesh880BD / BGD
Barbados1-246BB / BRB
Belarus375BY / BLR
Belgium32BE / BEL
Belize501BZ / BLZ
Benin229BJ / BEN
Bermuda1-441BM / BMU
Bhutan975BT / BTN
Bolivia591BO / BOL
Bosnia and Herzegovina387BA / BIH
Botswana267BW / BWA
Brazil55BR / BRA
British Indian Ocean Territory246IO / IOT
British Virgin Islands1-284VG / VGB
Brunei673BN / BRN
Bulgaria359BG / BGR
Burkina Faso226BF / BFA
Burundi257BI / BDI
Cambodia855KH / KHM
Cameroon237CM / CMR
Canada1CA / CAN
Cape Verde238CV / CPV
Cayman Islands1-345KY / CYM
Central African Republic236CF / CAF
Chad235TD / TCD
Chile56CL / CHL
China86CN / CHN
Christmas Island61CX / CXR
Cocos Islands61CC / CCK
Colombia57CO / COL
Comoros269KM / COM
Cook Islands682CK / COK
Costa Rica506CR / CRI
Croatia385HR / HRV
Cuba53CU / CUB
Curacao599CW / CUW
Cyprus357CY / CYP
Czech Republic420CZ / CZE
Democratic Republic of the Congo243CD / COD
Denmark45DK / DNK
Djibouti253DJ / DJI
Dominica1-767DM / DMA
Dominican Republic1-809, 1-829, 1-849DO / DOM
East Timor670TL / TLS
Ecuador593EC / ECU
Egypt20EG / EGY
El Salvador503SV / SLV
Equatorial Guinea240GQ / GNQ
Eritrea291ER / ERI
Estonia372EE / EST
Ethiopia251ET / ETH
Falkland Islands500FK / FLK
Faroe Islands298FO / FRO
Fiji679FJ / FJI
Finland358FI / FIN
France33FR / FRA
French Polynesia689PF / PYF
Gabon241GA / GAB
Gambia220GM / GMB
Georgia995GE / GEO
Germany49DE / DEU
Ghana233GH / GHA
Gibraltar350GI / GIB
Greece30GR / GRC
Greenland299GL / GRL
Grenada1-473GD / GRD
Guam1-671GU / GUM
Guatemala502GT / GTM
Guernsey44-1481GG / GGY
Guinea224GN / GIN
Guinea-Bissau245GW / GNB
Guyana592GY / GUY
Haiti509HT / HTI
Honduras504HN / HND
Hong Kong852HK / HKG
Hungary36HU / HUN
Iceland354IS / ISL
India91IN / IND
Indonesia62ID / IDN
Iran98IR / IRN
Iraq964IQ / IRQ
Ireland353IE / IRL
Isle of Man44-1624IM / IMN
Israel972IL / ISR
Italy39IT / ITA
Ivory Coast225CI / CIV
Jamaica1-876JM / JAM
Japan81JP / JPN
Jersey44-1534JE / JEY
Jordan962JO / JOR
Kazakhstan7KZ / KAZ
Kenya254KE / KEN
Kiribati686KI / KIR
Kosovo383XK / XKX
Kuwait965KW / KWT
Kyrgyzstan996KG / KGZ
Laos856LA / LAO
Latvia371LV / LVA
Lebanon961LB / LBN
Lesotho266LS / LSO
Liberia231LR / LBR
Libya218LY / LBY
Liechtenstein423LI / LIE
Lithuania370LT / LTU
Luxembourg352LU / LUX
Macau853MO / MAC
Macedonia389MK / MKD
Madagascar261MG / MDG
Malawi265MW / MWI
Malaysia60MY / MYS
Maldives960MV / MDV
Mali223ML / MLI
Malta356MT / MLT
Marshall Islands692MH / MHL
Mauritania222MR / MRT
Mauritius230MU / MUS
Mayotte262YT / MYT
Mexico52MX / MEX
Micronesia691FM / FSM
Moldova373MD / MDA
Monaco377MC / MCO
Mongolia976MN / MNG
Montenegro382ME / MNE
Montserrat1-664MS / MSR
Morocco212MA / MAR
Mozambique258MZ / MOZ
Myanmar95MM / MMR
Namibia264NA / NAM
Nauru674NR / NRU
Nepal977NP / NPL
Netherlands31NL / NLD
Netherlands Antilles599AN / ANT
New Caledonia687NC / NCL
New Zealand64NZ / NZL
Nicaragua505NI / NIC
Niger227NE / NER
Nigeria234NG / NGA
Niue683NU / NIU
North Korea850KP / PRK
Northern Mariana Islands1-670MP / MNP
Norway47NO / NOR
Oman968OM / OMN
Pakistan92PK / PAK
Palau680PW / PLW
Palestine970PS / PSE
Panama507PA / PAN
Papua New Guinea675PG / PNG
Paraguay595PY / PRY
Peru51PE / PER
Philippines63PH / PHL
Pitcairn64PN / PCN
Poland48PL / POL
Portugal351PT / PRT
Puerto Rico1-787, 1-939PR / PRI
Qatar974QA / QAT
Republic of the Congo242CG / COG
Reunion262RE / REU
Romania40RO / ROU
Russia7RU / RUS
Rwanda250RW / RWA
Saint Barthelemy590BL / BLM
Saint Helena290SH / SHN
Saint Kitts and Nevis1-869KN / KNA
Saint Lucia1-758LC / LCA
Saint Martin590MF / MAF
Saint Pierre and Miquelon508PM / SPM
Saint Vincent and the Grenadines1-784VC / VCT
Samoa685WS / WSM
San Marino378SM / SMR
Sao Tome and Principe239ST / STP
Saudi Arabia966SA / SAU
Senegal221SN / SEN
Serbia381RS / SRB
Seychelles248SC / SYC
Sierra Leone232SL / SLE
Singapore65SG / SGP
Sint Maarten1-721SX / SXM
Slovakia421SK / SVK
Slovenia386SI / SVN
Solomon Islands677SB / SLB
Somalia252SO / SOM
South Africa27ZA / ZAF
South Korea82KR / KOR
South Sudan211SS / SSD
Spain34ES / ESP
Sri Lanka94LK / LKA
Sudan249SD / SDN
Suriname597SR / SUR
Svalbard and Jan Mayen47SJ / SJM
Swaziland268SZ / SWZ
Sweden46SE / SWE
Switzerland41CH / CHE
Syria963SY / SYR
Taiwan886TW / TWN
Tajikistan992TJ / TJK
Tanzania255TZ / TZA
Thailand66TH / THA
Togo228TG / TGO
Tokelau690TK / TKL
Tonga676TO / TON
Trinidad and Tobago1-868TT / TTO
Tunisia216TN / TUN
Turkey90TR / TUR
Turkmenistan993TM / TKM
Turks and Caicos Islands1-649TC / TCA
Tuvalu688TV / TUV
U.S. Virgin Islands1-340VI / VIR
Uganda256UG / UGA
Ukraine380UA / UKR
United Arab Emirates971AE / ARE
United Kingdom44GB / GBR
United States1US / USA
Uruguay598UY / URY
Uzbekistan998UZ / UZB
Vanuatu678VU / VUT
Vatican379VA / VAT
Venezuela58VE / VEN
Vietnam84VN / VNM
Wallis and Futuna681WF / WLF
Western Sahara212EH / ESH
Yemen967YE / YEM
Zambia260ZM / ZMB
Zimbabwe263ZW / ZWE