GPX vs TCX

Use TCX when the workout matters, because laps, heart rate and cadence are part of the format. Use GPX for routes, waypoints and maps, because more apps read it.

Open either format in the GPX viewer. It runs in your browser, and the file never leaves your device.

What GPX and TCX files can store

DataGPXTCX
Recorded tracksYesYes
More than one trackYesYes
Track segmentsYesYes
Planned routesYesYesAs a Course
WaypointsYesYesOnly as course points
File name and titleYesNo
DescriptionYesYesActivity notes
AuthorYesNo
Creation timeYesYes
LinksYesNo
Track namesYesNo
Activity typeYesYesRunning, Biking or Other
ElevationYesYes
TimestampsYesYes
Heart rateWith an extensionGarmin TrackPointExtensionYes
CadenceWith an extensionGarmin TrackPointExtensionYes
PowerWith an extensionGarmin PowerExtension, not read by every appWith an extensionGarmin ActivityExtension v2
TemperatureWith an extensionGarmin TrackPointExtensionNo
SpeedWith an extensionGarmin TrackPointExtension v2With an extensionGarmin ActivityExtension v2

This table comes from the code of TrackLoupe, and the notes say how each field is stored. The converters use the same table to tell you what a conversion keeps and what it loses.

The main differences

Difference GPX TCX
Made for Exchanging GPS data Recording workouts
Laps None Laps with time, distance, calories and heart rate
Heart rate, cadence Through Garmin’s TrackPointExtension Part of the format
Power Through an extension Through Garmin’s ActivityExtension
Temperature Through Garmin’s TrackPointExtension None
Distance per point None, apps compute it from the points Distance covered so far, on every point
Sport Free text in the track’s <type> Running, Biking or Other
Waypoints Yes Only the course points of a course

Both are XML text, and both store times, positions and elevation on every point.

When to use TCX

When to use GPX

Converting between GPX and TCX

From TCX to GPX, the laps and their totals have no place to go, and calories are lost. Heart rate and cadence can survive through Garmin’s TrackPointExtension.

From GPX to TCX, the waypoints have no place to go. A GPX file has no laps, so each track becomes an activity with a single lap.

Questions

Does Strava accept TCX and GPX?

Yes. The Strava website accepts GPX, TCX and FIT files up to 25 MB as uploads, as long as the file holds a real workout.

Which one keeps more data?

For a workout, TCX keeps more, because of the laps. For a route with waypoints, GPX keeps more. The table at the top of this page compares every field.

What about FIT?

FIT is the binary format many sport devices record in. It keeps the most data of the three. The FIT page explains it.