Live Online Convertershapefile → gpx

Shapefile to GPX Converter

Converts point and line Shapefiles from a ZIP to GPX with GDAL's ogr2ogr.

Upload a ZIP with Shapefiles. Points become GPX waypoints, lines routes. The worker reprojects to WGS84 when the Shapefile has a .prj. A Shapefile with polygons only cannot be converted, because GPX has no areas.

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.
  • GPX knows only waypoints, routes and tracks. Points become waypoints, lines become routes, multilines become tracks.
  • Polygons cannot be stored in GPX and are not exported; the report names the layer and the number of polygons.
  • GPX requires longitude/latitude: the worker reprojects to WGS84 (-t_srs EPSG:4326) if every layer has a coordinate system. If one does not, the coordinates are written unchanged and the report warns about it.
  • Attributes that are not standard GPX fields are written as GPX extensions (<ogr:name> elements, option GPX_USE_EXTENSIONS=YES).
  • 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 GPX converted.gpx input.shp input -t_srs EPSG:4326 -dsco GPX_USE_EXTENSIONS=YES

Tested with

Test fileResult
ZIP with 4 points in EPSG:258324 of 4 waypoints in WGS84 (Köln at lat 50.943, lon 6.9583); field id as extension ogr:id
ZIP with 1 polygonRefused (HTTP 422): "The conversion did not write any features."; report: 1 area not exported

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.
  • Polygons are not exported (GPX has no areas).
  • 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