Skip to content

Geohash Encoder and Decoder

Encode latitude and longitude into a geohash of 1 to 12 characters, or decode a geohash back into its centre point and bounding box. The result also shows the approximate size of the cell.

Reset

Frequently asked questions

What is a geohash?

A short string that encodes a rectangular area on Earth, invented by Gustavo Niemeyer in 2008. Each additional character narrows the area, so nearby places usually share a common prefix, which makes geohashes useful for databases and search indexes.

How do I encode coordinates?

Enter latitude and longitude separated by a comma, for example 57.64911, 10.40744, and choose a precision. The tool returns the geohash, here u4pruydqqvj with 11 characters.

How do I decode a geohash?

Enter the geohash itself. The tool shows the centre of its cell, the bounding box and the approximate size in metres.

Which precision should I use?

Each character adds detail: 5 characters cover about 5 km, 7 about 150 m, 9 about 5 m and 12 a few centimetres. The size line shows the exact cell dimensions at the location.

Which characters are used?

A base 32 alphabet of digits and lowercase letters without a, i, l and o, to avoid confusion with similar looking characters.

Why are close places sometimes in very different geohashes?

Points on opposite sides of a cell boundary can have different prefixes even when they are a metre apart. Proximity searches therefore also check the neighbouring cells.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.