Latitude/longitude ⇄ geohash, base32, precision 1-12, bounding box and 8 neighbors, all in your browser
- Runs locally
- Category Developer & DevOps
- Best for Formatting, validating, shrinking, or inspecting code-adjacent text.
Encoding and decoding run on BigInt-free integer bit math in your browser. Nothing is sent anywhere.
What this tool does
A free, fast geohash converter that goes both ways: type a latitude and longitude and get the geohash string, or paste a geohash and get back the decoded center point, its bounding box and the precision of the cell. It uses the standard base32 geohash algorithm (alphabet 0123456789bcdefghjkmnpqrstuvwxyz, with a, i, l, o left out on purpose) and interleaves longitude and latitude bits the same way geohash.org, Redis GEOADD and Elasticsearch geo_point do, so the output matches every other correct implementation to the character. A precision slider from 1 to 12 lets you trade length for accuracy: 5 characters is about a 4.9 km cell, 9 characters is about 4.8 m, and the tool shows the approximate ground size for whatever length you pick. There is an optional view of the 8 neighboring geohashes for proximity work, plus one-click copy and a shareable URL that reproduces your exact input. 100% client-side, nothing is uploaded.
Tool details
- Input
- Numbers
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- Shareable URL state
- Key settings are encoded in the URL so another person can reopen the same setup.
- Performance budget
- Initial JS <= 9 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Developer & DevOps · Developer
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Geohash Converter fits into your work
Use it in the small gaps between coding, reviewing, debugging, and shipping.
Developer jobs
- Formatting, validating, shrinking, or inspecting code-adjacent text.
- Preparing snippets for documentation, tickets, commits, or handoff.
- Checking a small payload quickly without switching tools.
Developer checks
- Run irreversible transforms like minify or obfuscate on a copy.
- Keep secrets out of pasted snippets unless the tool explicitly stays local.
- Use your normal tests or linter before shipping transformed code.
Good next steps
These links move the current task into a more complete workflow.
- 1 Number Base Converter Number base converter — binary, octal, decimal, hex, and any base 2-36. Bitwise too. Open
- 2 Color Converter HEX ⇄ RGB ⇄ HSL ⇄ HSV ⇄ CMYK — instant 5-way conversion, live swatch — browser-only Open
- 3 Unit Converter Convert between length, weight, temperature, area, volume, speed, time — instant, browser-only Open
Real-world use cases
Build a proximity search without a geo database
You have a list of stores in plain SQL or a Redis sorted set and you want a cheap nearby query. Encode each location to a geohash, index it as a string, and a where-geohash-starts-with-u4pru filter returns everything in that cell. Use this tool to spot-check a few records by hand, confirm the prefix length matches the radius you care about, and grab the 8 neighbors so your border cases do not silently drop points.
Debug coordinates a service returned to you
An API logged a geohash but you need the actual point on a map. Paste the hash, read the decoded center and the bounding box, and you know both where it is and how exact it is. The plus-or-minus error tells you immediately whether the upstream system stored a city-level 5-char hash or a precise 9-char one, which is often the real bug.
Pick the right precision for a feature
Storing user check-ins? A 6-char geohash (about 1.2 km) protects rough privacy while still clustering a neighborhood; a 9-char hash pins a storefront. Slide the precision control and watch the cell size update so you choose a length on purpose instead of copying a magic number from a tutorial.
Generate test fixtures for geo code
Writing unit tests for a mapping feature? Encode a handful of known landmarks at a fixed precision, copy the strings into your fixtures, and you have stable, human-readable inputs. The shareable URL lets you drop a teammate straight onto the exact case you are reproducing.
Common pitfalls
Swapping latitude and longitude. Latitude (-90 to 90) is the first field and longitude (-180 to 180) is the second. Feeding 116.4 as a latitude silently produces a wrong but valid-looking geohash, because the value just gets clamped to 90. Double-check which number is which before trusting the output.
Relying on prefix matching alone for nearby queries. Two points a meter apart can land in different cells if they straddle a boundary, so a where-starts-with filter misses them. Always include the 8 neighbor cells and then filter by real distance, otherwise your radius search has blind seams along every grid line.
Treating the decoded center as the original point. A geohash names a box, not a point, so decoding always returns the box center with a built-in error of half the cell. If you re-encode that center you get the same hash back, but it is not the exact coordinate you started from unless the precision is very high.
Privacy
Every step — encoding, decoding, the bounding box and the neighbor cells — is plain JavaScript that runs inside your browser tab. No coordinate or geohash is ever sent to a server, and there is no logging of what you convert. The one caveat: the shareable URL puts your latitude, longitude and geohash in the query string, so a link pasted into chat will record those values in the recipient server's access log. For a sensitive location, use the copy button and paste the text instead of sharing the URL.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- Add Line Numbers Number every line of pasted text — set start, step and separator, zero-pad to align, skip blanks, or strip numbers back off — browser-only
- AES Text Encryptor Encrypt & decrypt text with a password — AES-256-GCM + PBKDF2 via WebCrypto — 100% in your browser, nothing uploaded
- Affine Cipher Encoder & Decoder Encrypt and decrypt the ax+b affine cipher with live modular-inverse check, browser-only
- Age Difference Calculator The exact gap between two birthdays — years/months/days, percentage, and the date one person is twice the other's age — browser-only