OnlineMapMaker logo

GPX to GeoJSON Converter — Convert GPS Tracks Free Online

Upload a .gpx file and convert your GPS tracks, routes, and waypoints to GeoJSON format instantly — entirely in your browser, with no server upload and no account required. Preview the result on a map, inspect the output, and download your .geojson file in seconds.

Rate this tool:
Advertisement
Loading GPX converter…

From GPS Device to Web Map in One Step

GPX is the universal language of GPS devices and outdoor apps. Whether you record a morning run on a Garmin watch, log a cycling route on a Wahoo computer, track a hiking trail on OsmAnd, or export an activity from Strava — the file you get is a GPX. And GPX is great for what it does: it captures your path, timestamps, elevation, and waypoints in a portable XML format that any GPS app can read.

But the moment you want to do something creative with that data — embed a track in a website, load it into a data visualisation, process it with Python or R, or push it into a database — you run into GPX''s limitation: it is not a web format. GeoJSON is. Converting your GPX to GeoJSON takes about three seconds with this tool, and the result is a file that every mapping library on the planet accepts natively.

Advertisement

What Is GeoJSON and Why Is It Better for Web Mapping?

GeoJSON is an open standard (RFC 7946) for encoding geographic data structures using JSON. It represents the same types of data as GPX — points, lines, and polygons with associated properties — but in JSON format rather than XML. This makes it directly parseable by JavaScript without any special library, natively understood by web browsers, and compatible with every tool in the modern geodata stack.

A GeoJSON FeatureCollection looks like this at its core:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "LineString",
        "coordinates": [[8.0394, 46.6244, 1035], [8.0741, 46.6262, 1082], ...]
      },
      "properties": {
        "name": "Morning Hike",
        "coordTimes": ["2024-07-15T06:30:00Z", "2024-07-15T06:38:00Z", ...]
      }
    }
  ]
}

The third number in each coordinate is the elevation in metres, preserved directly from your GPX file. The coordTimes array preserves the timestamp of every recorded point — so your GeoJSON retains the full temporal record of your GPS track, not just the geometry.

What Data Is Preserved in the Conversion?

This converter uses the @tmcw/togeojson library, which provides one of the most complete GPX-to-GeoJSON conversions available. Here is what comes across:

  • Track geometry — all track segments, with coordinates (longitude, latitude, elevation). Multi-segment tracks become MultiLineString features.
  • Route geometry — all route points, converted to LineString features.
  • Waypoints — all waypoint elements, converted to Point features with name, description, elevation, and symbol.
  • Timestamps — per-point timestamps stored as coordTimes arrays in the feature properties.
  • Garmin extensions — heart rate, cadence, speed, power, temperature from TrackPointExtension, stored as coordinateProperties.
  • Metadata — track name, comment, description, type, and source attributes, preserved as feature properties.
Advertisement

Step-by-Step Guide

Converter Loads Ready to Use
Step 1
Converter Loads Ready to Use
The GPX to GeoJSON converter opens with an empty map and the sidebar showing the upload zone, GeoJSON preview panel, colour picker, basemap controls, and action buttons. No account or installation is needed.
Drop GPX File onto the Upload Zone
Step 2
Drop GPX File onto the Upload Zone
Drag your .gpx file from anywhere on your computer and drop it onto the dashed zone, or click the zone to open a file picker. GPX 1.0 and GPX 1.1 are both supported. Files from Garmin, Wahoo, Strava, Komoot, OsmAnd, and all major GPS apps work.
Track Appears on Map, Stats Shown
Step 3
Track Appears on Map, Stats Shown
Within moments your GPX features appear as an overlay on the map — tracks and routes as lines, waypoints as circle markers. The sidebar shows the conversion stats: total features, tracks/routes, waypoints, and total coordinate count.
GeoJSON Preview with Copy Button
Step 4
GeoJSON Preview with Copy Button
The GeoJSON Preview section shows the first lines of the converted JSON output. You can copy the complete GeoJSON to your clipboard with a single click — useful for pasting directly into Mapbox, Leaflet code, a text editor, or geojson.io for further editing.
Waypoints Show as Clickable Markers
Step 5
Waypoints Show as Clickable Markers
Waypoints from your GPX file appear as circle markers on the map. Click any waypoint to see a popup showing its name, latitude/longitude, and elevation. This lets you verify that all your named points converted correctly before downloading.
Topo Basemap for Terrain Context
Step 6
Topo Basemap for Terrain Context
Switch to the Topo basemap to see elevation contours beneath your GPX track. This is particularly useful for hiking, cycling, or ski runs where understanding terrain shape confirms the conversion accuracy for elevation-rich GPX data.
Satellite View to Verify GPS Accuracy
Step 7
Satellite View to Verify GPS Accuracy
Overlay your converted track on high-resolution satellite imagery to verify that GPS points fall where expected — roads, trails, coastlines, or field boundaries. Helps catch coordinate system issues before using the file in a production mapping project.
Change Preview Colour Anytime
Step 8
Change Preview Colour Anytime
Choose a custom colour for the map preview layer using the picker or preset palette. The colour only affects how the features appear on screen — it has no effect on the GeoJSON output, which is a data format, not a styled format.
Download the GeoJSON File
Step 9
Download the GeoJSON File
Click "Download GeoJSON" to save the converted file to your computer. The file is named after your original GPX filename with a .geojson extension. It is ready to use in QGIS, ArcGIS, Mapbox, Leaflet, GitHub, deck.gl, or any GeoJSON-compatible tool.
Zoom to Features at Any Time
Step 10
Zoom to Features at Any Time
After panning around to explore your track on different basemaps, click "Zoom to Features" to snap the view back to the full extent of your GPX data. You can upload a new file at any time — the previous layer is automatically replaced.

Common Use Cases

🗺️
Web Mapping Projects
Convert hiking routes, cycling tracks, or running paths from your GPS device to GeoJSON for embedding in a web map built with Leaflet, Mapbox GL JS, or deck.gl. GeoJSON loads natively with no extra parsing step.
🥾
Outdoor Activity Sharing
Export your Strava, Garmin, Wahoo, or Komoot activity as GPX, convert it here, and upload the GeoJSON to GitHub — which renders an interactive map preview automatically — or to Felt, Carto, or any mapping SaaS.
📊
Data Analysis & Processing
GeoJSON integrates cleanly with Python (GeoPandas, Shapely), JavaScript (Turf.js), R (sf package), and databases (PostGIS). Converting GPX first makes your GPS data available to the full geodata toolchain.
🏗️
GIS Workflows
Load the converted GeoJSON directly into QGIS or ArcGIS Online for desktop GIS analysis, spatial joins, or further export to other formats (Shapefile, KML, CSV with coordinates).
⏱️
Time-Animated Visualisations
The converter preserves GPS timestamps as coordTimes arrays. Tools like Kepler.gl and deck.gl can animate your track over time — showing the actual progression of a run, hike, or vehicle route as a moving trail.
🔍
Verify GPS Accuracy
The map preview lets you visually verify that your GPX data converted correctly. Overlay on satellite imagery to confirm tracks follow roads, trails, or shorelines as expected — catching GPS drift or format issues early.
Advertisement

Frequently Asked Questions

Related Tools

Map tiles by CARTO, OpenTopoMap, and Esri. Base map data © OpenStreetMap contributors. GPX parsing by @tmcw/togeojson. Map rendering by Leaflet. All file processing is local — no data is transmitted to any server.

Advertisement