Live Online Convertershapefile → csv

Shapefile to CSV Converter

Writes the Shapefiles in a ZIP as CSV tables with geometry columns, using GDAL's ogr2ogr.

Upload a ZIP with Shapefiles. Each Shapefile becomes a CSV file with its attributes and the geometry: X/Y for points, WKT for lines and polygons. Several Shapefiles give a ZIP with one CSV each.

Drag a file here to convert, or select file

Accepted: .zip · max. 50 MB

Includes: .shp, .shx, .dbf
Direct upload to the GDAL worker (Fly.io, Frankfurt)Files are deleted after the conversion

What the converter does

  • The ZIP may hold several Shapefiles, also in subfolders; each becomes a layer. macOS files are ignored, the text encoding is detected (.cpg, DBF header, otherwise UTF-8 or Windows-1252) and a missing .shx is rebuilt. The report lists what was found.
  • Point layers get the columns X and Y (and Z if the points have heights) in front of the attributes; lines, polygons and mixed layers get a column WKT with the geometry as Well-Known Text.
  • CSV cannot store a coordinate system. The coordinates stay as they are and the report names their coordinate system (e.g. EPSG:4326 or EPSG:25832).
  • Several Shapefiles give a ZIP with one CSV per layer.
  • 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 CSV converted.csv input.shp input -lco GEOMETRY=AS_XY

For a point Shapefile. For lines and polygons the worker uses -lco GEOMETRY=AS_WKT -lco GEOMETRY_NAME=WKT, for points with heights -lco GEOMETRY=AS_XYZ.

Tested with

Test fileResult
ZIP with 4 points in EPSG:4326CSV with header X,Y,id,name,datum; first row 6.9583, 50.943; report: coordinates in EPSG:4326
ZIP with 1 polygon in EPSG:25832CSV with header WKT,id,art; POLYGON in metres; report: coordinates in EPSG:25832

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.
  • CSV stores no coordinate system.
  • Each GDAL step may run for up to 240 seconds; a longer run is stopped with an error message.

Frequently Asked Questions

Does the CSV contain the geometry?

Yes. Points get X and Y columns, lines and polygons a WKT column. Without these options GDAL's CSV driver would drop the geometry; the worker always sets them.

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