Niche Formats

GPX or TCX activity to spreadsheet

Your watch or app recorded a run, a ride or a hike: drop the .gpx or .tcx file and get one row per recorded point, ready to analyze in Excel or Google Sheets.

What this conversion is for

Fitness apps draw charts, but not always the one you are after. In a spreadsheet you can work out your pace over one stretch, count the stops, plot an elevation profile or set two runs side by side. GPX is the common exchange format for tracks, and Garmin Connect and Strava can usually export an activity in it. TCX is Garmin’s activity format; it adds heart rate, cadence and laps. Files in the binary FIT format, which many watches record first, are not read by this tool: export the activity as GPX or TCX instead.

Miles first, kilometers next to them

For a GPX file the table gives the cumulative distance from the start of the track in miles and, in the next column, in kilometers. Elevation comes in feet and in meters. A TCX file gets the same pair of columns for the distance and the elevation that the device recorded. The summary above the preview shows the total like this: miles first, kilometers in parentheses. Conversions use the exact definitions: 1 mile = 1,609.344 meters and 1 foot = 0.3048 meter. If you work in metric, the kilometer and meter columns are already there; ignore the others.

What the table contains

A GPX file gives the track name, segment, point number, the time in UTC exactly as in the file, latitude, longitude, elevation and the cumulative distance. The distance is worked out by the tool between successive points on a spherical Earth with a mean radius of 6,371,008.8 meters, so it can differ by less than half a percent from your watch, which may smooth the track or use a different model of the Earth. Standalone waypoints and planned routes are not included; the tool tells you how many it left out.

A TCX file gives the sport, lap number, time, position, elevation, the distance logged by the device, heart rate and cadence. The summary gives distance, time and calories of the laps, as the device wrote them.

A track says where you live

A GPS recording reveals the places and times of your outings, and very often your home, because most runs start and end at the front door. The file is read by your browser and nothing is sent anywhere. Before you share the table with a coach or on a forum, delete the first and last rows: they show your starting point.

This site gives no advice on health or training. Heart rate values are copied, never interpreted.

Formula used and sources

Distance between two points: haversine formula, d = 2 R asin(√(sin²(Δφ/2) + cos φ₁ cos φ₂ sin²(Δλ/2))), with R = 6,371,008.8 m. Miles = meters ÷ 1,609.344. Feet = meters ÷ 0.3048.

Structure read: GPX 1.1, trk › trkseg › trkpt (attributes lat and lon, elements ele and time); TCX, Activity › Lap › Track › Trackpoint.

Other tools on this site