Convert GPX Tracks to GeoJSON, Free and Private

Convert a GPX GPS track (from a fitness watch, hiking app, or GPS device) into GeoJSON, in your browser. Ready for web maps.

Universal File Converter: Private & Fast

Convert images, videos, audio, and documents directly in your browser. Your files never leave your device, ensuring 100% privacy and security.

Geodata Converter

Convert KML or GPX to GeoJSON, or GeoJSON back to KML or GPX, locally.

100% In-Browser Processing

Your files are processed strictly in local device memory. Nothing is uploaded. See how, and check for yourself.

How It Works

How to convert files with DuckConvert

1

Select Your File

Choose the file you want to convert from your device or drag and drop it into the converter.

2

Choose Output Format

Select your desired output format and any specific settings for your conversion.

3

Convert & Download

Click "Start Conversion" and wait for the local process to finish, then download your new file.

This conversion runs entirely in your browser, so nothing is uploaded. Check it yourself in the DevTools Network tab.

GPX is the standard export format for GPS tracks and waypoints from fitness watches, hiking apps like AllTrails or Strava, and dedicated GPS units, but showing that track on a web map usually means GeoJSON. This converts GPX track points, routes, and waypoints (including elevation and timestamps where present) into GeoJSON features you can load directly into Leaflet, Mapbox, or MapLibre.

Three kinds of thing in one file

GPX distinguishes tracks, routes and waypoints, and the difference matters. A track is a record of where you actually went, a dense series of points logged by a device as you moved. A route is a plan, a sparse sequence of points describing where you intend to go. A waypoint is a single marked location, standing on its own.

GeoJSON has no equivalent vocabulary, so tracks and routes both become line geometries and waypoints become points. If your file contained both a planned route and the recorded track of the same outing, they arrive as two lines that look alike, and telling them apart afterwards means looking at their names or their point density.

What happens to elevation and time

This is what makes GPX worth converting rather than just viewing. Every point a GPS logger records carries a timestamp and usually an elevation, and often more besides, from heart rate to cadence, depending on the device. That is a time series with a geometry attached, not merely a shape on a map.

GeoJSON can hold elevation directly, as an optional third value in each coordinate. The per-point timestamps and sensor readings have no standard home in the specification and end up in the feature's properties, where the structure depends on the source device. If you are planning to analyse pace or climb rate rather than simply draw the line, check that those per-point arrays came through before you build anything on top of them.

Converting GPX to GEOJSON, step by step

  1. Drop your .gpx file into the box above.
  2. Confirm GeoJSON is selected as the output format.
  3. Click Convert. Parsing happens locally in your browser.
  4. Download the resulting .geojson file.

Frequently Asked Questions on Secure GPX to GEOJSON Conversion

Are elevation and timestamps preserved?

Yes, where present in the source GPX, elevation and timestamp values are carried over as properties on the resulting GeoJSON features.

What if my GPX file has multiple tracks or waypoints?

Each track, route, and waypoint in the file becomes its own GeoJSON feature in the output.

Will this work with a Strava or Garmin export?

Yes. Any standards-compliant GPX export, including from Strava, Garmin Connect, or AllTrails, is supported.