Skip to content
100% local

WKT to GeoJSON converter

Convert Well-Known Text geometries to GeoJSON, and back, entirely in your browser.

Input

WKT to GeoJSON converter

Paste Well-Known Text and this tool returns the equivalent GeoJSON, or paste GeoJSON and get WKT back — the Direction option switches which way the conversion runs. It supports every geometry the WKT standard defines: Point, LineString, Polygon (including polygons with holes), MultiPoint, MultiLineString, MultiPolygon and GeometryCollection, so a single tool covers the shapes GIS databases, PostGIS queries and mapping libraries actually export.

The Wrap option controls how GeoJSON output is packaged: as a bare geometry, as a Feature with an empty properties object, or as a FeatureCollection, useful when the result feeds a map library that expects one of those shapes. Decimal places rounds coordinates to as many digits as you need. Close polygon rings automatically appends the first point to a ring that forgot to close itself. Swap latitude/longitude order flips coordinate pairs for data authored as (lat, lon) instead of the WKT/GeoJSON default (lon, lat), a common cause of mirrored maps. Batch mode treats each line as its own geometry, converting a whole list at once, and Pretty-print JSON toggles indented output against one compact line.

If a WKT string is malformed — an unclosed parenthesis, a missing coordinate, an unrecognized geometry keyword — the error names the exact line and character position where parsing broke, instead of a generic "invalid input" message, so you can jump straight to the problem in a long geometry.

Everything runs locally in your browser using ordinary JavaScript; no coordinate ever leaves your device. When the conversion is done, copy the result, download it as a .txt file, or send it straight to another tool's input to keep working.

FAQ

Which geometry types are supported?
All seven from the WKT standard: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon and GeometryCollection, including polygons with holes and EMPTY geometries.
What does the Wrap option do?
It controls GeoJSON output shape: a bare geometry object, a Feature with an empty properties object, or a FeatureCollection bundling every converted geometry together.
How are 3D coordinates (Z or M values) handled?
WKT tags like POINT Z or POINT ZM are recognized, but only the x and y ordinates are kept — the converter works in two dimensions.
What happens when the WKT is invalid?
The tool reports the exact line and character column where parsing failed instead of converting silently, so you can find and fix the broken part.
Is my geometry data uploaded anywhere?
No. The conversion runs entirely in your browser using JavaScript — nothing is sent to a server, so private location data never leaves your device.