WKT (Well-Known Text)GeoJSON (RFC 7946)
Map Visualizer →
Free Online GIS Converter

Convert WKT to GeoJSON Online Free

Well-Known Text (WKT) represents geometry as plaintext keywords with coordinate lists, whereas GeoJSON formats geographic features as structured JSON for web maps. Converting WKT to GeoJSON enables PostGIS database exports to render directly in Leaflet, Mapbox, OpenLayers, and D3.

Input (WKT)
GeoJSON

SQL & Code Example

How to perform this conversion directly in your PostgreSQL / PostGIS database:

-- Convert PostGIS geometry directly to GeoJSON
SELECT ST_AsGeoJSON(ST_Transform(geom, 4326))::jsonb AS geojson
FROM parcels
WHERE id = 1;

Frequently Asked Questions

How does WKT coordinate order compare to GeoJSON?+

Both WKT and standard GeoJSON use longitude (X) followed by latitude (Y) order. For example, POINT(-77.04 -12.04) represents 77.04° West longitude and 12.04° South latitude.

Can this tool convert PostGIS ST_AsText output to GeoJSON?+

Yes. Copy the output of ST_AsText(geom) from your SQL console and paste it into the converter to get valid GeoJSON immediately.

Does it support MultiPolygon and GeometryCollection?+

Yes. All OGC geometry types including MULTIPOLYGON, MULTILINESTRING, MULTIPOINT, and GEOMETRYCOLLECTION are parsed accurately.

WKT Geometry Reference

Not sure your input is valid? Each geometry type has its own page with syntax rules, the mistake that most often breaks it, and PostGIS and Shapely recipes.

More GIS Converters