Free tool · instant

What is my ZIP code?

Your ZIP code based on your internet connection, and the exact postal code of your current position with one click.

Your ZIP code (from your internet connection)

…

Detecting your location…

Based on your IP address, which usually points to your internet provider's nearby hub. For your exact code, use your device's location:

How it works

  1. We show the ZIP code that Cloudflare associates with your IP address.
  2. With your permission, your browser shares its GPS position and we look up the nearest postal codes.

Privacy

Your position is rounded to about 10 metres, used for one lookup and not stored.

Why your ZIP code matters

Online shops, delivery services, tax calculators and insurance quotes all ask for your ZIP code, because it pins down your area more precisely than a city name. In the US, a ZIP code also determines your sales tax rate and which USPS facility handles your mail.

ZIP code vs ZIP+4

The five-digit ZIP code covers an area or a large building. ZIP+4 adds four digits (e.g. 10001-2062) for a specific block, building or PO box. Most forms only need the five digits.

Postal codes in other countries

Outside the US, ZIP codes are called postal codes, postcodes (UK, Australia), PIN codes (India) or PLZ (Germany). See the postal code formats of 149 countries.

Building location features?

The zipcodestack API turns GPS coordinates into postal codes (/v1/reverse), looks up any code worldwide and finds all codes within a radius.

Frequently asked questions

How do I find my ZIP code?

This page shows the ZIP code of your internet connection right away. Click 'Use my precise location' and allow location access to get the postal code of your exact position. You can also find it on any letter or package sent to your address.

Why is the ZIP code from my IP address wrong?

An IP address points to your internet provider's network, which can be a few miles or even another town away. Mobile connections are often routed through a regional hub. The GPS-based lookup is accurate to your street.

Does it work outside the US?

Yes. The lookup works in the 149 countries zipcodestack covers, including the UK (postcodes), Canada (postal codes), India (PIN codes) and most of Europe.

Is my location stored?

No. Your position is rounded to about 10 metres, used for a single lookup and not saved.

Postal code API

Get this data in your app

zipcodestack looks up, validates and searches postal codes in 149 countries: city, state, coordinates, distances and radius search, as JSON.

/v1/reverse documentation ZIP code API All documentation

300 free requests every month. No credit card required.

GET https://api.zipcodestack.com/v1/reverse?latitude=40.7484&longitude=-73.9967&limit=1

{
  "results": {
    "10001": [{
      "postal_code": "10001",
      "country_code": "US",
      "latitude": 40.7484,
      "longitude": -73.9967,
      "city": "New York",
      "state": "New York",
      "state_code": "NY",
      "province": "New York"
    }]
  }
}

Free postal code tools

Start using our ZIP Code API for free today!

Get 300 requests / month for free