Table of Contents
Quick answer: Yes! There are a variety of tools you can use to convert ZIP Codes to latitude/longitude coordinates, commonly known as "geocoders." Geocodio is a tool you can use to convert ZIP Codes to coordinates.
There are a few reasons you might want to convert ZIP codes to latitude/longitude coordinates, including:
This article shows you how to batch convert zip codes to latitude/longitude coordinates using Geocodio. You can test the Geocodio service below to find lat/lon coordinates from one ZIP Code.
With Geocodio, you can choose to get the raw data back (via spreadsheet or API), or view the ZIP codes on a map.
The first step will be to organize the zip codes into a spreadsheet. Your spreadsheet will need to have headers, as shown below.
| ZIP |
|---|
| 85723 |
| 01983 |
| 22204 |
| 38256 |
Once your spreadsheet is organized, you can upload it directly to Geocodio. You can select the columns where your data is, see an example of the results, and be able to optionally add on other data such as FIPS Codes, Congressional districts, school districts, timezones, and more.
You will see an estimate for cost and processing time before you submit. For pay-as-you-go usage, you will be charged on the first of the following month. You can also estimate costs here.
You will receive an email when your spreadsheet is done processing - no need to stay on the page. You can download an example result of a spreadsheet of zip codes to coordinates here.
First, you'l need to create a Geocodio account and create an API key. You can sign up self-service on the dashboard. There is no call with a sales representative required.
Next, look at the Geocodio API documentation. You'll need to decide whether you want to use the single address endpoint (good for real-time integrations where you're receiving ZIP codes one-by-one), batch endpoint (for batches of up to 10,000 each), or lists endpoint (if you have a .csv, .tsv, or Excel file of ZIP codes).
While we've written the Geocodio API to be as easy to use as possible, you might find it helpful to use a library. There are a variety of libraries for Geocodio, including PHP, Ruby, Python, Node.js, and R.
Once you've created an API key, chosen an endpoint, and chosen a library, you're ready to start building your integration and convert ZIP codes to coordinates. You can see an example of the Geocodio JSON response in the documentation.
Enter a full address, city/state, or ZIP Code below to see an example of the results you get from Geocodio.