KML, KMZ, GPX, GeoJSON, CSV or a shapefile (parts or ZIP), up to 200 MB, converted to GeoJSON in your browser. Nothing is uploaded.

Files never leave your browserHow?

This GPX to GeoJSON converter turns waypoints into points and tracks and routes into lines, keeping the time of every track point — and heart rate, cadence, temperature and power from Garmin extensions — in coordinateProperties. The output works in Leaflet, Mapbox, D3 and GIS.

Last updated:

How it works

  1. Open the GPX

    Press Open GPX file.

  2. Format

    One feature per line on or off, and Coordinate decimals for size.

  3. Convert

    Press Convert to GeoJSON.

Features

  • Per-point data kept

    Times, heart rate, cadence, temperature and power become arrays next to the coordinates, in the same order — the @tmcw/togeojson convention.

  • Segments preserved

    A track with several segments becomes a MultiLineString, so pauses are not bridged by a straight line.

  • GPX type marked

    Each line has _gpxType trk or rte, so the GeoJSON can go back to a GPX with tracks and routes intact.

Limits & privacy

One input can be up to 200 MB (50 MB on phones and devices with 4 GB of memory or less) and up to 5 million vertices (1 million there).

The GPX stays on your device — see the privacy page. For Google Earth use GPX to KML.

Example: for a data-visualization blog post, convert your marathon GPX to GeoJSON and color the line by the heart-rate array in D3.

FAQ

Where are the timestamps?

In properties.coordinateProperties.times: one time per coordinate, an array per segment for multi-segment tracks.

Is the elevation kept?

Yes, the elevation is kept in GeoJSON, as the third coordinate.

Will Mapbox and Leaflet read it?

Yes, Mapbox and Leaflet read the GeoJSON; extra properties are ignored by map libraries that do not use them.

Can I convert it back to GPX?

Yes, it converts back to GPX with GeoJSON to GPX.

Is my track uploaded?

No, your track is not uploaded: the conversion runs in your browser.

What happens to waypoint symbols?

The <sym> of each waypoint becomes a sym property, next to name, desc and time.

Can several GPX files be converted together?

Yes, several GPX files can be converted together; select them at once: each file becomes its own layers, and the GeoJSON gets a layer property naming file and layer.

Related tools