GPX to GeoJSON
Convert a GPS Exchange (GPX) track from Strava, Garmin, or any GPS device to GeoJSON.
About GPX to GeoJSON
GPX to GeoJSON converts a GPS Exchange track — the file your Strava export, Garmin watch, or handheld GPS produces — into GeoJSON your web mapping stack can read directly. Use it when you want to render a recorded route on a Leaflet or Mapbox map, run it through analysis code, or store it alongside other GeoJSON layers. It all happens in your browser, so your routes and the places you've been stay private.
- Category
- convert
- Input
- Accepts: application/gpx+xml, application/xml, text/xml or text/plain.
- Output
- Outputs: application/geo+json.
- Cost
- Free, runs in your browser
- Memory
- low
Common uses
- Drop a Strava ride export onto a Leaflet map by converting the GPX track to GeoJSON your front end already understands
- Feed a Garmin hiking track into a web app that consumes GeoJSON for distance and elevation analysis
- Combine several recorded GPX routes into one GeoJSON layer for a trip map
- Convert a GPS device track log into GeoJSON to store in a PostGIS or geospatial database pipeline
- Visualize a running route in a custom dashboard built around the GeoJSON spec
- Hand a developer a GeoJSON version of a tracked route instead of asking them to parse GPX
Frequently asked questions
Which GPX sources work?
Any standard GPX 1.0 or 1.1 file — exports from Strava, Garmin Connect, Komoot, or any GPS device that writes the GPX format.
Does it upload my track to a server?
No. Parsing and conversion run entirely in your browser, so the route and its timestamps never leave your device.
Are track points, routes, and waypoints all converted?
Yes. Tracks and routes become LineStrings and waypoints become Points in the resulting GeoJSON FeatureCollection.
What about elevation and time data?
Coordinates carry elevation where present, and GeoJSON stores latitude, longitude, and altitude per point.
Is there a size limit on the GPX file?
No fixed limit. Since it runs locally, very long multi-hour tracks are only constrained by your browser's memory.
What output format do I get?
A GeoJSON FeatureCollection (application/geo+json) ready to load into mapping libraries or geospatial tools.
Keywords
- gpx
- geojson
- geo
- convert
- gps
- strava
- garmin
- track
- route
- fitness