Data · World cities
World city database with latitude and longitude
Every city and town in the world with its country, region, population and time zone, as CSV, Excel and SQL. Free for the 51,032 bigger cities; $99 for 2,513,129 cities, towns and villages; $199 for every populated place, 5,001,711 of them.
Versions
Pick the version you need
Pay once and keep the files. Secure checkout by FastSpring: cards and PayPal. No Geloky account needed.
A look inside
Six rows from the free version
Real rows, as they come in the file: GeoNames’ places as of 4 December 2026, with their countries’ and regions’ names. The capital column says primary for a country’s capital and admin for a region’s.
| city | country | admin_name | lat | lng | population | timezone | capital |
|---|---|---|---|---|---|---|---|
| Tokyo | Japan | Tokyo | 35.6895 | 139.69171 | 9,733,276 | Asia/Tokyo | primary |
| São Paulo | Brazil | São Paulo | -23.5475 | -46.63611 | 12,400,232 | America/Sao_Paulo | admin |
| Kraków | Poland | Lesser Poland | 50.06143 | 19.93658 | 816,614 | Europe/Warsaw | admin |
| Lagos | Nigeria | Lagos | 6.45407 | 3.39467 | 15,388,000 | Africa/Lagos | minor |
| Sydney | Australia | New South Wales | -33.86785 | 151.20732 | 5,638,830 | Australia/Sydney | admin |
| Toronto | Canada | Ontario | 43.65333 | -79.38389 | 2,794,356 | America/Toronto | admin |
Columns
What each version holds
In every version
| city, city_ascii | The name, Kraków, and the same in plain letters: Krakow |
|---|---|
| lat, lng | The place’s point |
| country, iso2, iso3 | The country’s name and its two- and three-letter ISO codes |
| admin_name | The state, province or region it lies in |
| capital | primary for a country’s capital, admin for a region’s, minor for a county’s or district’s; empty for the rest |
| population | People living there, where GeoNames records it |
| timezone | The time zone’s name, such as Europe/Warsaw |
| geonames_id | GeoNames’ id for the place, to join it to other data |
Pro and Complete add
| admin2_name | The county or district it lies in, where the country has them |
|---|---|
| continent | Europe, Asia, Africa, North America, South America or Oceania |
| feature_code | GeoNames’ kind of place: a town, a seat of a division, a farm village, a locality |
| settlement | The kind of area around it, by the European Commission’s Degree of Urbanisation: city, dense or semi-dense town, suburban, village, dispersed rural or mostly uninhabited |
| elevation | Metres above sea level |
| utc_offset, dst | Hours from UTC in standard time, and whether the clocks change in summer |
Complete adds places, not columns
Every populated place GeoNames lists, 5,001,711 in all: Pro’s cities, towns and villages, and every hamlet, farm and remote place where people live. Neighbourhoods GeoNames marks as parts of a city are left out, and so are historical and abandoned places. Too many rows for Excel: Complete comes as CSV and SQL.
Sources
Where the data comes from
GeoNames
Every place, its name, point, population, elevation and time zone, and the names of its country and divisions: from GeoNames, the open gazetteer of the world, under Creative Commons Attribution 4.0.
European Commission
Which places are cities, towns, villages or countryside: its Global Human Settlement Layer maps the Degree of Urbanisation of every square kilometre, under Creative Commons Attribution 4.0.
What we add
We keep the places people live in and leave out neighbourhoods and historical places, join each place’s country, region and district, mark the capitals, add the UTC offset and daylight saving, and check every file before each quarterly release.
Free version
Free for any project, with a link
Use it anywhere, commercial projects included, as long as a page people can see links to this one and credits GeoNames. Licence: Creative Commons Attribution 4.0.
Pro and Complete
No link to us, a credit to GeoNames
Use it in any project, websites and apps included, with no link to this page. The places come from GeoNames, whose licence, CC BY 4.0, asks for a credit and lets anyone share them: what you pay for is the work, the extra places and columns, and a year of updates. Read the data licence
No account needed
How buying works
Pay on this page
The checkout opens right here: card or PayPal, through FastSpring.
Download at once
This page turns into your download page, and a private link to it comes by email.
Updates for 12 months
Each new release arrives at the same link, and we email you when it is out.
Lost your link? Email me my downloads · How to use the files
FAQ
World city database questions
Something else? Write to hello@geloky.com — a person answers within a day.
Free has the 51,032 bigger cities: every place of 7,500 people or more, and every country’s and region’s capital. Pro has 2,513,129 cities, towns and villages: every place in or within about a kilometre of a village, town or city, as the European Commission’s Degree of Urbanisation maps them, every place of 500 people or more, and every seat of a county or district. Complete has every populated place GeoNames lists, 5,001,711 of them, from 248 countries and territories.
From GeoNames, the open gazetteer of the world, under Creative Commons Attribution 4.0, and the European Commission’s settlement grid, which tells a village from a hamlet. We keep the places people live in, join each one’s country, region and district, mark the capitals, add the UTC offset and daylight saving, and check every file before each release.
GeoNames records the population of most cities and towns, from census offices and other sources, but not of many villages. Some figures are a city’s own, some its urban area’s.
Excel holds about a million rows, and Pro has 2,513,129. The CSV opens in a database or in a tool made for big files, and the SQL files load into MySQL or PostgreSQL with one command. The free version comes in Excel too.
Yes, in every version, commercial projects included, with a credit to GeoNames, as its licence asks. The free version also needs a visible link to this page; Pro and Complete need none.
Every quarter, from GeoNames’ newest data. Pro and Complete bring every new release for 12 months.
Yes, within 14 days of buying. Write to hello@geloky.com.
Have addresses, not city names? Batch geocoding finds the coordinates of every address in a spreadsheet, in any country. With the free plan, the first 100 rows every day are free.
Your first 100 rows are free. Every day.
Free plan, no credit card · See your results on a map before you pay