If you have ever planned a hike, a long ride, or a trail run, you know the elevation profile matters more than the map itself. A route that looks flat on a 2D map can still hide 1,500 meters of climbing. This guide explains what a GPX elevation profile is, how elevation gain and loss are actually calculated, and how to view one for free using the GeoDataTools elevation profile viewer — no account, no upload, no app to install.
What Is an Elevation Profile?
An elevation profile is a chart that plots altitude against distance travelled along a route. Instead of looking at a flat map, you see a silhouette of the terrain — where the climbs are, how steep they get, and where the route flattens out or descends. It is built directly from the <ele> values recorded at each point in a GPX track, which most GPS watches, phones, and cycling computers capture automatically as barometric or GPS-derived altitude.
This is standard information in Garmin Connect, Strava, Komoot, and AllTrails activity pages. What those platforms do not offer is a way to check a route's profile from a raw .gpx file before you have uploaded it anywhere — for example, a route someone emailed you, or one you downloaded from a trip-planning forum.
How Elevation Gain and Loss Are Calculated
Elevation gain is the sum of every upward change between consecutive points along the track; elevation loss is the sum of every downward change. In theory this is simple arithmetic. In practice, raw GPS and barometric altitude readings are noisy — a device recording a point every second on flat ground will still show small random fluctuations of a meter or two. Summed naively across a multi-hour track, that noise can add hundreds of meters of phantom "climbing" that never happened.
This is why elevation figures for the same GPX file often differ between Strava, Garmin, and a naive script: each applies its own smoothing before summing gains and losses. The GeoDataTools elevation profile viewer applies a moving-average smoothing pass across nearby track points before computing gain and loss, which flattens sensor jitter while preserving the real shape of the climb — the same general approach used by fitness platforms to report "corrected" elevation rather than raw sensor output.
How to View a GPX Elevation Profile Online
Here is how to check a GPX file's elevation profile without installing anything:
- Step 1 — Open the tool. Go to the elevation profile viewer in any modern browser. No account or email required.
- Step 2 — Upload your GPX file. Drag and drop your
.gpxfile, or click to browse. The file is read directly in your browser — it is never sent to a server. - Step 3 — Read the stats. Total distance, elevation gain, elevation loss, and min/max altitude are calculated instantly and shown above the chart.
- Step 4 — Explore the profile. Hover anywhere on the elevation chart to see the exact altitude and distance at that point, and watch the matching location highlighted on the route map below.
The whole process takes a few seconds, even for long multi-hour activities with thousands of recorded points.
Why the Route Map and Chart Are Linked
A number on its own — "320 m of climbing" — is hard to place in context. Seeing which part of the route that climb corresponds to is what actually helps with planning: is it one long grind near the start, or several short punchy sections spread across the day? Hovering over the elevation chart moves a marker to the matching point on the Leaflet map, so you can correlate a steep section of the profile with the exact bend in the trail or road that causes it.
Why Some GPX Files Have No Elevation Data
Not every GPX file includes elevation. Files exported as planned routes — rather than recorded activities — often contain only latitude and longitude for each point, since they were drawn on a 2D map rather than recorded by a device with an altimeter. If a file has no <ele> values, the elevation profile viewer will still show the route on the map and the total distance, but the elevation chart and gain/loss figures will be skipped rather than showing misleading zeros.
Where GPX Elevation Data Comes From
Depending on the device, elevation in a GPX file comes from one of two sources:
- GPS-derived altitude: Calculated from satellite signals alone. This is generally less accurate vertically than horizontally — GPS altitude error is often two to three times the horizontal position error.
- Barometric altitude: Measured by an air-pressure sensor built into the device (most modern Garmin, Wahoo, and Suunto devices). This is generally more accurate and more responsive to real changes in elevation, but can drift with weather changes over a long activity.
Either way, some smoothing is worthwhile before summing gain and loss, which is why raw per-point deltas are rarely used directly for reported climbing totals.
Exporting GPX from Popular Platforms
If you need a GPX file to check first, here is how to export one from the platforms most people use:
- Strava: Open the activity, click the three-dot menu, and select Export GPX.
- Garmin Connect: Open the activity, click the gear icon, and choose Export to GPX.
- Komoot: Open your tour, click the download icon, and select GPX Track.
- AllTrails: On the trail detail page, click Download Track (AllTrails+) or export a completed activity from your profile.
Your Data Stays on Your Device
GPX files from fitness platforms can include more than just a route — heart rate, cadence, and other personal metrics are sometimes embedded as extensions. The elevation profile viewer, like the rest of GeoDataTools, never uploads your file anywhere. Parsing, elevation calculation, and map rendering all happen locally in your browser using JavaScript. Close the tab and the data is gone.
If you also need to convert the file to another format afterward, the GPX to GeoJSON converter follows the same private, browser-only approach.
Ready to work with your geospatial data?
Visualize, filter, and convert GeoJSON and KML files directly in your browser.
Try GeoDataTools