Live Online Converterwkt → geopackage

WKT to GeoPackage Converter

Converts a text file with WKT geometries (one per line) to a GeoPackage with GDAL.

Upload a .wkt or .txt file with one geometry per line. All lines go into one GeoPackage layer with the attribute line (line number). EWKT SRIDs are used as coordinate system; without SRID the layer has none.

Drag a file here to convert, or select file

Accepted: .wkt, .txt · max. 50 MB

Direct upload to the GDAL worker (Fly.io, Frankfurt)Files are deleted after the conversion

What the converter does

  • The file must contain one geometry per line as WKT (e.g. POINT (7 50)) or EWKT with SRID (SRID=25832;POINT (356000 5645000)). Empty lines are ignored; other lines are skipped and counted in the report.
  • GDAL has no driver for plain WKT text files. The worker therefore writes the lines into a CSV with the columns line and WKT, and GDAL's CSV driver reads the geometry from there. The output has an attribute line with the line number from your file.
  • An SRID from EWKT becomes the coordinate system (-a_srs EPSG:<SRID>). Lines with different SRIDs are refused; upload one file per SRID.
  • Without SRID the layer has no coordinate system; assign it in your GIS.
  • The report below the upload shows layers and features read and written, skipped layers with the reason, GDAL's warnings and the exact commands.

GDAL command the worker runs

sh — gdal
$ogr2ogr -f GPKG converted.gpkg wkt_csv/input.csv input -oo GEOM_POSSIBLE_NAMES=WKT -oo KEEP_GEOM_COLUMNS=NO -oo AUTODETECT_TYPE=YES

wkt_csv/input.csv is the CSV the worker writes from your lines. For EWKT with SRID the worker adds -a_srs EPSG:<SRID>.

Tested with

Test fileResult
4 lines: POINT, LINESTRING, POLYGON, MULTIPOINT1 layer of type Geometry, 4 of 4 features, no coordinate system

Tested on 24 Sep 2026 with the worker code of this site and GDAL 3.10.3 (conda-forge build on Windows). The worker image runs the Debian build of the same GDAL version; the live worker was not part of these tests.

Limits

  • Upload limit: 50 MB per file.
  • Each GDAL step may run for up to 240 seconds; a longer run is stopped with an error message.

Frequently Asked Questions

What happens to my file?

Your browser uploads it directly to the GDAL worker on Fly.io (region Frankfurt). The worker converts it in a temporary folder and deletes the folder after sending the result, or immediately if the conversion fails. Files are not stored permanently.

Related conversions