Geohash encoder / decoder

A geohash is a base32 character string that encodes a rectangular zone of GPS coordinates (latitude/longitude) in a compact, hierarchical way. 100% local processing in your browser (WebAssembly) — nothing is sent to a server.

Encode (coordinates → geohash)

Example:

Decode (geohash → coordinates)

Example:

How it works

A geohash divides the surface of the globe into a grid of rectangles and assigns each one a base32 string: the shorter the geohash, the larger the area it represents (so less precise), and the longer it is, the smaller the area (so more precise).

A practical property of geohashes is that two geographically close places generally share a common prefix of some length, which allows comparing proximity simply by comparing character strings.

What is a geohash used for in practice?

Geohashes are widely used to index and partition geolocated data in a database (spatial sharding), or to share a position as a short, easy-to-copy text string instead of two separate decimal numbers.

100% local processing: encoding and decoding happen entirely in your browser via WebAssembly — your coordinates are never sent to a server.