WKT to GeoJSON converter
Convert Well-Known Text geometries to GeoJSON, and back, entirely in your browser.
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.