GPX to GeoJSON — Free Online Data Converter

Upload a GPX file to preview your GPS tracks and waypoints on the map, then download the converted GeoJSON file. Conversion is 100% client-side — your file is never uploaded to a server. Need sample data? Download sample GPX files ↗

Loading converter…
Drag & Drop
Drop any .gpx file onto the map to load it instantly — no button clicks needed
Map Preview
Tracks, routes, and waypoints appear on the map with zoom-to-extent and click popups
Instant Convert
One click converts and downloads your GPX as a standards-compliant GeoJSON file
Rate this tool:

Convert GPX Data to GeoJSON in Three Steps

GPX (GPS Exchange Format) is the standard data format used by GPS devices to store outdoor activities — walking, running, hiking, or professional field surveys. GeoJSON is the open web-mapping standard used by virtually every modern GIS platform. This free tool converts between them instantly, entirely in your browser, with a live map preview.

GPS devices are used daily by GIS professionals, surveyors, and outdoor enthusiasts. Whether you captured road sign coordinates, surveyed fiber-optic routes, or recorded a hiking trail, this converter turns your .gpx file into a .geojson file you can open in QGIS, ArcGIS, Mapbox, Leaflet, or any other GIS tool.

Key Features

  • Upload & Preview — click or drag-and-drop a .gpx file to display it on the map instantly
  • Tracks & Waypoints — GPS tracks render as lines; waypoints render as circle markers with popups
  • Coordinate Popups — click any waypoint to see latitude, longitude, and elevation
  • Basemap Switcher — toggle between Street, Satellite, and Terrain base layers
  • One-Click Download — download the GeoJSON file directly with no intermediate steps
  • 100% Client-Side — your GPX file is processed in the browser and never sent to a server
  • Stats Bar — shows track count, waypoint count, and total feature count after loading

How to Convert GPX to GeoJSON — Step by Step

1Upload Your GPX File

Click the green "Upload GPX" button at the top of the map, or drag and drop a .gpx file directly onto the map. The tool reads your file entirely in the browser — nothing is sent to a server.

Upload Your GPX File
2GPX Data Displayed on Map

Your GPS tracks, routes, and waypoints appear instantly on the map. The view automatically zooms to the extent of your data. Click any track or waypoint marker to see its coordinates and elevation.

GPX Data Displayed on Map
3Click Download GeoJSON

Once your GPX is displayed, click the "Download GeoJSON" button in the toolbar. The conversion happens instantly in your browser — tracks become LineString features and waypoints become Point features.

Click Download GeoJSON
4Save the GeoJSON File

Your browser saves the .geojson file to your computer. The file is a standard GeoJSON FeatureCollection containing all tracks, routes, and waypoints from your original GPX file.

Save the GeoJSON File
5Use in GIS Software

Open the downloaded GeoJSON in any GIS application — QGIS, ArcGIS, MapBox, Leaflet, or any web mapping tool. GeoJSON is natively supported by nearly every modern GIS platform.

Use in GIS Software
Tip: After downloading your GeoJSON, open it in QGIS or geojson.io to inspect and edit your features. GeoJSON is supported natively by nearly every modern GIS platform and web-mapping library.

A Brief History of the GPX File Format

GPX (GPS Exchange Format) was introduced in 2002 as an open, royalty-free standard for sharing GPS data between software applications. Built on XML, it was human-readable and easy for any software to parse — a key reason for its widespread adoption across GPS devices, fitness trackers, and GIS tools.

GPX stores three types of data: waypoints (individual GPS points with coordinates and optional elevation), tracks (a recorded path of GPS positions over time, stored as track segments), and routes (a planned course of waypoints in sequence). A single .gpx file can contain all three.

The Development of GeoJSON

Origins at MetaCarta (2008)

GeoJSON was created by developers at MetaCarta, Inc., a geographic search company later acquired by Nokia and then Microsoft. The primary authors were Chris Helm and Martin Daly, who published the original specification in 2008. Their goal was a simple, unified format for web mapping features that leveraged the growing JSON ecosystem.

Why JSON Instead of XML?

The choice of JSON over XML (used by GML and GPX) was strategic: JSON is less verbose, natively parseable in any browser via JSON.parse(), and maps directly to fundamental programming data structures. The result was smaller file sizes, faster transmission, and dramatically simpler developer tooling.

The Core Data Model

GeoJSON's structure is elegantly simple. Each feature has a geometry object (point, line, or polygon) and a properties object for non-spatial attributes. A FeatureCollection groups multiple features into one file — exactly how this converter outputs your GPX tracks and waypoints.

{ "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "LineString", "coordinates": [[...], [...]] }, "properties": { "name": "My Hike", "gpxType": "trk" } } ] }

IETF Standard (RFC 7946, 2016)

GeoJSON was formalized as an IETF internet standard in 2016 via RFC 7946. Today it is supported natively by GitHub (renders GeoJSON files as maps), QGIS, ArcGIS, Mapbox, Leaflet, OpenLayers, and virtually every modern web-mapping library.

GPX vs GeoJSON
FeatureGPXGeoJSON
FormatXMLJSON
File sizeLargerSmaller
Web supportLimitedUniversal
GIS supportGoodExcellent
Browser parseManualNative
GPX Geometry → GeoJSON
GPX TypeGeoJSON Geometry
Waypoint (wpt)Point
Track (trk)LineString / MultiLineString
Route (rte)LineString
Track segmentLineString

Frequently Asked Questions

Q: Is my GPX file sent to a server?
A: No. The entire conversion happens in your browser using JavaScript. Your file is read locally and never transmitted anywhere.
Q: What GPX data is included in the GeoJSON output?
A: All tracks, routes, and waypoints are converted. Track segments become LineString features. Waypoints become Point features with their coordinates and elevation preserved in the properties.
Q: Can I open the GeoJSON in QGIS or ArcGIS?
A: Yes. Both QGIS and ArcGIS support GeoJSON natively. In QGIS, drag and drop the .geojson file directly into the project. In ArcGIS, use "Add Data" and browse to the file.
Q: What happens if my GPX file has multiple tracks?
A: Each track segment is converted to a separate LineString feature in the GeoJSON FeatureCollection. You can filter, style, or process them individually in any GIS software.
Q: Are elevation values preserved in the conversion?
A: Yes. If your GPX file contains elevation data (the <ele> element), it is preserved as the third coordinate value in GeoJSON coordinates: [longitude, latitude, elevation].

Open Source & Credits

GPX to GeoJSON Converter — Free Online Tool | Maplity