Online Tool Store Online Tool Store

GPX Viewer

View a GPX track's route shape, total distance, and elevation gain/loss from an uploaded .gpx file. Runs entirely in your browser.

🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.

A sample track is shown below — upload your own .gpx file to replace it.

Track points
Distance
Elevation gain
Elevation loss

How it works

  1. Upload a .gpx file exported from a GPS watch, phone app, or route planner.
  2. See a scaled route outline plus total distance, points, and elevation gain/loss.

The formula

Distance between two points (haversine):
a = sin²(Δlat/2) + cos(lat1)·cos(lat2)·sin²(Δlon/2)
d = 2 · R · asin(√a), where R ≈ 6,371,000 m

FAQ

What GPX elements does this read?

Track points (<trkpt>), route points (<rtept>), and waypoints (<wpt>), including their latitude, longitude, and optional elevation (<ele>) — the standard fields nearly every GPX exporter includes.

How is distance calculated?

The haversine formula sums the great-circle distance between each consecutive pair of points, using Earth's mean radius — the same approach GPS devices and running apps use for straight-line-between-points distance.

Why is the route plot not on a real map?

The plot is a simple SVG line scaled to your track's own latitude/longitude bounds — it shows the route's shape without loading a third-party map tile service, keeping the tool fully offline and private.

Is my GPX file uploaded anywhere?

No — the file is parsed and read entirely in your browser. Nothing is sent to a server.

How we compare

Feature Online Tool Store Desktop GIS software Online map-tile viewers
Instant, no install Requires a desktop app
File stays on your device Often uploaded to render on a map
Quick distance and elevation stats Varies by service

For a quick check of a route's distance and elevation without installing GIS software or uploading your file to a map service, this is the fastest option.

Explore related tools

Embed this tool

Paste this on your own site — it stays free, and every file still stays in your visitor's browser, not yours or ours.