Geohash Encoder, Decoder & Neighbours

Work with geohashes: encode a coordinate, decode a hash to its centre and box, or find the adjacent cells.

Use the tool

Why this tool exists

Enter "lat, lon" to get the geohash at your chosen precision (1 to 12 characters) with the approximate cell size and shorter prefixes, or enter a geohash to get its centre, error margin, bounding box and neighbours. The functions follow the standard base-32 geohash interleaving and were checked against reference vectors and an independent implementation.

A geohash cell is a rectangle whose size depends on latitude, and nearby points can have very different hashes at cell borders, so always include neighbour cells when searching by proximity.

No data is sent anywhere: the work happens in your browser, so you can use it offline once the page has loaded.

How to use it

  1. Enter coordinates like 57.64911, 10.40744 or a geohash like u4pruydqqvj.
  2. Choose precision when encoding.
  3. Read the centre, box and neighbours.
  4. Use prefixes to search an area at lower precision.

Frequently asked questions

How precise is a 9-character geohash?

About 4.8 m by 4.8 m near the equator.

Why do neighbours matter?

Points close together can fall in different cells; query the cell plus its neighbours to be safe.

Is it the same as a plus code?

No, Open Location Code (plus codes) is a different scheme.

Is my data sent anywhere?

No. Everything is processed in your browser, and the page makes no network requests with your input.