World Major Cities Database

World Major Cities Database

Drop Down List Source Codes Inclusive

$399.95 per year

Latest release: June, 2026

GeoDataSource™ World Major Cities is a database of worldwide major cities that suitable for any applications requiring a comprehensive list of country code and name, region/state/province name, city name, latitude, longitude and ZIP code. Most major cities in the world are included in this database in TSV (tab separated values) format, and can be easily access or load into a relational database for lookup.

This database enables a web developer to easily implement drop down lists, or any other solutions, that requires the list of countries, states and cities. Sample codes written in ASP, .NET and PHP are provided in the package to generate city names drop down list by countries and states. The sample codes enable a developer to rapidly deploy and utilize this package. Developer can apply this data for other purposes such as data validation, auto form filling and etcs.

Sample Data
Advantages

  • Updated Monthly
  • Most Accurate and Up-to-Date Source of Data
  • Sample Codes of Drop Down List in Several Programming Languages
  • Covers Major Cities to Simplify Data Processing
  • Instant Download Upon Subscription
  • Free Customer Support
  • Many Happy Customers

Requirements

  • Internet connection capable of downloading 609.16 kB compressed ZIP data file
  • 609.16 kB free disk space for compressed file
  • 2.38 MB free disk space for uncompressed data files
  • WinZIP or other similar archive extraction utility
  • SQL Server, Oracle, MySQL, PostgreSQL or other database software application capable of importing database records from a standard tab-delimited ASCII text file and sufficient disk space to import the database

Specifications

Field Name Description Type Length
country_code ISO 3166 Primary Country Code. A two alphabetic character ISO 3166 Primary Country Code uniquely identifying a geopolitical entity (countries, dependencies, and areas of special sovereignty). character 2
country_name ISO 3166 Primary Country Name. The full name of ISO 3166 Primary Country Name uniquely identifying a geopolitical entity (countries, dependencies, and areas of special sovereignty). character 200
region_name Region/State Full Name. The full name is a complete region name which identifies the first-order administrative division. It is comprised of the specific name, generic name, and any articles or prepositions. character 200
city_name City Full Name. The full name is a complete city name which identifies the named feature. It is comprised of the specific name, generic name, and any articles or prepositions. character 200
latitude Latitude in Decimal Degree. Latitude of the city in ± decimal degrees (WGS84).

no sign (+) = North;
negative sign (-) = South.
float 10
longitude Longitude in Decimal Degree. Longitude of the city in ± decimal degrees (WGS84).

no sign (+) = East;
negative sign (-) = West.
float 10
zip_code City ZIP Code. ZIP/Postal code of the city. character 50

Total Cities Breakdown By Country

Country Name Number of Cities
Afghanistan 56
Aland Islands 4
Albania 22
Algeria 294
American Samoa 3
Show More »
Andorra 2
Angola 100
Anguilla 1
Antigua and Barbuda 1
Argentina 253
Armenia 29
Aruba 4
Australia 310
Austria 62
Azerbaijan 57
Bahamas 4
Bahrain 8
Bangladesh 126
Barbados 1
Belarus 59
Belgium 214
Belize 3
Benin 65
Bermuda 4
Bhutan 4
Bolivia (Plurinational State of) 36
Bonaire, Sint Eustatius and Saba 4
Bosnia and Herzegovina 21
Botswana 25
Brazil 2138
British Indian Ocean Territory 2
Brunei Darussalam 8
Bulgaria 56
Burkina Faso 73
Burundi 12
Cabo Verde 4
Cambodia 46
Cameroon 84
Canada 492
Cayman Islands 2
Central African Republic 30
Chad 44
Chile 144
China 1830
Christmas Island 1
Cocos (Keeling) Islands 2
Colombia 307
Comoros 3
Congo 22
Congo (the Democratic Republic of the) 108
Cook Islands 2
Costa Rica 36
Cote d'Ivoire 173
Croatia 26
Cuba 138
Curacao 2
Cyprus 16
Czechia 124
Denmark 64
Djibouti 6
Dominica 1
Dominican Republic 49
Ecuador 71
Egypt 220
El Salvador 34
Equatorial Guinea 3
Eritrea 7
Estonia 7
Eswatini 2
Ethiopia 212
Falkland Islands [Malvinas] 2
Faroe Islands 1
Fiji 6
Finland 99
France 671
French Guiana 5
French Polynesia 4
French Southern Territories 3
Gabon 13
Gambia 32
Georgia 17
Germany 1077
Ghana 95
Gibraltar 1
Greece 115
Greenland 1
Grenada 9
Guadeloupe 9
Guam 8
Guatemala 101
Guernsey 1
Guinea 45
Guinea-Bissau 4
Guyana 3
Haiti 29
Holy See 1
Honduras 23
Hong Kong 141
Hungary 138
Iceland 6
India 3527
Indonesia 313
Iran (Islamic Republic of) 349
Iraq 100
Ireland 39
Isle of Man 1
Israel 106
Italy 690
Jamaica 11
Japan 1297
Jersey 1
Jordan 34
Kazakhstan 81
Kenya 118
Kiribati 1
Korea (the Democratic People's Republic of) 95
Korea (the Republic of) 150
Kuwait 18
Kyrgyzstan 30
Lao People's Democratic Republic 18
Latvia 14
Lebanon 18
Lesotho 11
Liberia 15
Libya 59
Liechtenstein 6
Lithuania 33
Luxembourg 3
Macao 6
Madagascar 98
Malawi 23
Malaysia 349
Maldives 1
Mali 57
Malta 6
Marshall Islands 2
Martinique 8
Mauritania 25
Mauritius 14
Mayotte 6
Mexico 608
Micronesia (Federated States of) 1
Moldova (the Republic of) 22
Monaco 2
Mongolia 23
Montenegro 8
Montserrat 2
Morocco 174
Mozambique 60
Myanmar 159
Namibia 19
Nauru 5
Nepal 44
Netherlands (Kingdom of the) 243
New Caledonia 3
New Zealand 58
Nicaragua 37
Niger 40
Nigeria 255
Niue 3
Norfolk Island 2
North Macedonia 38
Northern Mariana Islands 2
Norway 39
Oman 27
Pakistan 333
Palau 3
Palestine, State of 43
Panama 27
Papua New Guinea 13
Paraguay 27
Peru 129
Philippines 456
Pitcairn 1
Poland 352
Portugal 170
Puerto Rico 21
Qatar 27
Reunion 14
Romania 135
Russian Federation 1047
Rwanda 32
Saint Barthelemy 1
Saint Helena, Ascension and Tristan da Cunha 4
Saint Kitts and Nevis 1
Saint Lucia 2
Saint Martin (French part) 6
Saint Pierre and Miquelon 2
Saint Vincent and the Grenadines 2
Samoa 1
San Marino 5
Sao Tome and Principe 1
Saudi Arabia 91
Senegal 70
Serbia 71
Seychelles 1
Sierra Leone 10
Singapore 64
Sint Maarten (Dutch part) 3
Slovakia 60
Slovenia 9
Solomon Islands 6
Somalia 41
South Africa 308
South Sudan 15
Spain 715
Sri Lanka 59
Sudan 75
Suriname 12
Svalbard and Jan Mayen 3
Sweden 109
Switzerland 96
Syrian Arab Republic 88
Taiwan (Province of China) 55
Tajikistan 29
Tanzania, the United Republic of 215
Thailand 325
Timor-Leste 9
Togo 19
Tokelau 2
Tonga 1
Trinidad and Tobago 14
Tunisia 126
Turkiye 416
Turkmenistan 33
Turks and Caicos Islands 1
Tuvalu 1
Uganda 119
Ukraine 362
United Arab Emirates 66
United Kingdom of Great Britain and Northern Ireland 818
United States Minor Outlying Islands 2
United States of America 3411
Uruguay 31
Uzbekistan 109
Vanuatu 1
Venezuela (Bolivarian Republic of) 211
Viet Nam 178
Virgin Islands (British) 1
Virgin Islands (U.S.) 2
Western Sahara 4
Yemen 24
Zambia 72
Zimbabwe 30

SQL Statement
DROP DATABASE IF EXISTS `world_major_city_db`;

CREATE DATABASE `world_major_city_db`;

DROP TABLE IF EXISTS `world_major_city_db`.`countrystatecity`;

-- Create table "countrystatecity"
CREATE TABLE `countrystatecity` (
  `country_code` varchar(2),
  `country_name` varchar(64),
  `region_name` varchar(128),
  `city_name` varchar(128),
  `latitude` float,
  `longitude` float,
  `zip_code` varchar(50),
  PRIMARY KEY (`country_code`,`region_name`,`city_name`)
) CHARSET=utf8 COLLATE=utf8_bin;

-- Load data into table
LOAD DATA LOCAL INFILE 'C:\\[your folder path to the data file]\\GEODATASOURCE-WORLD-MAJOR-CITIES.TXT'
INTO TABLE `world_major_city_db`.`countrystatecity`
CHARACTER SET utf8
FIELDS TERMINATED BY '\t'
LINES TERMINATED BY '\r\n';
CREATE DATABASE [world_major_city_db]
GO

USE [world_major_city_db]
GO

-- Create table "countrystatecity"
CREATE TABLE [world_major_city_db].[dbo].[countrystatecity](
	[country_code] nvarchar(2) NOT NULL,
	[country_name] nvarchar(200) NOT NULL,
	[region_name] nvarchar(200) NOT NULL,
	[city_name] nvarchar(200) NOT NULL,
	[latitude] float NOT NULL,
	[longitude] float NOT NULL,
	[zip_code] nvarchar(200) NOT NULL
) ON [PRIMARY]
GO

-- Load data into table
BULK INSERT [world_major_city_db].[dbo].[countrystatecity]
FROM 'C:\[your folder path to the data file]\GEODATASOURCE-WORLD-MAJOR-CITIES.TXT' 
WITH 
( 
	CODEPAGE = '65001',
	FIELDTERMINATOR = '\t', 
	ROWTERMINATOR = '\n'
)
GO
Demo
Note: For demo, only first 5 characters of the city names will be shown.
Country-Region Dropdown Menu

Free dropdown menu javascript allowing you to implement the country and region dropdown selection with ease. Learn more at Country-Region Dropdown Menu (Free)

Licensing

Single Server License

All prices mentioned in this page are for "Single Server License" unless specified otherwise. "Single Server License" can be used for 1 database server in a commercial environment with single or multiple connected clients.