Posts

Showing posts from November, 2018

United States Postal Code to State Map

Image
I had a need to determine the State code given a zip code/postal code and could not find a concise list I could use as the base of the map. There is a PDF available on irs.gov, but that doesn't lend itself well to automation.

Using that PDF, I generated this CSV file: https://gist.github.com/aaronhoffman/d7a598efb593e3acf5e0a39c0dd8b52a

There are two different formats depending on your use case. I hope you find it useful!
-Aaron