Skip to content
100% local

Geohash encoder and decoder

Convert latitude/longitude coordinates to a geohash string, or a geohash back to coordinates.

Input

Geohash encoder and decoder

Paste a list of coordinates or geohash strings and this tool converts each line to the other format. It detects the direction automatically per line — two separated numbers become a geohash, a string of geohash characters decodes to a latitude/longitude pair — or you can force encoding or decoding for the whole list.

The geohash length option controls precision: a short geohash like "u0" covers a region hundreds of kilometers wide, while a 9- or 10-character geohash narrows it down to a few meters. The tool shows the resulting margin of error next to every result, so you can pick a length that matches how precise you actually need to be. Turn on the bounding box option to see the exact rectangle a geohash represents, or the neighbors option to list the 8 adjacent cells — useful for proximity searches that need to check a cell's surroundings. For a group of nearby points, the common-prefix option finds the longest geohash prefix they all share, which is the shortest string that still identifies the shared region.

Output can be a plain list, one converted item per line, or CSV with a header row and separate columns for the geohash, latitude, longitude and precision — handy for importing into a spreadsheet or another tool. Lines that aren't valid coordinates or valid geohash characters are left alone and flagged rather than silently dropped, so a stray typo in a long list is easy to spot. Windows and Unix line endings are both handled the same way.

Everything runs locally in your browser — coordinates and geohashes never leave your device. When you're done, copy the result, download it as a .txt file, or send the output back into the input to run another conversion on it.

FAQ

What is a geohash?
A geohash is a short string that encodes a latitude/longitude location into a hierarchical grid cell. Cells that share a prefix are geographically close together.
How long should my geohash be?
Longer geohashes are more precise: 5–6 characters narrows a location to a few kilometers, 9–10 characters to a few meters. The tool shows the exact margin of error for whichever length you choose.
Can I convert a whole list of coordinates at once?
Yes. Paste one coordinate pair or geohash per line and every line is converted independently, with automatic direction detection unless you force encode or decode.
What does the common-prefix option do?
It finds the longest geohash prefix shared by every valid item in your list — the shortest string that still covers all of them, useful for picking a bounding region for a group of points.
Is my location data uploaded anywhere?
No. Every conversion runs entirely in your browser — your coordinates and geohashes are never sent to a server.