GPX GEOJSON
File conversion

Convert GPX to GEOJSON

QUICK ANSWER
Is it possible to convert GPX to GEOJSON?
Yes - GPX converts to GEOJSON.

Use GPS Visualizer online to upload your .gpx and download a .geojson file immediately. GPSBabel and QGIS are desktop alternatives for batch work or when you need to edit the data before exporting.

Also to GEOJSON: SHP · OSM · TAB

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert GPX to GEOJSON?

Web mapping libraries like Leaflet and Mapbox do not read GPX natively - .geojson is their standard format. Converting lets you display GPS tracks on a web map, run geospatial queries, or feed data into a GIS pipeline without a plugin.

How to convert GPX to GEOJSON

GPSBabel OPEN-SOURCE

Set input to GPX and output to GeoJSON in GPSBabel, select your files and click Apply. Also available for macOS and Linux.

QGIS OPEN-SOURCE

Drag your .gpx into the Layers panel, right-click the layer and choose Export > Save Features As, then set the format to GeoJSON. Also available for macOS and Linux.

About these formats

Quality & what to watch

  • Tracks become LineString or MultiLineString geometries; waypoints become Point features - all carry over cleanly.
  • GPX extension data such as heart rate, cadence or temperature is not part of the GeoJSON spec and is silently dropped by most converters.
  • Dense tracks recorded at 1-second intervals produce large GeoJSON files; consider simplifying the track if file size is a concern for web use.

Frequently asked questions

Do I lose any GPS data converting to GeoJSON?
Core coordinates, elevation and timestamps transfer; Garmin extension data such as heart rate does not survive.
Can QGIS handle waypoints and tracks from the same GPX?
Yes, QGIS presents GPX layers separately - tracks, waypoints and routes - and you can export each as its own GeoJSON file.
Is GeoJSON the same as regular JSON?
GeoJSON is JSON with a specific structure for geographic features defined in IETF RFC 7946.