Convertur

Convert GPX to GeoJSON

Convert GPX to GeoJSON online. Turn tracks, routes and waypoints into a clean FeatureCollection for Leaflet, Mapbox and QGIS. No upload.

Loading tool...

What is GeoJSON?

GeoJSON is a JSON format for map features: points, lines and polygons with properties. Nearly every web map library and GIS tool reads it.

Why convert GPX to GeoJSON?

GeoJSON loads straight into Leaflet, Mapbox GL, OpenLayers and QGIS. Converting a GPS recording gives you data you can style, filter and analyse in code.

How to convert GPX to GeoJSON

Drop a .gpx file above and press Convert. togeojson, from the Mapbox and Placemark developers, turns GPX tracks, routes and waypoints into a formatted FeatureCollection in your browser. Coordinates are written as longitude, latitude and elevation. Track point times and heart rate or cadence extensions are kept in each feature's properties. Download the .geojson file and drop it into your map.

What to do with the GeoJSON

Drop the file onto geojson.io to view and edit it, load it with L.geoJSON in Leaflet or as a source in Mapbox GL, import it into QGIS as a vector layer, or store it in PostGIS with ogr2ogr. Each track becomes one feature, so you can style rides or hikes separately.

Before you start

Input: GPX. Output: GeoJSON. The settings appear before anything runs, so you can check them first. Your original file is never changed.

These formats often follow rules set by one app or device. Test the result where it will be used, and keep the source in case you need to export it again.

Keep the original until you have opened and checked the result. The work happens in this browser tab, so the size you can handle depends on your device's memory, your browser and the file itself.

Steps to convert GPX to GeoJSON

  1. Drop a .gpx file into the zone above.
  2. Convertur reads it into GeoJSON features.
  3. Press Convert. It all runs in your browser.
  4. Download the .geojson file and load it into your map.

Last updated · How we build and check tools · Report an error

Learn more

Related tools

GPX to GeoJSON FAQ