Random Geohash Generator

Geohashes are generated locally in your browser with the Web Crypto API.

Random geospatial identifier

Generate a geohash — a short base32 string that encodes a latitude/longitude point. A uniformly random coordinate is picked across the globe and encoded with the standard geohash alphabet 0123456789bcdefghjkmnpqrstuvwxyz. The coordinates shown below the value are the center of the cell the geohash decodes back to.

Choose any precision from 4 to 12 characters — longer geohashes describe smaller, more precise cells. Useful as fixtures for maps, search indexes, proximity tests, location bucketing, seed data, and mock data.

What is a geohash?

A geohash encodes a latitude/longitude pair into a single short string by recursively dividing the world into a grid and interleaving the longitude and latitude bits. Each added character refines the cell, so geohashes that share a prefix are geographically close — which makes them handy keys for proximity search and spatial bucketing.

How the randomness works

A latitude in [-90, 90] and a longitude in [-180, 180] are drawn uniformly using crypto.getRandomValues, then the point is encoded by hand into base32. Generation runs entirely in your browser and nothing is sent over the network.