Free US ZIP Code Database

Search and download a free starter ZIP code database as CSV.

Where to Find a Free ZIP-to-County Crosswalk File

Last year a friend building a sales territory map asked me for "just a simple file that maps ZIP codes to counties." It took me three sources and one unpleasant discovery to realize there is no single perfect version, because ZIP codes and counties were never designed to nest neatly. Some ZIP codes straddle two or three counties. Some are PO-box-only codes that belong to no residential geography at all. Here is what I found, ranked from most authoritative to most convenient.

Why you need a crosswalk at all

ZIP codes are mail delivery routes, not geographic areas. Counties are legal jurisdictions. Businesses constantly need to translate between the two: sales tax territories, demographic analysis, insurance rating territories, service-area mapping, HUD income limit lookups. A crosswalk file is simply a table with one row per ZIP-to-county relationship. If your list has 40,000 ZIPs, the file has at least 40,000 rows, sometimes more where codes span multiple counties.

1. HUD's official USPS crosswalk (most authoritative)

The Department of Housing and Urban Development publishes the canonical crosswalk at huduser.gov, updated every quarter. Download the ZIP-COUNTY file for the most recent quarter and you get an XLSX mapping ZIP codes to counties with residential ratio weights.

HUD USPS ZIP Code Crosswalk Files

Source: huduser.gov/portal/datasets/usps_crosswalk.html · Format: XLSX, quarterly · Cost: free

This is the file I recommend first for anything that touches money or compliance. The catch: no API, so you download it by hand, and you get one file per quarter that you must keep current yourself.

2. The open GitHub crosswalk (most convenient)

A researcher at NYU published an open crosswalk combining HUD's ZIP-to-FIPS and ZIP-to-CBSA files with Census county names and OMB metro names. The resulting CSV has clean columns: zipcode, FIPS, CountyName, cbsacode, cbsatitle, and metromicro, and the file is about 2.3 MB. Search GitHub for Crosswalk-ZipCode-County-CBSA and you will find it. I use this one for quick exploratory work because ZIP, county, and metro area arrive in a single table.

3. Missouri Census Data Center Geocorr (most flexible)

For research-grade work, the Geocorr application from the Missouri State Data Center lets you generate custom crosswalks on demand: ZIP/ZCTA to county, county subdivision, census tract, and more, weighted by housing units or population. It is the tool demographers cite when they need something the canned files do not provide. The interface is dated but the output is exact.

4. CMS county-to-ZIP files (healthcare-specific)

The Centers for Medicare and Medicaid Services publish county-zipcode crosswalk data in their qpp-eu-data repository, refreshed for each performance year. If you work in healthcare analytics, this is worth bookmarking, because it reflects the county assignments CMS itself uses.

5. The free starter database on this site (quickest start)

If you need city, state, county, and coordinates for a manageable set of ZIP codes right now, the free CSV here covers 2,000 ZIP codes across all 50 states plus DC and Puerto Rico, with county included. It is a starter file, not a replacement for the full HUD tables, but it is enough to prototype a territory map, a county lookup form, or a classroom project today.

The hard part: ZIP codes that span counties

Here is the unpleasant discovery I mentioned. A crosswalk is not always one row per ZIP. Codes like 90210 sit in one county, but plenty of rural and suburban ZIPs cross county lines. When that happens you have three options, and you should pick consciously:

The HUD file uses residential ratios for exactly this reason. If your use case involves taxes or regulated boundaries, do not shortcut this decision. A delivery address near a county line can legitimately sit in either jurisdiction, and your crosswalk choice determines the answer.

Also mind the ZIP vs. ZCTA distinction. The Census Bureau's ZIP Code Tabulation Areas are approximations of ZIP geography built for statistics. There are roughly 33,000 ZCTAs and about 77,000 ZIP codes. A ZCTA crosswalk is close to a ZIP crosswalk but not identical. Use USPS-sourced files when exact delivery codes matter.
Need county data for your ZIP list now?
Grab the free starter CSV with county fields included. No signup, no paywall.
Download the free ZIP CSV

FAQs

What is a ZIP-to-county crosswalk file?

A crosswalk file is a table mapping each ZIP code to its county (or counties). The core columns are the 5-digit ZIP, the 5-digit county FIPS code, and the county name. Extended versions add metro area codes, population weights, or residential ratios for ZIPs spanning multiple counties.

Is the HUD ZIP-to-county crosswalk really free?

Yes. HUD publishes the USPS crosswalk files quarterly at no charge. There is no API, so you download the XLSX file manually from huduser.gov and refresh it each quarter yourself.

Can one ZIP code be in two counties?

Yes, and it happens regularly. ZIP codes are mail routes, not county boundaries, so many codes cross county lines. Crosswalk files handle this with primary-county assignments or weighted rows, and you should decide which convention your analysis uses before joining the data.