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.
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.