GIS Tools: WKT, WKB, GeoJSON, H3 Converter with Mapping & Spatial Analysis

Complete GIS Toolkit: Format Conversion, Spatial Analysis, and Interactive Mapping

GIS Tools is a comprehensive web-based platform for working with geographic data. Convert between WKT, WKB, GeoJSON, H3 hexagonal indices, and latitude/longitude coordinates. Draw geometries directly on the map, perform spatial analysis operations like buffer zones and polygon unions, and export your data in six different formats including KML, CSV, and GPX.

Everything runs locally in your browser for maximum speed and data privacy. Whether you're a GIS analyst debugging database geometries, a developer building location-based applications, or a researcher processing spatial datasets, this toolkit provides the features you need without installing any software.

Frequently Asked Questions

Is my spatial data uploaded to a server?

No. Every conversion runs as JavaScript inside your browser, so the geometry you paste, draw or import never leaves your device and is never stored by us. The page does make network requests, and it is worth knowing which: its own code, map tiles from OpenStreetMap, which reveal the area you are looking at but not the shapes on it, and analytics and advertising scripts that load only after you accept cookies. Share links work the same way: your layers are compressed into the part of the URL after the # symbol, and browsers never send that part to a server.

Which formats can I convert between?

The converters move between WKT, WKB in hexadecimal, GeoJSON, H3 cell indexes and plain latitude/longitude pairs, in any direction. File export covers six formats: GeoJSON, WKT, WKB, KML, CSV and GPX. File import currently reads GeoJSON, WKT and WKB; KML, GPX and CSV import is not available yet, and the app says so rather than failing quietly. The geometry types supported throughout are Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.

What is the difference between WKT and WKB?

They are two encodings of the same OGC Simple Features geometry model, so converting between them loses nothing. WKT is text you can read: POINT (34.7654 32.0853). WKB is the same geometry in binary, shown here as hexadecimal. WKB is smaller, faster to parse and free of the rounding that writing decimals as text can introduce, which is why spatial databases such as PostGIS store it. WKT is the one to reach for when you need to read, diff or paste a geometry by hand.

Do WKT, WKB and GeoJSON put longitude or latitude first?

Longitude first, in all three. POINT (34.7654 32.0853) means longitude 34.7654 and latitude 32.0853, and RFC 7946 defines a GeoJSON position as [longitude, latitude]. The exception on this page is the Lat/Lon converter, which expects latitude first because that is the order GPS receivers and mapping apps display; tick its invert option when your input is longitude first. A point that lands in the wrong part of the world is nearly always this swap.

Why was my drawn shape rejected for an out-of-range coordinate?

Because one of its coordinates fell outside the valid range: longitude must be between -180 and 180, and latitude between -90 and 90. The usual cause is panning sideways. A web map repeats the world endlessly and longitude keeps counting upward as you go, so a shape drawn one copy of the world east of Israel comes out at longitude 394.7654 instead of 34.7654. Values like that are rejected or misplaced by most GIS software, so the shape is refused rather than quietly moved on your behalf; pan back to the main copy of the map and draw it again. A latitude beyond the poles almost always means longitude and latitude have been swapped.

Do KML and GPX exports keep all of my data?

Not in every case, and the app tells you when something is left out. GPX describes waypoints, routes and tracks, so it has no way to represent a polygon, and polygons are omitted from a GPX file. The KML export writes the outer ring of each polygon, so interior rings, meaning holes, are not carried across. Whenever either happens a warning names what was dropped and which formats would have kept it. GeoJSON, WKT, WKB and CSV preserve every geometry type this tool supports.

How accurate is the circle drawing tool?

A circle drawn on the map is stored as a 64-sided polygon, because WKT, WKB and GeoJSON have no circle primitive; every format that appears to support circles does something similar. The polygon is inscribed in the true circle, so its area comes out roughly 0.1 to 0.3 per cent small. The vertices are placed with a local flat-earth approximation, which is accurate at ordinary radii but drifts for very large circles and close to the poles. That is fine for visualisation and for most analysis, but if you need an exact circular area, calculate it from the centre and radius rather than from the exported polygon.

What is H3, and which resolutions are supported?

H3 is a global grid, developed by Uber, that divides the world into hexagonal cells, each identified by a short index such as 8a2a1072b59ffff. It is widely used to group point data into cells of comparable size. All sixteen resolutions are supported, from 0, the coarsest, to 15, the finest, and in both directions: paste an H3 index to draw its cell boundary on the map, or give a latitude, longitude and resolution to get the index of the cell that contains that point. The batch dialog converts many indexes at once.

Do I need an account, and does it work offline?

There is no account and no sign-up, and the tools are free to use in any current browser on desktop or mobile. Once the page has loaded, converting, drawing, editing and exporting keep working without a connection; the OpenStreetMap background tiles will not load, but your geometry still displays and converts. The spatial analysis tools are the exception, because they fetch the Turf.js library from a CDN the first time you run one, so they need a connection at least once per session.

Supported GIS Data Formats

WKT (Well-Known Text)

Well-Known Text is a text-based format defined by the Open Geospatial Consortium (OGC) for representing vector geometries. It's human-readable and widely used in spatial databases like PostGIS, Oracle Spatial, SQL Server, and MySQL.

WKT Examples:
POINT(-74.006 40.7128)
LINESTRING(0 0, 10 10, 20 25, 50 60)
POLYGON((0 0, 0 10, 10 10, 10 0, 0 0))
MULTIPOLYGON(((0 0, 0 1, 1 1, 1 0, 0 0)), ((2 2, 2 3, 3 3, 3 2, 2 2)))

WKB (Well-Known Binary)

Well-Known Binary is the binary equivalent of WKT. It's more compact and faster to parse, making it the preferred format for database storage and network transmission. Our tool displays WKB as hexadecimal strings for easy copying into SQL queries.

When to use WKB:
β€’ Storing geometries in PostgreSQL/PostGIS
β€’ Transmitting spatial data over APIs
β€’ Working with large datasets where storage efficiency matters
β€’ Database migrations and ETL pipelines

GeoJSON

GeoJSON is a JSON-based format for encoding geographic features. It's the standard format for web mapping libraries like Leaflet, Mapbox GL JS, OpenLayers, and Google Maps. GeoJSON supports properties alongside geometry, making it ideal for feature-rich applications.

GeoJSON supports:
β€’ Point, LineString, Polygon geometries
β€’ Multi-part geometries (MultiPoint, MultiLineString, MultiPolygon)
β€’ GeometryCollection for mixed types
β€’ Feature properties for attributes and metadata
β€’ FeatureCollection for multiple features

H3 Hexagonal Index

H3 is Uber's hexagonal hierarchical spatial index. Each H3 cell represents a hexagonal area on Earth at one of 16 resolution levels. Our tool converts H3 indices to polygon boundaries, allowing you to visualize and export H3 cells in any format.

H3 Use Cases:
β€’ Ride-sharing and logistics optimization
β€’ Spatial aggregation and analytics
β€’ Location-based indexing at scale
β€’ Hexagonal binning for data visualization

Supported formats: Hex string (e.g., 8f2830828052d2f) or BigInt

Latitude/Longitude Coordinates

Directly input GPS coordinates or copy-paste from Google Maps. Supports both lat, lon and lon, lat ordering with a toggle option. Perfect for quickly converting coordinate pairs to point geometries.

Input formats accepted:
β€’ 40.7128, -74.0060 (latitude, longitude)
β€’ 40.7128 -74.0060 (space-separated)
β€’ Batch processing: multiple coordinates, one per line

Export Formats

Export your layers in six different formats to match your workflow requirements:

GeoJSON (.geojson)

Web mapping standard. Works with Leaflet, Mapbox, and most JavaScript mapping libraries.

WKT (.wkt)

Human-readable text format for database queries and spatial SQL operations.

WKB (.wkb)

Binary format for efficient database storage. Exported as hex string.

KML (.kml)

Google Earth and Google Maps compatible format for sharing geographic data.

CSV (.csv)

Spreadsheet format with geometry column. Choose WKT, WKB, or GeoJSON encoding.

GPX (.gpx)

GPS Exchange format for waypoints and tracks. Compatible with GPS devices and fitness apps.

Interactive Drawing Tools

Create geometries directly on the map using our integrated drawing toolbar. All drawn shapes are automatically saved to the layer management system and can be edited, exported, or used in spatial analysis operations.

πŸ“
Point Marker

Click to place point markers at precise locations

πŸ“
Polyline

Draw connected line segments for routes or boundaries

⬑
Polygon

Create closed shapes by clicking vertices

⬜
Rectangle

Click and drag to draw rectangular regions

β­•
Circle

Draw circles with custom radius (converted to 64-segment polygon for GeoJSON compatibility)

All layers can be edited after creation using the edit toolbar. Move vertices, reshape polygons, or delete unwanted features. Changes sync automatically with the layer management panel.

Spatial Analysis Tools

Perform spatial analysis operations on your layers using our built-in GIS tools powered by Turf.js. Select one or more layers, choose a tool, configure parameters, and generate new geometries instantly.

Buffer Tool

Create buffer zones around geometries at a specified distance. Essential for proximity analysis, setback calculations, and impact assessment. Supports kilometers, miles, meters, and feet.

Use cases: Flood zone mapping, service area analysis, wildlife habitat buffers, noise impact zones

Union Tool

Merge multiple polygons into a single combined geometry. Dissolves internal boundaries between overlapping or adjacent polygons.

Use cases: Combining parcels, merging administrative boundaries, creating unified coverage areas

Centroid Tool

Calculate the geometric center point of polygons or feature collections. Useful for labeling, spatial indexing, and finding representative points.

Use cases: Label placement, facility location analysis, center-of-mass calculations

Layer Management System

Work with multiple spatial datasets simultaneously using the layer management panel. Each layer is color-coded by source type: purple for hand-drawn geometries, green for spatial analysis results, and blue for converted or imported data.

Layer Operations

  • Select layers: Click layers in the panel or directly on the map (supports overlapping geometry selection)
  • Zoom/Pan to selection: Focus the map view on selected layers
  • Batch selection: Select all or deselect all layers with one click
  • Delete layers: Remove selected layers or clear all layers
  • Edit geometries: Modify vertices, reshape, or move features using the edit toolbar
  • Export selected: Export only the layers you've selected in your chosen format

Practical Tutorials

Converting PostGIS Data for Web Maps

Scenario: You have WKT geometry from a PostgreSQL/PostGIS query and need to display it on a Leaflet map.

  1. Paste your WKT (e.g., POLYGON((...))) into the WKT input field
  2. Click Convert to process the geometry
  3. The geometry appears on the map and is added to the layer panel
  4. Copy the GeoJSON from the GeoJSON field, or use Export to download as a file
  5. Use the exported GeoJSON directly with L.geoJSON() in your Leaflet application

Creating Buffer Zones for Site Analysis

Scenario: You need to create a 500-meter buffer around a property boundary for environmental impact assessment.

  1. Import your property boundary (GeoJSON, WKT, or draw it on the map)
  2. Open the GIS Tools section in the sidebar
  3. Select the property layer in the layer panel
  4. Choose Buffer from the tool dropdown
  5. Enter 500 as the distance and select meters
  6. Click Execute to generate the buffer zone
  7. Export the buffer as KML to view in Google Earth, or as GeoJSON for web maps

Batch Processing H3 Cells

Scenario: You have a list of H3 cell indices from a data pipeline and need to visualize them on a map.

  1. Click the H3 Index Converter header to expand the section
  2. Click the Batch button to open batch processing
  3. Paste your H3 indices (one per line or comma-separated)
  4. Click Process All to convert all cells to polygon boundaries
  5. Each H3 cell becomes a separate layer, named with its index for easy identification
  6. Use Union tool if you need to merge adjacent cells into a single polygon

Editing Geometry and Sending It to Google Earth

Scenario: You have a boundary to refine and then open in Google Earth.

  1. Add the boundary by pasting its WKT or GeoJSON, importing a .geojson, .wkt or .wkb file, or drawing it on the map
  2. Select the layer, then use the edit toolbar (pencil icon) on the map to drag its vertices
  3. Open the Import & Export section in the sidebar
  4. Choose KML (.kml) as the export format and download the file
  5. Open it in Google Earth. Note that KML export writes only the outer ring of a polygon, so a shape with holes will be flagged before the file is written
  6. Keep a GeoJSON or WKT copy as well if the holes or the attributes matter

Use Cases by Industry

Urban Planning & GIS

  • Convert CAD exports to GeoJSON for web portals
  • Create buffer zones for zoning analysis
  • Merge parcels for redevelopment studies
  • Debug geometry errors from database queries

Web Development

  • Convert database geometries to GeoJSON for Leaflet/Mapbox
  • Validate and visualize API response geometries
  • Generate test data for location-based features
  • Convert between coordinate formats for different APIs

Data Science & Analytics

  • Convert H3 cells to polygons for visualization
  • Export spatial data to CSV for analysis in Python/R
  • Calculate centroids for clustering analysis
  • Batch process coordinate lists from datasets

Environmental & Field Work

  • Export field boundaries to GPX for GPS devices
  • Convert survey coordinates to mapping formats
  • Create KML files for Google Earth presentations
  • Generate buffer zones for habitat analysis

Technical Specifications

Supported Geometry Types

  • Point / MultiPoint
  • LineString / MultiLineString
  • Polygon / MultiPolygon
  • GeometryCollection
  • H3 hexagonal cells (all 16 resolution levels)

Standards Compliance

  • OGC Simple Features (WKT/WKB)
  • RFC 7946 (GeoJSON)
  • OGC KML 2.2
  • GPX 1.1
  • Uber H3 Specification

Browser Compatibility

  • Chrome, Firefox, Safari, Edge (latest versions)
  • Mobile browsers (iOS Safari, Chrome for Android)
  • No server-side processing required
  • Works offline after initial page load

Libraries Used

  • Leaflet.js for mapping
  • Turf.js for spatial analysis
  • h3-js for hexagonal indexing
  • wellknown & wkx for WKT/WKB

Privacy and Data Handling

All data processing happens entirely in your browser. Your spatial data is never uploaded to any server. This means:

References