US Zip Codes Database

We're proud to offer a simple, accurate and up-to-date database of US Zip Codes. It's been built from the ground up using authoritative sources including the U.S. Postal Service, U.S. Census Bureau, and National Weather Service. It is:

  • Up-to-date: All active USPS Zip Codes as of October 2018.
  • Comprehensive: 41,682 unique zip codes including ZCTA, unique, military, and PO box zips.
  • Accurate: Aggregated from official sources and precisely geocoded to latitude and longitude.
  • Simple: A single CSV file, concise field names, only one entry per zip code.


Commercial useAllowedAllowed
File formatCSVCSV, Excel
AttributionBacklink requiredNot necessary
Fast email supportNot availableIncluded
UpdatesNot guaranteedIncluded for 3 years
Refund policyN/A30-day guarantee
One-time feeNone$49
Buy Now!

Customer Approved

We've looked a bunch of different zip/city/county sites and found many issues. Yours is great. Clean and well organized!

Sam Osborn, Pro Customer

Sample Preview

Here is a sample of rows from the database with some commonly used fields:

All Fields

zip The 5-digit zip code assigned by the U.S. Post Office.
lat The latitude of the zip code (learn more).
lng The longitude of the zip code (learn more).
city The official USPS city name.
state_id The official USPS state abbreviation.
state_name The state's name. Blank string for military zip codes where state_id is AA, AE, or AP.
zcta TRUE if the zip code is a Zip Code Tabulation area (learn more).
parent_zcta The ZCTA that contains this zip code. Only exists if zcta is FALSE. Useful for making inferences about a zip codes that is a point from the ZCTA that contains it.
population An estimate of the zip code's population. Only exists if zcta is TRUE.
county_fips The primary county that contains the zip code in the FIPS format.
county_name The name of the county_fips.
county_weight The percentage of the zip code that is within the county (by population).
all_county_weights A JSON dictionary listing all counties and weights associated with the zip code.
imprecise TRUE if the lat/lng has been geolocated using the city (rare).
military TRUE if the zip code is used by the US Military (lat/lng not available).

Frequently Asked Questions

What is a ZCTA (Zip Code Tabulation Area)?

US ZIP codes were created by the USPS for mail delivery. This means that they don't always cover a continuous geographical area. What's convenient for delivery purposes (e.g. delivering on one side of the street except for large businesses) doesn't always lend itself to mapping or statistics. Since zip codes are often used for these purposes, the US Census Bureau calculates the approximate boundaries of zip code areas. These areas are called Zip Code Tabulation Areas.

Are all zip codes ZCTAs (Zip Code Tabulation Areas)?

No. Some zip codes are for PO boxes only, unique to an organization, or used by the military. Such zip codes are not areas and therefore are not represented by ZCTAs. When possible, our database uses parent_zcta to let you know if a zip code resides within an established ZCTA. This allows you to use the ZCTA as a proxy for additional information.

How are latitude and longitude calculated?

We've used GIS software to calculate the centroid for every ZIP code categorized as a ZCTA. A centroid is the average position of all of the points in a shape. This is best way to convert an area into a point. For zip codes that represent discrete points, we've used authoritative sources such as the National Weather Service to geocode them into latitude and longitude.

Why doesn't latitude and longitude exist for some zip codes?

Some zip codes, such as those used the military, do not represent a discrete point or a ZCTA area. In these cases, it's not possible to convert a zip code to a geographical point.

Am I allowed to redistribute the database?

No. You are not allowed to sell the database or make it publicly available. However, you can make copies and backups of the data. You are also allowed to query the database to power publicly facing applications such as a store locator.

How often do you release updates?

It depends. We frequently monitor the USPS for updates to zip codes. If there are any changes, we will release a new version.

Why should I trust this data?

This database was aggregated from authoritative sources and carefully processed by SimpleMaps. We've been developing and selling interactive maps to Fortune 500 companies and prominent international organizations for over 8 years. Over this time, we've learned a lot about geographic data. To get a sense of the expertise and support we offer, check out some of the testimonials from our happy customers.

If I use the free database, what type of attribution is required?

If you use the free database, you must link back to this page:
from a public webpage where you are using the data. If you want to use the data internally, you must link back to this page from your firm's website on a page that can be easily found though links on the root domain. The link must be clearly visible to the human eye.

Why do other databases contain more zip codes?

Unlike other databases, we only include one entry per zip code and we only include active USPS zip codes and ZCTAs. Our goal is to create an accurate database that is easy to use, not artificially inflate the size of our database.

How do I calculate the distance between two zip codes?

We've published free formulas in popular programming languages. Check them out.

Home (Maps) | Database License | Privacy | Database Releases | Database Order Lookup
© 2010-2018