Data · US ZIP codes
US ZIP code database with latitude and longitude
US ZIP codes with their city, county, time zone and population, as CSV, Excel, SQL and JSON. Free for the 33,791 ZIP areas; $49 for 41,685 ZIP codes, PO boxes included.
Versions
Pick the version you need
All three US databases
Need counties and cities 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 ZIP areas and its 2020–2024 population estimates.
| zip | lat | lng | city | state_id | county_fips | county_name | population | timezone |
|---|---|---|---|---|---|---|---|---|
| 00601 | 18.180555 | -66.749961 | Adjuntas | PR | 72001 | Adjuntas | 16,669 | America/Puerto_Rico |
| 10001 | 40.750649 | -73.997298 | New York | NY | 36061 | New York | 30,511 | America/New_York |
| 60601 | 41.885155 | -87.621512 | Chicago | IL | 17031 | Cook | 15,235 | America/Chicago |
| 80202 | 39.751526 | -104.997673 | Denver | CO | 08031 | Denver | 18,589 | America/Denver |
| 94103 | 37.772983 | -122.411343 | San Francisco | CA | 06075 | San Francisco | 34,964 | America/Los_Angeles |
| 96813 | 21.316548 | -157.845053 | Honolulu | HI | 15003 | Honolulu | 26,766 | Pacific/Honolulu |
Columns
What each version holds
In every version
| zip | The 5-digit ZIP code, kept as text: 00601 stays 00601, in the Excel file too |
|---|---|
| lat, lng | The centre point of the ZIP area, from the Census Bureau |
| city | The Postal Service’s city name for the ZIP code |
| state_id, state_name | The two-letter state code and the state’s name |
| county_fips, county_name | The county with most of the ZIP code’s addresses, with its 5-digit FIPS code |
| population | People living there: the Census Bureau’s 2020–2024 estimate |
| timezone | The time zone’s name, such as America/Chicago |
Pro adds
| zip_area | TRUE when the Census Bureau draws an area for the ZIP code; FALSE for PO box, business and military ZIP codes |
|---|---|
| approximate | TRUE when the point is the middle of the census tract that holds most of the ZIP code’s addresses, or the centre of its town |
| military | TRUE for the military’s APO, FPO and DPO ZIP codes, which have no location, county or time zone |
| county_fips_all, county_names_all, county_shares | Every county the ZIP code’s addresses fall in, each with its share in percent |
| utc_offset, dst | Hours from UTC in winter, and whether the clocks change in summer |
| land_km2, water_km2 | Land and water area in square kilometres |
| density | People per square kilometre of land |
| metro_code, metro_name, metro_type | The metro or micro area (CBSA), such as New York-Newark-Jersey City |
| district | The congressional district, 120th Congress, such as NY-12 |
Complete adds
Figures from the Census Bureau’s American Community Survey, 2020–2024.
| 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 ZIP area, as GeoJSON and KML |
Sources
Where the data comes from
U.S. Census Bureau
ZIP areas, their centre points, land and water area, population, the survey figures in Complete, and a few hundred PO box ZIP codes.
The Postal Service, via HUD
Nearly every ZIP code in use, its city name, and the counties and tracts its addresses fall in. Published every quarter.
National Weather Service
The time zone of every area, with daylight saving.
This product uses the HUD User Data API but is not endorsed or certified by HUD User. Pro and Complete also hold ZIP codes from GeoNames (CC BY 4.0), the military ones among them.
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
ZIP database questions
Something else? Write to hello@geloky.com — a person answers within a day.
Almost. ZIP codes are delivery routes, so the Census Bureau draws an area around each one that has homes: the 33,791 ZIP areas in the free version. PO box and business ZIP codes have no area of their own. Pro and Complete add them, each at the middle of the tract that holds most of its addresses, or at the centre of its town where that is unknown. The military’s APO, FPO and DPO ZIP codes come too, without a location.
Every quarter, when the Postal Service’s ZIP list is published again. The Census figures change once a year. Pro and Complete bring every new release for 12 months.
No. The free files download at once. Paid ones download as soon as you have paid, and a private link to them comes by email.
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.
Free: CSV and Excel. Pro and Complete: CSV, Excel, SQL for MySQL and PostgreSQL, and JSON. Complete adds the ZIP outlines as GeoJSON and KML.
Yes, within 14 days of buying. Write to hello@geloky.com.
Have street addresses, not ZIP codes? Batch geocoding finds the coordinates of every address in a spreadsheet. 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