Convert GPX to GeoJSON Online — Free & Instant
GPX files from Garmin, Strava, Komoot, or your smartphone can be converted to GeoJSON for use in web maps, QGIS, or any modern GIS workflow. Maparz uses GDAL to preserve all waypoints, tracks, and route geometries during conversion.
Converter
When to convert GPX to GeoJSON
- Visualise a GPS hike or cycling route on a Leaflet or Mapbox web map.
- Import Garmin or Suunto tracks into QGIS for terrain analysis.
- Share GPS recordings as GeoJSON for GitHub map previews.
- Convert waypoints to GeoJSON for use in D3.js visualisations.
- Combine multiple GPS tracks into a single GeoJSON FeatureCollection.
How to convert GPX to GeoJSON
- 1
Upload your GPX file
Drag and drop your .gpx file onto the converter, or click to browse. Files up to 50 MB are supported.
- 2
Select GeoJSON output
GeoJSON is pre-selected as the output format. Your waypoints, tracks, and routes will each become separate features.
- 3
Click Convert file
Maparz sends your file to GDAL's ogr2ogr engine for conversion. The result is downloaded automatically.
- 4
Use your GeoJSON
Open the .geojson file in QGIS, upload it to GitHub for a map preview, or load it directly into Leaflet or Mapbox GL JS.
About GPX format
GPX (GPS Exchange Format) is an XML-based format for storing GPS data including waypoints, routes, and tracks. It is the de-facto standard for sharing GPS recordings from devices like Garmin, Suunto, and smartphones. GPX is natively supported by Google Earth, Strava, Komoot, Garmin Connect, and virtually every GPS application. A GPX file can contain three types of data: waypoints (individual points of interest), routes (ordered lists of waypoints for navigation), and tracks (continuous GPS recordings with timestamps). GDAL reads and writes GPX natively.
Strengths
- +Universal GPS device compatibility
- +Supported by Strava, Garmin, Google Earth
- +Contains timestamps and elevation data
- +Human-readable XML
About GeoJSON format
GeoJSON is an open standard geospatial data format based on JSON, defined in RFC 7946. It supports all geometry types (Point, LineString, Polygon, MultiPolygon, etc.) and arbitrary properties per feature. GeoJSON is the preferred format for web mapping because browsers can parse it natively and libraries like Leaflet, Mapbox GL, and D3 consume it directly. GitHub renders GeoJSON files on a map automatically. It uses WGS 84 (EPSG:4326) as its coordinate reference system.
Strengths
- +Native browser support (JSON)
- +Human-readable and editable
- +Single file — easy to share
- +First-class support in web mapping libraries
Frequently asked questions
Do GPX tracks and waypoints become separate features?
Yes. GDAL converts GPX waypoints to Point features and tracks/routes to LineString features. Each GPX layer is exported as a separate layer in the GeoJSON.
Is elevation data preserved?
Yes. If your GPX file contains elevation data (the ele element), it is preserved in the geometry's Z coordinate and as a feature property.
Can I convert a Strava export to GeoJSON?
Yes. Strava exports use the GPX format. Simply export your activity as GPX from Strava and upload it here.
What happens to timestamps in the GPX track?
Track point timestamps (time elements) are preserved as feature properties in the output GeoJSON.