GPX to GeoJSON Converter

Convert GPX to GeoJSON and back in your browser. Your tracks and waypoints stay on your device.

Your GPX and GeoJSON are converted locally in your browser and never uploaded, so your routes, waypoints, and location history stay on your device.

Need to see the coordinates on a map? Try the Coordinate Map Viewer.

About GPX to GeoJSON

This GPX to GeoJSON converter turns a GPS exchange file from your watch, phone, or hiking app into a clean GeoJSON FeatureCollection you can drop into a map, script, or GIS pipeline. Waypoints become Point features, routes and tracks become LineString features, and names, elevations, and timestamps carry over as properties. Flip the direction toggle and it goes the other way, exporting your GeoJSON back to a GPX file that Garmin, Strava, and other GPS tools understand. Paste text directly or load a .gpx or .geojson file from your device. Everything runs entirely in your browser, so your routes, waypoints, and location history are parsed on your device and never uploaded to a server.

Features

How to use the GPX to GeoJSON

  1. Choose a direction: GPX to GeoJSON (default) or GeoJSON to GPX.
  2. Paste your GPX or GeoJSON into the input box, or click Choose file to load one.
  3. Read the converted output in the panel on the right.
  4. Copy the result, or download it as a .geojson or .gpx file.

Example

Input

<gpx version="1.1" creator="ArrayKit" xmlns="http://www.topografix.com/GPX/1/1">
  <wpt lat="48.8584" lon="2.2945">
    <name>Eiffel Tower</name>
  </wpt>
</gpx>

Output

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": { "name": "Eiffel Tower" },
      "geometry": { "type": "Point", "coordinates": [2.2945, 48.8584] }
    }
  ]
}

A GPX waypoint becomes a GeoJSON Point feature, keeping its name.

Common errors & troubleshooting

Frequently asked questions

Does the conversion happen on a server?
No. Both GPX to GeoJSON and GeoJSON to GPX conversions run entirely in your browser using JavaScript. Your file is parsed on your device, so your tracks, waypoints, and location history are never uploaded.
What GPX elements are supported?
Waypoints (<wpt>) convert to GeoJSON Point features, while routes (<rte>) and track segments (<trk>/<trkseg>) convert to LineString features. Names, descriptions, elevation (<ele>), and timestamps carry over as feature properties.
Can I convert GeoJSON back to a GPX file?
Yes. Switch the direction toggle to GeoJSON to GPX, paste your GeoJSON, and the tool produces a GPX 1.1 file you can download and load into Garmin, Strava, and other GPS apps.
Can I upload a .gpx or .geojson file instead of pasting?
Yes. Click Choose file and pick a .gpx, .geojson, .json, or .xml file. It is read locally in your browser and its text is loaded into the input box, ready to convert.
How large a GPX file can I convert?
Because everything runs in your browser, the practical limit is your device's memory. Typical activity and route files with thousands of track points convert instantly; very large multi-day logs may take a moment.
Is the GeoJSON output valid for maps and GIS tools?
Yes. The output is a standard GeoJSON FeatureCollection with WGS84 [longitude, latitude] coordinates, so it works with Leaflet, Mapbox, QGIS, and anything else that reads GeoJSON.

Related tools

All ArrayKit tools