Sign in Sign up free Account

GPX to GeoJSON Converter

Convert GPS tracks, routes and waypoints from a GPX file into GeoJSON, with elevation, names and track start and end times.

Paste GeoJSON, KML, GPX, WKT or CSV

How it works

  1. Add your GPX

    Drop a GeoJSON, TopoJSON, KML or KMZ, GPX, CSV with coordinates, WKT, or a zipped shapefile, or paste the text. It is read in your browser.

  2. Check the map

    The features are drawn on a preview with their count, geometry types, bounds and attributes, so you can see it read correctly before converting.

  3. Download the GeoJSON

    Pick the output and download. Attributes come along; anything a format cannot hold is listed rather than dropped silently.

GPX to GeoJSON Converter: a practical guide

A GeoJSON is map features (points, lines, polygons) and their properties in plain JSON. Readable, web-native and the default format of Leaflet, Mapbox and most map libraries. Getting there from a GPX is what GPX to GeoJSON means, and doing it well means not letting the converter drop properties, swap latitude and longitude, or need a GIS install.

The steps are short: drop your GPX into the box above, check the result, and download a GeoJSON when it looks right.

GPX and GeoJSON: what changes

  • GPX: GPS tracks, routes and waypoints in XML. Holds GPS data only: no polygons and no styles.
  • GeoJSON: Map features (points, lines, polygons) and their properties in plain JSON. Readable, web-native and the default format of Leaflet, Mapbox and most map libraries.

How the GPX to GeoJSON converter works

A GPX is read in your browser with its geometry and properties, and drawn on a map so you can check it landed in the right place.

It is written as a GeoJSON, keeping the attributes each feature carries.

What the GeoJSON is used for

  • Web maps
  • Sharing boundaries and routes
  • Data journalism

What makes this GPX to GeoJSON converter different

  • See it on a map. Check the data before you download.
  • Merge files. Pick several to combine them.
  • Nothing uploaded. Location data stays private.

Tips for the best GeoJSON

  • If points appear in the wrong country, the source may have latitude and longitude the other way round.
  • Shapefiles need their .shp.dbf and .prj together; zip them up before uploading.

On the blog: How to Convert GPX to GeoJSON Free, Step by Step

Gpx to geojson: convert gpx to geojson, strava gpx to geojson

  • gpx to geojson
  • convert gpx to geojson
  • strava gpx to geojson

GPX to GeoJSON: waypoints become points and tracks and routes become lines, with elevation, names and start and end times. Works with GPX from Strava, Garmin and Komoot.

Why it matters

Attributes kept

Names, descriptions and every property travel with the features: KML ExtendedData, shapefile .dbf fields, CSV columns and GPX names.

Nothing uploaded

Survey data, client boundaries and GPS tracks stay on your computer. The conversion runs in this tab.

Coordinates untouched

Numbers are not reprojected or quietly shifted. Precision is yours to set: six decimal places is about 11 cm.

Reviews

No reviews yet. Used this tool? Yours could be the first.

Used this tool? Sign in to write a review.

Questions

How do I convert GPX to GeoJSON?

Drop your GPX into the box at the top of this page and press Convert to GeoJSON. The conversion runs in your browser in a few seconds. Check the result, then download a GeoJSON.

What is the best GPX to GeoJSON converter?

One that gives you map data moved between formats with geometry and properties intact, shows the result before you pay, and does not upload your file. That is what this page is built to do.

What is a GeoJSON file?

A GeoJSON file is JSON that describes map features: points, lines and polygons with their properties, in longitude and latitude on WGS84 (RFC 7946). Web maps such as Leaflet, Mapbox, OpenLayers and Google Maps read it directly.

Which formats can I convert?

In: GeoJSON, TopoJSON, KML, KMZ, GPX, CSV (lat/lon columns or a WKT column), WKT and zipped shapefiles. Out: GeoJSON, KML, KMZ, GPX, CSV, WKT, shapefile (ZIP), SVG and DXF.

Why does my shapefile need to be zipped?

A shapefile is several files: .shp holds the shapes.dbf the attributes and .prj the coordinate system. Zip them together and drop the ZIP so the attributes and projection come too.

Does it reproject coordinates?

No. GeoJSON, KML and GPX all use longitude and latitude, so they convert exactly. A shapefile in UTM or a national grid keeps its numbers, and the page tells you so; reproject in QGIS or ogr2ogr if you need WGS84.

Can I convert several files at once?

Yes. Pick or drop several files together: they are merged into one output, and in KML each file gets its own folder. Tick "One file per upload" to get each converted separately in a ZIP instead.

Why is my GeoJSON in the wrong place on the map?

Usually longitude and latitude are swapped (GeoJSON is longitude first), or the data is in a projected system such as UTM. The preview and the bounds show which.