JoseFitani
🌐 GIS & Formats

GPX Viewer

This tool visualizes GPX GPS tracks on an interactive map. Upload a .gpx file recorded by a hiking, cycling or running app and the track is drawn as a blue line with the map zoomed to fit it.

Alongside the map you get real statistics: total track distance (sum of great-circle segments between consecutive points), the number of track points and tracks, and — when the file contains tags — total elevation gain and loss. The file is parsed 100% in your browser and never uploaded. Elevation figures are honest about their limits: if the GPX has no elevation data, the tool says so instead of inventing numbers.

Distance is the sum of great-circle segments between consecutive track points. The file is parsed entirely in your browser and never uploaded.

Loading map…

How to use this tool

1
Upload a GPX file

Click Upload .gpx file and choose a track exported from your GPS app, watch or device. It is read locally.

2
See the track on the map

Each track segment is drawn as a line and the map fits to the full route so you can inspect the path.

3
Read the statistics

Check total distance, point count and — if present — elevation gain and loss computed from the file's own data.

What people use this tool for

Review a hike or ride afterwards

Upload the day's recording to see the actual route and how much climbing it involved, without signing up for a fitness platform.

Example: Verify a 14 km loop actually recorded 14 km before sharing it with a club.
Check a shared route before following it

Preview a GPX someone sent you to confirm it covers the area you expect and has no obvious GPS glitches.

Example: Spot a straight-line spike where the GPS lost signal mid-ride.
Compare elevation profiles of options

When choosing between two recorded variants of a trail, the gain/loss figures show which one climbs more.

Example: Pick the gentler of two approaches to a summit based on recorded ascent.

How it's calculated

The file is parsed as XML with DOMParser; elements are read with their lat/lon attributes and optional child. Distance is the sum of Haversine great-circle distances between consecutive points within each track segment. Elevation gain is the sum of positive elevation differences between consecutive points, loss the sum of negative ones; both are reported as 'not recorded' when the file carries no elevation data. Rendering uses Leaflet polylines. Nothing is uploaded.

Related tools and resources

Turn a recorded track into a terrain profile chart, or convert between formats with the KML converter and GeoJSON viewer.

Frequently asked questions

How is the total distance calculated?

By summing the great-circle (Haversine) distance between every pair of consecutive track points. It reflects the recorded path, not a straight line between start and finish — so GPS noise and switchbacks both count.

Why does it say elevation is 'not recorded'?

Your GPX contains track points without <ele> (elevation) tags — common for files exported from apps that only log positions. The tool will not guess elevations; it reports exactly what the file contains.

Does it handle multi-day or multi-track files?

Yes. Every track segment is drawn and the statistics cover all of them combined, with the number of tracks shown next to the point count.

Is my location data sent to a server?

No. GPX tracks can reveal where you live and train, so this tool deliberately parses everything locally in your browser. Only the map background tiles are loaded from the network.

Data sources & methodology