Postal Codes Dataset for United States, US

715
Updated:
Files:1
Size:3.02 MB
Rows:41,488
Formats:csv

Postal Codes Dataset for United States, US including name of the city, town, or place, various administrative divisions and alternative city names.

Part of a Data Solution

  • Postal Codes Solution

    Every worldwide postal-code dataset in one bundle — the ultimate global reference for precise postal codes.

    Explore →

Premium

You're viewing a free sample

Get the complete dataset — all rows and files — delivered instantly after checkout, with lifetime access to the latest version.

  • Secure checkout via Stripe
  • Instant download after payment
  • Lifetime access to the latest version
  • Creative Commons Attribution 4.0 (GeoNames) license
20% off
$49.90$39.92
one-time payment

API Access

Access dataset files directly from scripts, code, or AI agents.

Browse dataset files
Dataset Files

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

/logistics/postal-codes-us/
https://datahub.io/logistics/postal-codes-us/_r/-/.licensing-notes.md
https://datahub.io/logistics/postal-codes-us/_r/-/.migration-notes.md
https://datahub.io/logistics/postal-codes-us/_r/-/ATTRIBUTION.txt
https://datahub.io/logistics/postal-codes-us/_r/-/README.md
https://datahub.io/logistics/postal-codes-us/_r/-/datapackage.yaml
Key Files

Start with these files — they give you everything you need to understand and access the dataset.

datapackage.yaml— metadata & schema
https://datahub.io/logistics/postal-codes-us/_r/-/datapackage.yaml
README.md— documentation
https://datahub.io/logistics/postal-codes-us/_r/-/README.md
Typical Usage
  1. 1. Fetch datapackage.yaml to inspect schema and resources
  2. 2. Download data resources listed in datapackage.yaml
  3. 3. Read README.md for full context

Data Files

postal-codes-us-sample


About this dataset

Postal Codes Dataset for United States (US)

This dataset lists US ZIP codes, one row per code, with place names, states and counties (5-digit county FIPS codes), and WGS84 coordinates. Other place names sharing a ZIP code are listed in alternative_city_name.

Column definitions, row count, size and last-updated date are in datapackage.yaml.

Data Sources

  • ZIP codes, place names, states and coordinates: © GeoNames, postal code export for the United States, CC BY 4.0.
  • County names and codes: US Census Bureau, 2020 ZCTA-to-County relationship file (Census reference files), a US Government work in the public domain, taken from the public-domain zctaCrosswalk mirror.

Changes made to the source data: one row per ZIP code (first row kept, other place names appended to alternative_city_name; rows with a blank ZIP dropped); admin_name3 and admin_code3 blanked; admin_code2 set to the Census 5-digit county code and admin_name2 to the Census county name where the ZIP code can be matched to a county, otherwise the state FIPS code plus GeoNames' county code.

Not endorsed by, or affiliated with, GeoNames or the US Census Bureau.

Known limitations

  • Census county names pass through title-casing, so "Prince George's County" appears as "Prince George'S County".
  • Rows for ZIP codes that are not ZCTAs (for example PO-box ZIP codes), military (APO/FPO) rows and the Marshall Islands rows keep GeoNames' county name, and for rows with no state FIPS or no GeoNames county code, GeoNames' county code.
  • There is no third administrative tier.

Usage

The dataset files are available in CSV format and can be accessed and downloaded using the links provided in datapackage.yaml. Read postal_code as text, never as a number: US codes can start with zero (02020).

For other inquiries, contact datahub@datopian.com