How to view a GPX, KML or GeoJSON file
- Press Open a GPX, KML or GeoJSON file, or drag the file onto the box.
- The track, route, areas and waypoints appear on the map. The start is green and the finish red.
- Read the length, the elevation gain and loss, the lowest and highest point and, if the file has times, the duration.
- Move the pointer (or your finger) along the elevation profile to see the distance and height at each point; a marker follows on the map.
- Press Export GeoJSON to save the same data as a
.geojsonfile for QGIS, geojson.io, Mapbox or Leaflet.
Nothing is uploaded: the file is read by JavaScript in your browser, so private routes, such as the way to your home, stay on your device.
The three formats
- GPX (GPS Exchange Format) is what GPS watches, cycling computers and apps such as Strava, Komoot and Garmin Connect export. It stores tracks (where you went, often with elevation and time for every point), routes (planned turn points) and waypoints.
- KML (Keyhole Markup Language) comes from Google Earth and Google My Maps. It stores points, lines and polygons; recorded tracks use the
gx:Trackelement, which is supported here. A.kmzfile is a zipped KML: unzip it first. - GeoJSON is the JSON format used by web maps and GIS software. Its coordinates are written longitude first, then latitude.
How the numbers are calculated
The length adds up the distance between every pair of consecutive points on the WGS84 ellipsoid (Vincenty's formula, the same as the distance calculator). A track recorded every second on a winding path will measure slightly longer than the same path drawn with a few points.
The elevation gain adds up every climb, but ignores changes smaller than 2 metres, because GPS elevation jumps up and down by a few metres even when you stand still. Apps use different filters, so Strava, Garmin and this page can show different totals for the same file. If a file has no elevations, the profile is not shown; you can look up the height of any single point with the elevation finder.