GPX to GeoJSON Converter

Free, no sign-up, runs entirely in your browser. Paste or upload a GPX file from Strava, Garmin, Komoot or any GPS app and get a clean GeoJSON FeatureCollection back.

Options

Sharing where you've been?

Build a dotted map of the country or region your route runs through — pick it in the editor, style the dots and colours, and export a PNG for a post or trip report. SVG export is part of a paid plan.

Open the dotted map editor

What does a GPX to GeoJSON converter do?

GPX (GPS Exchange Format) is the XML file that sports watches, bike computers and apps like Strava, Garmin Connect and Komoot export when you download an activity or a planned route. GeoJSON is the format web maps, design scripts and data tools read. Both describe the same thing — points and lines on the Earth — but a GPX file won't open in most GeoJSON-based tools until it has been rewritten. This tool does that rewriting locally; nothing you paste or upload leaves your device.

A GPX file can hold three kinds of data, and each becomes its own GeoJSON feature. Waypoints (<wpt>) become Point features with their name, description, symbol and timestamp as properties. Routes (<rte>) — planned paths made of a few turn points — become LineStrings. Tracks (<trk>) — the breadcrumb trail your device actually recorded — become LineStrings too, or a MultiLineString when the recording was paused and resumed and the track has several segments.

Every route and track gets a length_km property, measured along the line on a spherical Earth, so you can sanity check the result. If the points carry timestamps they are kept in a coordTimes array that lines up with the coordinates, the same convention used by Mapbox's togeojson library, so you can still reconstruct pace or animate the route later.

The options control the shape of the output. Drop elevation writes plain longitude/latitude pairs, which is what most web maps expect; Keep elevation adds the <ele> value as a third coordinate. One feature per segment splits multi-segment tracks into separate LineStrings, useful when each segment is a different day of a trip. GPX coordinates are already WGS84 latitude/longitude, the same reference system GeoJSON uses, so no reprojection takes place — only the axis order changes to GeoJSON's longitude-first convention. Points with a missing or out-of-range lat/lon are skipped and counted in the summary rather than breaking the conversion.