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