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
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.
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.
| city | type | state_id | county_name | lat | lng | population | timezone | zip_count |
|---|---|---|---|---|---|---|---|---|
| Chicago | city | IL | Cook | 41.837045 | -87.684939 | 2,711,226 | America/Chicago | 88 |
| Los Angeles | city | CA | Los Angeles | 34.019394 | -118.410825 | 3,857,263 | America/Los_Angeles | 150 |
| Houston | city | TX | Harris | 29.785743 | -95.388806 | 2,328,253 | America/Chicago | 201 |
| Honolulu | CDP | HI | Honolulu | 21.324347 | -157.84764 | 345,482 | Pacific/Honolulu | 41 |
| Arlington | CDP | VA | Arlington | 38.878337 | -77.100703 | 236,254 | America/New_York | 28 |
| Nashville | city | TN | Davidson | 36.1718 | -86.785002 | 690,130 | America/Chicago | 51 |
Columns
What each version holds
In every version
| city, city_ascii | The name, Chicago, and the same without accents: Canon City for Cañon City |
|---|---|
| type | City, town, village, borough or CDP (a community the Census Bureau counts, with no government of its own) |
| state_id, state_name | The two-letter state code and the state’s name |
| county_fips, county_name | The county the place’s centre lies in, with its 5-digit FIPS code |
| lat, lng | The centre point of the place, from the Census Bureau |
| population | People living there: the Census Bureau’s 2020–2024 estimate |
| timezone | The time zone’s name, such as America/Chicago |
| zip_count, zip_codes | The place’s ZIP codes, from Geloky’s ZIP code database: its ZIP areas and its PO box ZIP codes |
| place_fips, gnis_id | The Census place code, 1714000 for Chicago, to join Census data, and USGS’s id for the place |
Pro adds
| incorporated | TRUE for a city, town, village or borough; FALSE for a CDP or a community |
|---|---|
| county_fips_all, county_names_all | Every county the place lies in: New York City’s five, for one |
| land_km2, water_km2, density | Land and water area in square kilometres, and people per square kilometre |
| utc_offset, dst | Hours from UTC in winter, and whether the clocks change in summer |
| metro_code, metro_name, metro_type | The 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_household | Occupied homes, and the average number of people in each |
|---|---|
| age_median | The median age of the people living there |
| income_median, income_100k_share | Median household income, and the share of households earning $100,000 or more |
| home_value_median, rent_median | The median value of owned homes and the median rent |
| homeowners_share | The share of households that own their home |
| college_share | The share of adults with a bachelor’s degree or higher |
| unemployment_rate, poverty_share | The unemployment rate and the share of people below the poverty line |
| commute_minutes | The 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.
The Census Bureau counts people by its places. The smaller communities in Pro are named by USGS, not counted, so they come with their point, county, ZIP code and time zone, but no population, area or survey figures.
No. A community that lies inside a city, town or CDP is a part of it, so it is left out: Chicago is one row, not one per neighbourhood.
Every quarter, with the ZIP codes of each place. The Census figures change once a year. Pro and Complete bring every new release for 12 months.
Yes. The free version needs a visible link to this page; Pro and Complete need none. You may not publish or resell the files themselves.
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, with its county and time zone. 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