GPX Route Stats

  • Runs in your browser
  • Nothing uploaded
  • No sign-up
Loading the GPX viewer…

GPX Viewer iconNeed more than this?

GPX Viewer

Opens a GPX file straight from Messages, Mail or Files on an iPhone and shows the route on a standard, hybrid or satellite map, with your own position on it.

Not today? Get an email when GPX Viewer gets better
GPX Viewer on iPhone
GPX Viewer on iPhone

Updated · DRISH LABS

How do you open and view a GPX file?

To view a GPX file, open it in a GPX viewer, which draws the route from the file’s own coordinates and lists the distance, elevation gain and loss, lowest and highest point, and the duration and speeds when the file has times. A browser can do it with no map loaded. Elevation gain only counts a rise or fall once the height has moved 3 m, so it often reads lower than a watch.

How it works

  1. Drop one GPX file or several. Files from watches, bike computers, route planners and apps all work — GPX 1.0 and 1.1, tracks, routes and waypoints, with or without elevation and times.
  2. Each track and route in the files is listed with its distance, elevation gain and loss, lowest and highest point, and — when the file carries times — the duration, moving time and speeds. Pick one to see it on its own, or keep all of them drawn together.
  3. The route is drawn from the file’s own coordinates, with start and finish marked, waypoints as dots, a north arrow and a scale bar, with no map underneath.
  4. Run a finger or the pointer along the elevation profile and the distance and height at that point are read out, with the same spot marked on the route — so you can see where the climb is before you get there.
  5. Switch between kilometres and metres or miles and feet, then download the numbers as a CSV or the drawing as an SVG.

How the distance and the climbing are worked out

Distance is the sum of the great-circle distance between each pair of consecutive points, by the haversine formula on a sphere of 6,371 km — the mean radius of the Earth. Because the Earth is slightly flattened, a spherical formula is off by generally under 0.3%, far less than the GPS error in the points themselves. Segments are not joined: where a recording was paused or lost reception, the GPX format starts a new segment, and the gap between them is not counted as distance. Elevation gain uses a 3-metre dead band — a rise or fall only counts once the height has moved 3 m from the last counted point — because the small jitter in GPS and barometric heights otherwise adds up to hundreds of metres of climbing that never happened. Moving time counts only the stretches covered faster than 0.5 m/s.

a = sin²(Δφ/2) + cos φ1 · cos φ2 · sin²(Δλ/2) · d = 2R · atan2(√a, √(1−a)) · R = 6,371 km

When you need it

A route someone sent you
A friend, a club or a race organiser sends a .gpx and your computer opens it as a page of text. Drop it here to see where it goes, how far it is and how much climbing it has, without importing it into an account somewhere first.
Finding the hills before the ride
The elevation profile shows where on the route the climbing is. Move along it and the distance from the start and the height are read out, with the matching spot marked on the drawing — so the long drag at kilometre 40 is a known quantity, not a surprise.
Checking a recording against the plan
Drop the planned route and the recorded track together. Both are drawn on the same scale and listed side by side, so a missed turn, a shortcut or a different total distance is plain at a glance.
Getting the numbers into a spreadsheet
Download the statistics for every track and route as a CSV — distance, gain, loss, lowest and highest point, duration, moving time and speeds — for a training log or an event report.

Questions

Is my GPX file uploaded?

No. The file is read by your browser and every number is computed in the page. That is also why there is no map: a map is made of tiles fetched from a mapping service, and each request tells it where you are looking. Drawing the route from the file’s own coordinates sends nothing.

Why is the elevation gain lower than my watch says?

Every device and app smooths heights differently, and there is no standard method. This page only counts a rise or fall once the height has moved 3 m from the last counted point, which removes GPS and barometer jitter. Apps that count every small wobble report noticeably more climbing for the same file.

What is the difference between a track and a route?

In a GPX file a track is a recording — points logged as someone moved, usually with times — and a route is a plan, an ordered list of points to go through, usually without times. Both are drawn and measured here; duration and speed need times, so they appear only for tracks that have them.

Can it open KML, FIT or TCX files?

No, only GPX. Most route planners and watches can export GPX. The GPX Viewer iPhone app imports KML and KMZ as well, with its Pro upgrade.

How accurate is the distance?

As accurate as the points in the file. The haversine formula itself is within about 0.3% of the true distance over the Earth’s shape; the larger errors come from how often the device logged a point and how much GPS wandered, which cut corners or add zigzags.

Keep going

All 31 tools