WKT Converter — WKT ↔ GeoJSON
Instantly convert between Well-Known Text (WKT) and GeoJSON in both directions; preview the result on the map, copy it, or download it. Everything runs in your browser — your data never leaves your device.
How to Use
Paste your WKT string into the top box and click WKT → GeoJSON; or paste your GeoJSON into the lower box and use GeoJSON → WKT. The converted data is automatically displayed on the map.
Related Tools
WKT Converter — Convert Between WKT and GeoJSON Instantly
Well-Known Text (WKT) is the OGC-standard plain-text encoding for geometry used by virtually every spatial database and GIS platform — PostGIS, Oracle Spatial, ArcGIS, and many others store and exchange geometry in this format. GeoJSON, on the other hand, has become the de facto standard for sharing spatial data on the web and in modern GIS APIs. Translating between the two formats manually is tedious and error-prone; this free online converter handles it instantly.
Paste any WKT string or GeoJSON document, click one button, and the converted geometry appears on the interactive map preview alongside the formatted output text. Bidirectional conversion means you can move geometry freely between your spatial database, your web mapping application, and any GIS workflow — all in the browser, with no data sent to a server.
Supported Geometry Types
- Point: Single coordinate locations, such as landmarks or sensor positions.
- LineString: Roads, rivers, pipelines, and any linear feature.
- Polygon: Administrative boundaries, land parcels, and any closed area.
- MultiPoint, MultiLineString, MultiPolygon: Multi-part features often found in administrative or utility datasets.
- GeometryCollection: Mixed-type geometry groups returned by spatial database queries.
How to Use
To convert WKT to GeoJSON, paste your WKT string into the top text area and click WKT → GeoJSON. The output appears in the GeoJSON box below and the geometry is drawn on the map. To go the other direction, paste GeoJSON into the lower text area and click GeoJSON → WKT. Use the Format button to pretty-print the GeoJSON output, Copy to copy it to your clipboard, or Download to save it as a file.
Secure and Client-Side
Just like our GeoJSON Formatter and Coordinate Converter, this tool processes all data entirely in your browser — nothing is ever sent to a server. For converting shapefiles, try the Shapefile to GeoJSON converter.
What Is WKT (Well-Known Text)?
Well-Known Text (WKT) is an Open Geospatial Consortium (OGC) standard for writing geometry as a plain, human-readable text string. Instead of binary blobs or verbose markup, a shape becomes a compact line you can read, copy, and paste anywhere. Because it is a recognised standard, the same WKT string is understood by spatial databases, desktop GIS, and programming libraries alike — which is exactly why it has become a common language for exchanging geometry.
WKT Geometry Examples
A WKT string starts with the geometry type in capitals, followed by coordinates in parentheses. Coordinates are written as longitude latitude (X then Y), separated by spaces:
- POINT — a single location:
POINT(28.9784 41.0082)(a point in Istanbul). - LINESTRING — a connected path such as a road or river:
LINESTRING(30 10, 10 30, 40 40). - POLYGON — a closed area where the first and last points match:
POLYGON((30 10, 40 40, 20 40, 10 20, 30 10)).
There are also multi-part variants — MULTIPOINT, MULTILINESTRING, and MULTIPOLYGON — plus GEOMETRYCOLLECTION for mixing types in one object. This converter supports all of them.
Why Convert Between WKT and GeoJSON?
WKT and GeoJSON describe the same shapes but serve different worlds. WKT is the native text format of spatial databases, while GeoJSON is the format web maps and JavaScript mapping libraries expect. If you pull geometry out of a database as WKT, converting it to GeoJSON lets you display it directly in a browser-based map with no extra tooling. Going the other way — GeoJSON to WKT — lets you take a shape drawn or edited in a web app and store it back in a database. Doing this by hand is tedious and easy to get wrong, so an automated, two-way converter saves real time.
WKT in PostGIS, Oracle, and Other Databases
Spatial databases lean heavily on WKT. In PostGIS, ST_AsText(geom) returns a geometry column as WKT and ST_GeomFromText('POINT(30 10)', 4326) reads one back in; Oracle Spatial, SQL Server, and ArcGIS all offer equivalent functions. That makes WKT the natural bridge between your database and any web mapping application — extract as WKT, convert to GeoJSON here, and visualise it instantly.
Frequently Asked Questions
What is WKT and where is it used?
WKT (Well-Known Text) is an OGC standard for representing geometric shapes as text strings. It is supported by PostGIS, Oracle Spatial, ArcGIS, and most GIS software. Examples include POINT(28.9784 41.0082) and POLYGON((30 10, 40 40, 20 40, 10 20, 30 10)).
Why convert WKT to GeoJSON?
GeoJSON is the standard geometry format used in web mapping applications and modern GIS APIs. If you retrieve geometries from a spatial database as WKT, converting to GeoJSON lets you display and work with them directly in web maps and web mapping applications without extra libraries or server-side processing.
Which geometry types are supported?
POINT, LINESTRING, POLYGON, MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, and GEOMETRYCOLLECTION are all supported. Both WKT to GeoJSON and GeoJSON to WKT conversions are bidirectional.
Does this tool send my geometry data to a server?
No. All parsing and conversion logic runs entirely in your browser using JavaScript. Your WKT or GeoJSON data never leaves your device, making the tool safe to use with sensitive or proprietary geometry data.
Can I convert GeoJSON back to WKT?
Yes. Paste your GeoJSON into the GeoJSON text area and click the GeoJSON to WKT button. The resulting WKT string appears in the WKT input box and is previewed on the map. This is useful when you need to insert geometries back into a spatial database that expects WKT format.
What does the map preview show?
After conversion, the resulting geometry is automatically drawn on the interactive map panel. This lets you visually verify that the geometry was parsed correctly before using it downstream. The map auto-zooms to fit the converted feature.
How do I use the WKT converter with PostGIS data?
Run a query like SELECT ST_AsText(geom) FROM your_table in your spatial database to extract geometries as WKT strings. Paste the result into the WKT input box here and click WKT to GeoJSON to get a GeoJSON representation you can use in web applications or further GIS analysis.