Understand GPS files
GPX vs FIT vs TCX vs KML (and KMZ, GeoJSON) for your activities
Updated
Export menus love to throw a string of acronyms at you: GPX, FIT, TCX, KML, sometimes GeoJSON. They all describe places on a map, but they were built for different jobs. Here is what sets them apart.
The comparison in one table
| Format | Published by | What it looks like inside | What it is best at |
|---|---|---|---|
| GPX | TopoGrafix (GPX 1.1 schema) | Text (XML) | Tracks, routes and waypoints that almost any app can read |
| FIT | Garmin (FIT SDK) | Binary, not readable as text | Everything a sport device recorded, in a compact file |
| TCX | Garmin (Training Center schema) | Text (XML) | Activities split into laps, with heart rate and cadence per point |
| KML | Google, now an OGC standard | Text (XML) | Showing places, lines and labels in map viewers |
| KMZ | Same as KML | A zip with a KML inside | KML plus images or icons in a single file |
| GeoJSON | IETF (RFC 7946) | Text (JSON) | Shapes on maps in websites and mapping software |
GPX: the one everybody understands
GPX is plain text built around three ideas: tracks (the path you followed), routes (turn points leading to a destination) and waypoints (named places). Each point carries latitude, longitude and, if available, elevation and time.
Good: nearly universal, easy to inspect, ideal for sharing a route. Less good: heart rate, cadence or power only travel inside optional extensions, and there is no standard place for laps. More in what is a GPX file.
FIT: what your watch actually writes
Garmin’s developer site describes FIT as a protocol “designed specifically for the storing and sharing of data that originates from sport, fitness and health devices”, and as compact, interoperable and extensible. It is binary, so a text editor shows gibberish; Garmin even provides a tool to convert FIT files to readable text. The FIT SDK lists activity, course and workout files.
Good: the richest copy of your session. Less good: not every map or route app opens it. If something refuses your file, a GPX export is the usual fallback.
TCX: laps and training data, in text
TCX comes from Garmin’s Training Center file format. Its schema organizes an activity into laps, each lap holds a track, and each track point can carry time, position, altitude, distance, heart rate and cadence. It also has a section for courses.
Good: a readable file that keeps laps and the main sensor data. Less good: it is a training format more than a mapping one, so map tools tend to prefer GPX.
KML and KMZ: made for looking at maps
The OGC describes KML as “an XML language focused on geographic visualization”, one that encodes “what to show in an earth browser, and how to show it”. Google submitted it to the OGC, and version 2.2 was adopted as an OGC standard. A KMZ, according to Google’s documentation, is a main KML file plus any supporting files, packaged with a zip utility, so it can be stored and emailed as one item.
Good: great for presenting places, lines, colors and labels. Less good: it is about display, not about training. Expect no laps or heart rate.
GeoJSON: maps on the web
GeoJSON, defined in RFC 7946, is based on JSON and uses longitude and latitude in WGS84, in that order. It describes shapes such as points, lines and polygons. You will mostly meet it when exporting from mapping websites or GIS tools rather than from a sports watch.
Which one should you pick?
- Someone asks for “your file” and says nothing else: GPX.
- You want to keep everything your device recorded: FIT, as a backup.
- A training platform asks for laps: TCX, if it doesn’t take FIT.
- You want to show a place or a route in a map viewer: KML or KMZ.
- A developer or a web map asks for it: GeoJSON.
Not sure where to get any of these? Start with how to download the GPS file of your activity.
When the format is not the one you need
This is the gap Trazo, at trazo.run, is built to close. It converts FIT, KML, KMZ and GeoJSON to GPX while keeping heart rate and temperature, so the file you happen to have still works. From there you can join several files, trim or reverse the track and render it as a horizontal or vertical 3D map video.