This package is designed to help answer common analytical questions that arise when working with US ZIP Codes.

Note: the entity which maintains US ZIP Codes (the US Postal Service) does not release a map or crosswalk of that dataset. As a result, most analysts instead use ZIP Code Tabulation Areas (ZCTAs) which are maintained by the US Census Bureau. Census also provides Relationship Files that map ZCTAs to other geographies.

This package provides the Census Bureau’s “2020 ZCTA to County Relationship File” as a tibble, combines it with useful publicly available metadata (such as State names) and provides convenience functions for querying it.


You can install the latest stable version of this package from CRAN by typing the following:


You can install the latest development version from Github by typing:



The main functions in this package are:

To learn more, please read the following 3 Vignettes:

  1. Introduction
  2. Workflow with tidycensus
  3. Developer Notes

You can access the Vignettes by typing the following after installing the package:

browseVignettes(package = "zctaCrosswalk")