ToolJoltTools

WKT Viewer & Converter

Visualize Well-Known Text geometries from PostGIS/SQL — paste WKT, see it on a map, convert to GeoJSON/KML/CSV. Client-side, free.

Paste data or open a file

Everything parses in your browser — files are never uploaded.

Field guide: WKT Viewer & Converter

WKT is what geometry looks like when a database talks: SELECT ST_AsText(geom) and out comes POLYGON((...)) — precise, portable, and completely unvisualizable in your SQL client. This viewer is the missing st_preview(): paste one geometry or a whole column's worth (one per line), and points, linestrings and polygons render instantly with vertex counts. The reverse direction works too — paste GeoJSON, export WKT for an INSERT statement.

It's the debugging tool for the classic spatial-SQL failure modes: the polygon that's invalid because the ring doesn't close, the geometry in the wrong hemisphere because axis order got swapped, the 'why is ST_Contains false' that becomes obvious the moment both shapes are visible. Everything parses locally — production data stays exactly as private as your psql session.

Field tips

  • Paste straight from query output — one geometry per line; SRID= prefixes and trailing commas/quotes from result sets are tolerated poorly, so strip them.
  • WKT axis order here is X Y (longitude latitude) matching PostGIS defaults — if your data lands in Antarctica, your columns are swapped.
  • Round-trip trick: GeoJSON in → WKT out gives you copy-paste geometry literals for ST_GeomFromText() seeds and tests.
Sources & standards: OGC Simple Features — WKT specification; PostGIS ST_AsText / ST_GeomFromText

Records are stored only in this browser (localStorage) — export regularly. This tool aids field documentation; it does not replace your agency's official inspection procedures or engineering judgment.

WKT Viewer & Converter — Visualize Well-Known Text geometries from PostGIS/SQL — paste WKT, see it on a map, convert to GeoJSON/KML/CSV. Client-side, free. Free, offline-first and GPS-aware: open it on any phone, log in seconds, and hand your GIS team clean GeoJSON.

About WKT Viewer & Converter

WKT is what geometry looks like when a database talks: SELECT ST_AsText(geom) and out comes POLYGON((...)) — precise, portable, and completely unvisualizable in your SQL client. This viewer is the missing st_preview(): paste one geometry or a whole column's worth (one per line), and points, linestrings and polygons render instantly with vertex counts. The reverse direction works too — paste GeoJSON, export WKT for an INSERT statement.

How to use WKT Viewer & Converter

  1. 1Open the tool — it loads instantly and runs entirely in your browser.
  2. 2Enter or import your field data; everything stays on your device.
  3. 3Review the computed results and flagged items.
  4. 4Export to CSV/GeoJSON or print a report for stakeholders.

Why use WKT Viewer & Converter?

  • 100% free, no sign-up — built for crews, not per-seat licences
  • Offline-first: records save to your device instantly and survive dead zones
  • One-tap GPS tagging with accuracy capture on every record
  • Exports CSV for asset systems, GeoJSON for GIS, and print-ready reports
  • Checklist and guidance aligned with OGC Simple Features

Frequently asked questions

Which WKT types are supported?+

POINT, LINESTRING and POLYGON (outer ring) — the workhorses of debugging. MULTI* and GEOMETRYCOLLECTION aren't parsed; in practice you're usually inspecting individual rows, and ST_Dump() in PostGIS explodes multis into single geometries that paste here perfectly.

How do I view a whole table's geometries?+

SELECT ST_AsText(geom) FROM table LIMIT 200, copy the column, paste — each line renders as a feature. For more context, ST_AsText with an id: paste the geometry column here and keep ids alongside in your editor; or export the table as GeoJSON from the database and load that instead.

What about SRIDs and projected coordinates?+

The viewer assumes WGS84 lon/lat (EPSG:4326) — the web-map norm. Projected coordinates (UTM meters, state plane feet) will 'work' but render as abstract shapes without a real-world basemap position; ST_Transform(geom, 4326) first if you want it on the map.

Why does my polygon fail to parse?+

Usual suspects: single parentheses instead of double (POLYGON needs ((…)) for the ring list), an unclosed ring (first point must repeat last — this viewer closes display-side, databases won't), or commas inside coordinate pairs (WKT separates x y by space, pairs by comma).

Embed WKT Viewer & Converter on your website

Want WKT Viewer & Converteron your own site? Paste this snippet into any HTML page — it's free, with no API key or sign-up. The tool loads in an iframe and keeps working exactly as it does here.

Embed code
<iframe src="https://tooljolt.com/tools/wkt-viewer" width="100%" height="640" style="border:1px solid #e5e7eb;border-radius:12px;max-width:680px" title="WKT Viewer & Converter — ToolJolt" loading="lazy"></iframe>

Related tools

Related GIS tools

Sponsored