WKT to GeoJSON Converter

Convert between WKT and GeoJSON and see the result on a map. Inputs without a geometry type are read as a Polygon, LineString or Point.

Read the guide: WKT vs GeoJSON · EUDR geolocation

Back to the tool ↑

How it works

  1. Paste a WKT string or a GeoJSON feature. Bare coordinate lists work too: pick whether they are a Polygon, LineString or Point.
  2. The converted text appears beside it, ready to copy.
  3. The shape is drawn on the map so you can check it lands in the right place.

Everything runs in your browser. Your files are never uploaded to our servers.

Input and output

Input
WKT (POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON or GEOMETRYCOLLECTION), a bare list of coordinates, or GeoJSON.
Output
GeoJSON geometry from WKT, or WKT from GeoJSON, with the shape drawn on a map.

Example

Input

POLYGON ((-76.3658 -6.483, -76.3649 -6.483, -76.3649 -6.4821, -76.3658 -6.4821, -76.3658 -6.483))

Output

{"type":"Polygon","coordinates":[[[-76.3658,-6.483],[-76.3649,-6.483],[-76.3649,-6.4821],[-76.3658,-6.4821],[-76.3658,-6.483]]]}

Limits

  • Other WKT types, such as curves, aren't read: you get a message instead of a guessed shape. Heights (Z and M values) are dropped.
  • A bare list of coordinates is read as the type you pick: Polygon, LineString or Point.
  • GeoJSON to WKT writes every geometry type, polygon holes included. A FeatureCollection with several features becomes one GEOMETRYCOLLECTION, and feature properties are dropped.
  • Coordinates are taken as longitude then latitude in WGS84 degrees; nothing is reprojected, and an EWKT SRID prefix (SRID=4326;) is ignored.

Questions

What is the difference between WKT and GeoJSON?

Both describe shapes such as points, lines and polygons. WKT (Well-Known Text) is a compact text format used by databases like PostGIS and by spreadsheets and exports. GeoJSON is a JSON format used by web maps and most mapping libraries. The coordinates are the same; only the wrapping differs.

Why is my shape in the wrong place?

Usually the coordinates are in the wrong order. WKT and GeoJSON both expect longitude first, then latitude. If your shape lands in the ocean, the source probably wrote latitude first.

Connect your data, understand your operations.

Bring in the spreadsheets, field forms and maps you already use, and see every site in one place.