GPX to GeoJSON Converter

Convert GPS tracks, waypoints, and routes from GPX to GeoJSON — free, private, and entirely in your browser. Supports Garmin, Strava, Komoot, AllTrails, and any standard GPX file.

Drag & drop your .gpx file here

or click to browse

or paste GPX text

Frequently Asked Questions

What is a GPX file?

GPX (GPS Exchange Format) is an open XML-based standard for GPS data. It stores waypoints, tracks, and routes with coordinates and optional attributes like elevation, timestamps, and names. It is used by Garmin devices, Strava, Komoot, AllTrails, and virtually every GPS app.

Why convert GPX to GeoJSON?

GeoJSON is the standard format for web mapping. Converting GPX to GeoJSON lets you use your GPS data with Leaflet, Mapbox GL JS, QGIS, PostGIS, and any modern mapping tool.

What GPX elements are converted?

This converter supports all three GPX element types: tracks (<trk>) become GeoJSON LineStrings with all track points, waypoints (<wpt>) become GeoJSON Points, and routes (<rte>) become GeoJSON LineStrings.

Is elevation data preserved?

Yes. If your GPX file includes elevation data (<ele> elements), the converted GeoJSON coordinates will include the elevation as the third value in each coordinate pair, following the GeoJSON spec for 3D geometries.

Is my GPS data private?

Completely. All conversion happens in your browser using JavaScript — your GPX file is never uploaded to any server.

How do I export a GPX file from Strava?

On Strava: open an activity → click the three-dot menu (⋯) → select "Export GPX". On mobile: tap the activity → tap the three dots → Export GPX.

Need to visualize your GPS tracks on an interactive map? Try the full GeoDataTools app.

Open GeoDataTools App