NEW Geloky now works inside Claude, ChatGPT and Cursor. See how Geloky inside Claude & ChatGPT →

Data · US cities

US city database with latitude and longitude

Every city, town and village with its county, population, time zone and ZIP codes, as CSV, Excel, SQL and JSON. Free for the 32,054 places the Census Bureau counts; $49 for 105,117 with the small communities.

Versions

Pick the version you need

Free

$0

The 32,054 Census places of the 50 states and DC: cities, towns, villages and CDPs, for any project with a link to this page.

  • Latitude and longitude
  • County, state and place code
  • Population and time zone
  • Each place’s ZIP codes
  • CSV and Excel
Download free

Pro

$49 one-time

105,117 places: the Census places of every state and territory, and 72,492 smaller communities. No link needed.

  • Everything in Free
  • Small communities USGS names
  • Puerto Rico and the Island Areas too
  • Every county a place lies in
  • UTC offset, daylight saving, metro area
  • Land area and density
  • CSV, Excel, SQL and JSON
  • Updates for 12 months

Complete

$99 one-time

Pro, plus who lives there and the outline of every Census place.

  • Everything in Pro
  • Income, age, home value and rent
  • Education, housing and work
  • Place outlines as GeoJSON and KML
  • Updates for 12 months

All three US databases

Need ZIP codes and counties too?

Get ZIP codes, counties and cities together, each in its Complete version. Each database comes with its own downloads and 12 months of updates.

$199 one-timeinstead of $297

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: the Census Bureau’s 2025 places and its 2020–2024 population estimates. A CDP is a community the Census Bureau counts without a government of its own.

citytypestate_idcounty_namelatlngpopulationtimezonezip_count
ChicagocityILCook41.837045-87.6849392,711,226America/Chicago88
Los AngelescityCALos Angeles34.019394-118.4108253,857,263America/Los_Angeles150
HoustoncityTXHarris29.785743-95.3888062,328,253America/Chicago201
HonoluluCDPHIHonolulu21.324347-157.84764345,482Pacific/Honolulu41
ArlingtonCDPVAArlington38.878337-77.100703236,254America/New_York28
NashvillecityTNDavidson36.1718-86.785002690,130America/Chicago51

Columns

What each version holds

In every version

city, city_asciiThe name, Chicago, and the same without accents: Canon City for Cañon City
typeCity, town, village, borough or CDP (a community the Census Bureau counts, with no government of its own)
state_id, state_nameThe two-letter state code and the state’s name
county_fips, county_nameThe county the place’s centre lies in, with its 5-digit FIPS code
lat, lngThe centre point of the place, from the Census Bureau
populationPeople living there: the Census Bureau’s 2020–2024 estimate
timezoneThe time zone’s name, such as America/Chicago
zip_count, zip_codesThe place’s ZIP codes, from Geloky’s ZIP code database: its ZIP areas and its PO box ZIP codes
place_fips, gnis_idThe Census place code, 1714000 for Chicago, to join Census data, and USGS’s id for the place

Pro adds

incorporatedTRUE for a city, town, village or borough; FALSE for a CDP or a community
county_fips_all, county_names_allEvery county the place lies in: New York City’s five, for one
land_km2, water_km2, densityLand and water area in square kilometres, and people per square kilometre
utc_offset, dstHours from UTC in winter, and whether the clocks change in summer
metro_code, metro_name, metro_typeThe metro or micro area (CBSA), such as Chicago-Naperville-Elgin

Complete adds

Figures from the Census Bureau’s American Community Survey, 2020–2024, for every Census place.

households, persons_per_householdOccupied homes, and the average number of people in each
age_medianThe median age of the people living there
income_median, income_100k_shareMedian household income, and the share of households earning $100,000 or more
home_value_median, rent_medianThe median value of owned homes and the median rent
homeowners_shareThe share of households that own their home
college_shareThe share of adults with a bachelor’s degree or higher
unemployment_rate, poverty_shareThe unemployment rate and the share of people below the poverty line
commute_minutesThe average time to get to work
Outlines (separate files)The shape of every Census place, as GeoJSON and KML

Sources

Where the data comes from

U.S. Census Bureau

Cities, towns and CDPs, their centre points, counties, land and water area, outlines, population and the survey figures in Complete.

U.S. Geological Survey

The smaller communities in Pro, from its Geographic Names Information System, with their points and counties.

National Weather Service

The time zone of every place, with daylight saving.

The ZIP codes come from Geloky’s ZIP code database, built on the Postal Service’s crosswalk published by HUD. This product uses the HUD User Data API but is not endorsed or certified by HUD User. Some of the ZIP codes come from GeoNames (CC BY 4.0).

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. Licence: Creative Commons Attribution 4.0.

Pro and Complete

Yours to use across your company

Use it in your company’s projects, websites and apps, with no link. Just don’t publish or resell the files themselves. 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

City database questions

Something else? Write to hello@geloky.com — a person answers within a day.

Free has the 32,054 places the Census Bureau counts in the 50 states and DC: every city, town, village and borough, and every CDP, a community it counts though it has no government of its own. Pro and Complete add Puerto Rico’s and the Island Areas’ places and 72,492 smaller communities USGS names, 105,117 in all.

Have addresses, not city names? Batch geocoding finds the coordinates of every address in a spreadsheet, with its county and time zone. With the free plan, the first 100 rows every day are free.

Geocode a file

Your first 100 rows are free. Every day.

Free plan, no credit card · See your results on a map before you pay