Lat/Lng to Geocode Converter & Map Viewer

GIS & Geography Tools

Online tool to convert latitude/longitude to Plus Codes, Quadkey, Geohash, and Grid Square Code. Visualize geocode grids on an interactive map.

Enter latitude and longitude to convert to various geocode formats and visualize grids on the map.

Grid type

Understanding Geocoding Systems

Geocode Format Comparison

Several geocoding systems exist, each with different characteristics regarding precision, coverage, and intended use cases.

FormatPrecision
Open Location Code~14m × 14m (10-digit)
QuadkeyTile-level dependent
Geohash~1.2km to ~2cm
Grid Square Code~1km to ~125m

How Geocoding Works

Geocoding systems encode latitude and longitude into compact strings by recursively dividing the Earth's surface into smaller grids. Each character in the resulting code narrows down the area, providing progressively finer precision. This approach enables efficient spatial indexing, fast proximity queries, and easy sharing of location information without requiring full coordinate pairs.

Use Cases

  • Sharing precise locations in areas without formal street addresses
  • Efficient proximity searches in geospatial databases
  • Delivery and logistics location pinpointing
  • Map tile management and caching in web mapping services
  • Statistical analysis using standardized geographic grid units

Glossary

Open Location Code (Plus Codes)
The Open Location Code is a geocode based in a system of regular grids for identifying an area anywhere on the Earth. It was developed at Google's Zürich engineering office, and released late October 2014. Location codes created by the Open Location Code system are referred to as "plus codes".
Quadkey
Quadkey (Quadtree Key) is a geolocation hashing algorithm developed by Microsoft that divides regions based on latitude and longitude into grids of approximately the same size. Each quadkey has a single-digit code, zero to three. By zooming into the next level, each of the four original quadkeys splits into four, and we add another digit to the code.
Geohash
Geohash is a method of encoding geographic location into a short string of characters. The encoded string represents a grid-based approximation of the location, allowing for fast and efficient indexing and retrieval of geographic data.
Grid Square Code
The grid square code is a method of dividing a geographic area into a grid of smaller regions for the purpose of organizing and efficiently accessing geographic data. The grid square code is an extension of the standardized regional grid square code developed in Japan (JIS X 0410), expanded to a global scale.

FAQ

Q: What is a Plus Code?
A: Plus Code is Google's consumer-facing name for Open Location Code. It encodes any location into a short alphanumeric string (e.g., "8Q7XMQH2+39"). The "+" separates the area code from the local code. Plus Codes are useful for identifying locations in areas without formal addresses.
Q: Which format provides the highest precision?
A: Geohash offers the most flexible precision — adding more characters increases accuracy from ~1.2km down to a few centimeters. Open Location Code provides ~14m precision at 10 digits. The best choice depends on your use case rather than raw precision alone.
Q: Can Grid Square Code be used outside Japan?
A: Yes. The "World Mesh" system extends JIS X 0410 (Grid Square Code) globally by dividing the world into 8 regions. The encoding method is identical, and Japanese mesh codes can be derived by removing the first two digits of the world mesh code.

Related Tools & Games