Included with a Data Pass

31,772 cities worldwide, with population and coordinates.

Every city and town of 15,000 people or more, and every national capital and seat of government whatever its size, in 244 countries and territories, with its country, region, continent, population, coordinates, elevation and time zone. National and regional capitals are marked.

  • City pickers. Fill a city field for users anywhere in the world.
  • Maps. Plot cities or find the nearest one with the coordinates.

One pass covers every dataset and collection for 365 days. No automatic renewal.

Rows
31,772
Columns
15
Formats
CSV, JSON, XML

As of: GeoNames cities of 15,000 or more, as of October 23, 2026. GeoNames updates continuously; this is a dated snapshot.

Use these in the test data generator

Preview

A few rows from the file

Name Country Continent Population Latitude Longitude TimeZone
Beijing China Asia 18960744 39.9075 116.39723 Asia/Shanghai
Kinshasa Democratic Republic of the Congo Africa 16000000 -4.32758 15.31357 Africa/Kinshasa
Mexico City Mexico North America 12294193 19.42847 -99.12766 America/Mexico_City
Moscow Russia Europe 10381222 55.75204 37.61781 Europe/Moscow
Dhaka Bangladesh Asia 10356500 23.7104 90.40744 Asia/Dhaka
Seoul South Korea Asia 10349312 37.566 126.9784 Asia/Seoul
Tokyo Japan Asia 9733276 35.6895 139.69171 Asia/Tokyo
Cairo Egypt Africa 9606916 30.06263 31.24967 Africa/Cairo

Field guide

What’s in each row

The city

GeoNames ID, name, and the name without accents.

GeoNameID Name AsciiName

Where it is

Country code and name, region, continent, coordinates, elevation in meters, and time zone.

CountryCode Country Region Continent Latitude Longitude ElevationMeters TimeZone

Size and status

Population, and whether it is a national or regional capital.

Population IsCapital IsRegionCapital

What we prepared

The work already done

What we did to the source

We took the GeoNames cities15000 file, which lists every city of 15,000 people or more plus capitals and seats of government of any size. We left out sections of cities, such as neighborhoods and boroughs, historical, abandoned or destroyed places, and three small entries tagged as seats of government that are not. We added each city’s country name and continent from the GeoNames country file, matched on the country code, and its region name from the GeoNames first-level division file. Elevation is GeoNames’ own figure where it has one and the value from its terrain model otherwise, and it is left empty when neither is given. We marked national capitals and the capitals of first-level regions from the GeoNames feature code and sorted the rows from the largest population to the smallest.

How we check it

After loading we check the number of rows, that the accented í in Reykjavík is stored as the right character, and that only two places under 15,000 people are kept without being a national capital.

Good to know

Before you use it

  • Population is GeoNames’ figure for the city itself; sources and years vary by country.
  • Region is the first-level division: a state, province, prefecture or the like. AsciiName is the name without accents, for searching.
  • Neighborhoods and parts of a city are left out, so each row is a city or town of its own.
  • If you publish the data or build it into a product, credit GeoNames as the licence requires.
  • In every format, dates are written as yyyy-MM-dd, and yes/no values as true or false. An empty value means nothing was recorded.

Source

GeoNames
CC BY 4.0

Credit to include: Contains data from GeoNames (https://www.geonames.org/), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).

Where it comes in handy

What you can build with it

  • City pickers. Fill a city field for users anywhere in the world.
  • Maps. Plot cities or find the nearest one with the coordinates.
  • Time zones. Show a city’s local time with its time zone.
  • Analysis. Compare city sizes across countries and continents.

Access

Try it free. Get all of it with a pass.

Free sample

  • Every 100th city
  • A README with the field guide and source