InputTestHub

Geohash Converter

Encodes coordinates to a geohash and decodes one back, showing the exact cell size at every length from 1 to 12.

Converters Nothing uploaded No sign-up Free, unlimited
Converters tool
Enter your figures and press Calculate.
In short A geohash turns a coordinate into a short string by repeatedly halving the world: each bit chooses which half of the current range the point is in, alternating between longitude and latitude, and every five bits become one character of a 32-character alphabet. The consequence people miss is that a geohash is a BOX, not a point. Decoding one returns the centre of that box, and the point that was encoded was merely somewhere inside it. Length is precision: one character is a cell roughly 5,000 km across, five characters is about 4.9 km, eight characters is about 38 m and twelve is under a centimetre. The alphabet is 0–9 and b–z with a, i, l and o removed, because those are the characters people misread — the same reasoning that keeps I and O out of MGRS. The property the whole scheme exists for is that a shorter geohash is always a prefix of a longer one, so points that share a prefix are inside the same larger cell and proximity search becomes a string comparison. The trap that comes with it is severe and worth stating plainly: two points can be a metre apart and share no prefix at all, because a cell boundary runs between them. Any real proximity search has to check the eight neighbouring cells as well, and near the equator and the prime meridian this bites hard.

How to use the Geohash Converter

  1. Choose whether to encode or decode.
  2. Enter the coordinates or the geohash.
  3. Check the cell size before treating the result as a point.

About the Geohash Converter

Geohash encoding and decoding with the true cell size at every length.

What people use it for

  • Indexing locations for proximity search in a database.
  • Decoding a geohash found in an API response or a log.
  • Choosing a length that matches the precision you actually have.

Details

Alphabet0–9 and b–z, without a, i, l or o
5 charactersa cell about 4.9 km across
9 charactersa cell about 4.8 m across
Prefix propertya shorter geohash always contains the longer ones
The catchneighbouring points can share no prefix at all
PrivacyEverything runs in your browser. No coordinate you enter is sent anywhere
The cell sizes shown are computed for the latitude you enter rather than from a global average, because a geohash cell's real width changes with latitude.

Where this tool stops

Everything is computed from the WGS84 ellipsoid in your browser — no map service, no lookup and no network. Coordinates on an older datum such as ED50, NAD27 or a national grid will not agree with these figures, sometimes by hundreds of metres. Great-circle distances use a spherical earth of radius 6,371.0 km and differ from ellipsoidal distances by up to about 0.5%, which matters for surveying and not for anything else.

Frequently asked questions

Is a geohash a point or an area?
An area. Decoding gives you the centre of a rectangle, and all you know is that the original point was inside it. The rectangle's size depends entirely on the length of the hash.
Why does my decoded geohash not match what I encoded?
Because encoding discards everything finer than the cell. This is the format working as designed rather than a bug — add characters if you need more precision.
Can I use geohash prefixes to find nearby points?
Partly, and the gap is dangerous. Points sharing a prefix are in the same cell, but two points metres apart can fall on opposite sides of a cell boundary and share nothing. Every practical implementation checks the eight surrounding cells as well.
Why are a, i, l and o missing from the alphabet?
They are the characters people misread or mistype — a for o, i for 1, l for 1. Leaving them out means a geohash can be read aloud or copied by hand without ambiguity.
Are geohash cells square?
It depends on the parity of the length, and the answer is the opposite of what most explanations say. Each character is five bits and the bits start on longitude, so an odd-length hash gives longitude the extra bit — which exactly cancels longitude's doubled range and leaves the cell square in degrees. An EVEN-length hash is twice as wide as it is tall. On the ground every cell also narrows east to west as you move away from the equator, because a degree of longitude shrinks with the cosine of the latitude.
Does the Geohash Converter cost anything?
There is no cost and no cap. The Geohash Converter is not a demo of a paid product, so nothing is held back or watermarked.
Is the Geohash Converter safe to use with private information?
No. The Geohash Converter runs entirely in your browser using JavaScript. Nothing is transmitted, logged or stored, which you can verify yourself in the Network tab of your browser's developer tools.
What is the Geohash Converter used for?
Typical uses: indexing locations for proximity search in a database. Decoding a geohash found in an API response or a log. Choosing a length that matches the precision you actually have. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Where does the Geohash Converter stop being reliable?
Everything is computed from the WGS84 ellipsoid in your browser — no map service, no lookup and no network. Coordinates on an older datum such as ED50, NAD27 or a national grid will not agree with these figures, sometimes by hundreds of metres. Great-circle distances use a spherical earth of radius 6,371.0 km and differ from ellipsoidal distances by up to about 0.5%, which matters for surveying and not for anything else. Knowing where a tool stops being trustworthy matters more than the cases where it works.
What are the key numbers for the Geohash Converter?
Alphabet is 0–9 and b–z, without a, i, l or o. 5 characters is a cell about 4.9 km across. 9 characters is a cell about 4.8 m across. These are printed on the page itself, so you do not have to take them on trust.
Can I rely on this for exact work?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related converters tools

All 1079
01

Number Base Converter

Converts numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, in…

02

Roman Numeral Converter

Converts numbers to Roman numerals and Roman numerals back to numbers, from 1 to 3,999,999.

03

Shoe Size Converter

Converts shoe sizes between US, UK, EU, Japan and centimetres for men, women and children.

04

Ring Size Converter

Converts ring sizes between US, UK, EU and Japan systems and shows the matching inside…

07

Bra Size Converter

Converts bra sizes between UK, US, EU, France, Italy, Australia and Japan, or works the size…

09

Hat Size Converter

Converts head circumference to US, UK and EU hat sizes using the real formula: the size is the…

10

Glove Size Converter

Converts hand circumference to glove size and letter size for men and women. The glove size is…