JSON to GPX Converter

GeoJSON or plain coordinate records turned into a GPX 1.1 file for GPS devices and apps.

Reverse: GPX to GeoJSON

Files never leave your device — everything runs in your browser

Navigation apps and GPS devices load GPX. The converter writes a GPX 1.1 file from GeoJSON: points become waypoints with their names and descriptions, lines become tracks, multi-lines become tracks with several segments, and the outer ring of a polygon becomes a track as well.

Plain JSON works too. An array of records with lat and lon — or latitude and longitude, lat and lng — is turned into points; elevation is taken from ele or alt. When every point has a time, the converter treats them as a recorded path and writes one track in order. You can also force waypoints or a single track in the options.

The file opens in OsmAnd, Garmin BaseCamp, Locus Map, Komoot and other GPS tools.

Nothing is uploaded: everything runs inside your browser, so API responses, configs, contact lists and datasets stay on your device.

How data maps to GPX

How to convert JSON to GPX in 3 steps

  1. 1

    Load the data

    GeoJSON, an array of lat/lon records or the Sample.

  2. 2

    Choose how to save points

    Automatically, as waypoints or as one track.

  3. 3

    Download the GPX

    Load the file into your GPS app or device.

Frequently asked questions

Load the GeoJSON and download the .gpx file; points and lines are converted automatically.
Yes, if each record has lat and lon (or latitude/longitude, lng). Times make it a track.
GPX has no areas, so the outer ring of a polygon is written as a track.
Yes, with GPX to GeoJSON.

Related tools