My Location Tool

GPX to GeoJSON Converter

Convert .gpx files into standard GeoJSON FeatureCollections for web maps, APIs and GIS workflows — processed 100% locally.

100% Browser-Side

GPX to GeoJSON Converter

Transform GPX tracks and waypoints into clean GeoJSON FeatureCollections for web maps and GIS projects.

Upload a file, paste GPX/KML/GeoJSON text, or click Load Sample Track.

Map is loading…
Drag, zoom or tap the map to choose a point.© Esri, HERE, Garmin, OpenStreetMap contributors

Convert GPX tracks into clean RFC 7946 GeoJSON

GPX XML is verbose and slow to parse in modern JavaScript web maps. Upload or paste any .gpx file above to preview the geometry on a live map and export a clean GeoJSON FeatureCollection ready for Leaflet, Mapbox GL JS, MapLibre, OpenLayers, QGIS or PostGIS.

Standard GeoJSON axis order & structure

According to the RFC 7946 GeoJSON specification, coordinates must be stored as [longitude, latitude] (or [longitude, latitude, elevation] when altitude is present). Our browser-side converter automatically translates GPX <wpt> nodes into GeoJSON Point features and <trkseg> / <rte> sequences into LineString features while keeping feature names inside properties.name.

Why browser-side conversion matters for developers & athletes

  • Instant formatting: Pretty-printed JSON ready to copy straight into a code editor or download as .geojson.
  • Visual sanity check: Spot swapped coordinates or stray GPS spikes on the map before committing data to a repository.
  • Complete privacy: Files never touch an external upload bucket.

Need to go the other direction?

Use our GeoJSON to GPX Converter whenever you need to send web-map routes back to a handheld GPS unit.

Mind the coordinate order when using the output in web maps

GPX uses latitude and longitude attributes on track points. GeoJSON position arrays are ordered longitude first, then latitude. That difference is easy to overlook in custom scripts: swapping them can move a line to another continent or produce out-of-range values. Load the result on a test map and compare a known waypoint before processing an entire archive.

A track generally becomes a line geometry and a waypoint becomes a point geometry. Recorded time and other GPX extensions may not survive with the same attribute names, so confirm the properties needed by your analysis.