WKT GeoJSON Converter - Convert WKT to GeoJSON Online
Free WKT GeoJSON converter: convert between Well-Known Text (WKT) and GeoJSON formats online. Validate, edit and visualize geometric data instantly.
What is WKT and GeoJSON?
WKT (Well-Known Text) is a text markup language for representing vector geometry objects. It's a standard format used in GIS software, databases (like PostGIS), and spatial data exchange.
GeoJSON is a JSON-based format for encoding geographic data structures. It's widely used in web mapping applications and provides a more verbose but human-readable representation of geometries.
Key differences:
- Format: WKT is compact text, GeoJSON is JSON-based
- Usage: WKT for databases/GIS, GeoJSON for web applications
- Structure: WKT is simpler, GeoJSON includes properties and metadata
- Support: WKT in spatial databases, GeoJSON in JavaScript libraries
WKT Format Examples
WKT represents geometries as text strings:
- POINT: POINT(30 10)
- LINESTRING: LINESTRING(30 10, 10 30, 40 40)
- POLYGON: POLYGON((30 10, 40 40, 20 40, 10 20, 30 10))
- MULTIPOINT: MULTIPOINT((10 40), (40 30), (20 20))
- MULTILINESTRING: MULTILINESTRING((10 10, 20 20), (15 15, 30 15))
WKT is widely supported in spatial databases like PostGIS, MySQL Spatial, and Oracle Spatial.
GeoJSON Format Examples
GeoJSON represents geometries as JSON objects:
{
"type": "Point",
"coordinates": [30, 10]
}GeoJSON can include feature properties and is the preferred format for web mapping libraries like Leaflet, Mapbox GL, and OpenLayers.
Common Use Cases
Convert between WKT and GeoJSON for:
- Database Import/Export: Transfer spatial data between PostGIS and web apps
- Web Mapping: Convert WKT from databases to GeoJSON for visualization
- Data Migration: Move data between different GIS systems
- API Integration: Transform geometry formats for different services
- Validation: Check geometry validity in both formats
Supported Geometry Types
This converter supports all standard geometry types:
- Point, MultiPoint
- LineString, MultiLineString
- Polygon, MultiPolygon
- GeometryCollection
Both 2D and 3D coordinates are supported. The converter automatically handles coordinate transformations and validates geometry structure.