GPX ↔ KML ↔ GeoJSON Converter
Convert between GPX (GPS Exchange), KML (Google Earth) and GeoJSON — waypoints, tracks, routes and polygons. Free, runs entirely in your browser, nothing uploaded.
Common conversions
- GPX → KML — open a Strava/Garmin activity in Google Earth.
- KML → GeoJSON — move data from Google Earth into a Leaflet/Mapbox web map.
- GPX → GeoJSON — load a GPS track into PostGIS or Turf.js for analysis.
- GeoJSON → GPX — push a planned route from a web app onto a GPS device.
Frequently Asked Questions
What are GPX, KML and GeoJSON files?
They are the three most common file formats for storing geographic points, routes and tracks. GPX (GPS Exchange Format) is the open standard used by Garmin, Strava, and most GPS devices. KML (Keyhole Markup Language) is the XML format used by Google Earth and Google Maps. GeoJSON is the JSON-based format used by web maps (Leaflet, Mapbox), PostGIS, and most modern GIS libraries. They all describe the same geometry — this tool converts between them.
Does the conversion preserve tracks and routes?
Yes. GPX waypoints become GeoJSON Points, GPX tracks/routes become GeoJSON LineStrings, and the tool handles both <trkseg> and <rte> elements. KML Placemarks (Point/LineString/Polygon) and GeoJSON geometries round-trip through all three formats with no coordinate loss.
Does it run in my browser or upload my file?
Entirely in your browser. The file you select is parsed locally — nothing is uploaded to any server. This is faster, more private, and works offline once loaded.
What about GPX 1.1 extensions and KML styles?
Coordinate geometry is preserved perfectly. Extended data (Strava's power/cadence, KML's icon styles) is not carried across because each format has its own extension vocabulary. Use a dedicated tool if you need those for athletic analysis or stylised maps.