Geometry Converter
100% client-side — no data sent to server

Geometry Format Converter — WKT, GeoJSON & WKB

Convert between Well-Known Text, GeoJSON and WKB hex in your browser. Supports POLYGON, POINT, LINESTRING, MULTIPOLYGON and every OGC geometry type from PostGIS, Shapely and GDAL. For a single format pair, use the dedicated converters below.

Input
GeoJSON

WKT examples

POINT

LINESTRING

POLYGON

MULTIPOINT

MULTILINESTRING

MULTIPOLYGON

What is WKT (Well-Known Text)?+

WKT is a text markup language for representing vector geometry objects. It is used in PostGIS (PostgreSQL), Shapely (Python), GDAL, and most GIS tools. Examples: POINT(lng lat), POLYGON((x1 y1, x2 y2, ...)).

What is the difference between WKT and GeoJSON?+

WKT is a compact text format common in databases (PostGIS). GeoJSON is a JSON-based format used in web mapping (Leaflet, Mapbox, D3). Both represent the same geometries — this tool converts between them instantly.

What is WKB (Well-Known Binary)?+

WKB is the binary equivalent of WKT, typically stored as a hex string. PostGIS returns WKB by default (e.g., 0101000000...). Use ST_AsText() to get WKT, or paste the hex here to convert.

How to convert PostGIS geometry to GeoJSON?+

Run: SELECT ST_AsText(geom) FROM your_table. Paste the result here and select "WKT → GeoJSON". Or use ST_AsGeoJSON(geom) directly in PostgreSQL.

Specific Conversion Tools

Want to visualize your geometries on a map? Open WKT Map Viewer →