AnyFormat

00 GeoJSON → GPX

GeoJSON to GPX

Points become waypoints, lines become tracks or routes.

01GEOJSON in
02GPX out
03Options 2

0 keeps full precision. Six places is about 10 cm — beyond that is noise from consumer GPS.

  • No upload The conversion runs in this tab. Your file never travels — not to us, and not to the advertising.
  • No sign-up, no email, no daily cap There is no account system to sign up to.
  • No size limit we invented Only your device's memory — about ~2 GB on a desktop browser, ~400 MB on a phone.
  • Turn your Wi-Fi off and convert anyway The conversion needs nothing but this page. Ads will not load without a connection; your file will still convert. That is the whole claim, and it takes five seconds to check.

Converts GeoJSON into GPX so a GPS device can use it. GeoJSON is the format of web mapping; GPX is the format of hardware, and they do not overlap.

What GPX cannot take

GPX has three things: waypoints, routes and tracks. That is the entire model.

Polygons become closed tracks — the outline survives, the area does not, and holes are dropped.

Arbitrary properties mostly vanish. GeoJSON lets a feature carry any JSON object; GPX has fixed fields. name, description and time are mapped; everything else has nowhere to go. Convert to CSV instead if the attributes are the point.

MultiPolygons and GeometryCollections are split into their parts first, so nothing disappears silently.

Elevation

A third value in a GeoJSON position is elevation in metres, and it becomes <ele>. Two-value positions produce points with no elevation, which is valid GPX — most devices treat missing elevation as unknown rather than as zero, which is the right behaviour.

Which GPX element each geometry becomes

GPX has three containers and they are not interchangeable. A Point becomes a waypoint, which is a thing with a name that you navigate to. A LineString becomes a track, which is a record of where something went. A MultiLineString becomes one track with several segments, which is how a GPS represents a recording that was paused. Polygons have no equivalent at all and are dropped rather than closed into a track, because a device that reads a closed track as a route will happily navigate you round the boundary of your own property.

Other names for this

Also searched as “json to gpx”, “geojson to garmin”.

Questions

My polygons became lines.
GPX has no polygon type. The outline is preserved as a closed track, and the tool says so.
Where did my feature properties go?
GPX has fixed fields — name, description, time — and no general property mechanism. Use CSV if the attributes matter.
It says my JSON is not GeoJSON.
A plain array of {lat, lng} objects is not GeoJSON. Convert it to CSV first, then use CSV to GeoJSON.
Is my file uploaded?
No. Everything runs in this tab. That matters more here than almost anywhere else on the site — a calendar is your movements, an address book is other people’s personal data, and a GPS track is where you live and where you run. None of it is sent anywhere.