Velograph Sign in

What is a FIT file? The ride file your device records

13 November 2026 · 9 min readLæs på dansk

An illustration of a generic bike computer that has saved a ride as ride.fit, beside a table of what each file keeps: the binary FIT file keeps laps, heart rate, cadence, power, timer events and indoor rides, while TCX and GPX lack timer events.

Illustration: Velograph

A FIT file is the binary record your bike computer writes on every ride. What it holds, how it differs from GPX and TCX, and how to get your own.

A FIT file is the compact binary file your bike computer, sports watch or indoor training app writes as you ride. It holds your power, heart rate, cadence, speed and position up to once a second, along with your laps, your pauses, the devices that recorded them and a summary at the end. FIT stands for Flexible and Interoperable Data Transfer, a format Garmin maintains and publishes for data from sport, fitness and health devices. Because it is your device's own record, the FIT file is the fullest copy of a ride you can keep, and the one to analyse.

What is inside a FIT file?

A FIT file is a run of messages between a short header and a checksum. Definition messages say which fields will follow, and data messages carry the values: a File Id that names the device, a Record for each moment, a Lap for each lap, a Session summary and an Activity message.

A FIT activity file drawn as a strip: a 14-byte header, then definition and data messages, then a 2-byte checksum. Below, the messages of a ride: File Id, Device Info, Records with events between them, Laps, a Session and the Activity.
A FIT activity file: the header, definition messages that describe the fields, data messages that carry the values, and the checksum at the end. Message order follows Garmin's summary-last pattern.

The header is 14 bytes long (12 in older files, which Garmin calls legacy), and it contains the letters ".FIT", which you can see if you open the file in a text editor. The last 2 bytes of the file are a checksum, so a reader can tell whether the file arrived whole. Between them, a definition message works like a column heading, saying for example that the next messages of local type 0 are Records with heart rate, cadence, distance and speed. The data messages that follow carry only the numbers. That is what makes the format compact, and it is why a reader can skip a message it does not know without failing.

Garmin's documentation names the messages a ride contains:

Message What it holds How many in a ride
File Id The file type (4 means an activity), the maker and the product One, first in the file
Device Info The head unit and its sensors: maker, name, serial number, software and battery Several
Event Moments such as the timer starting or stopping and gear changes As they happen
Record Position, speed, distance, heart rate, cadence, power and more Up to one a second
Lap A lap you pressed or the device marked, with its own totals At least one per session
Session The summary: start time, elapsed time, timer time, distance, climbing One, or one per leg of a multisport event such as a triathlon
Activity The number of sessions and the local time One, often last

Two times in the Session are worth knowing. Total elapsed time runs from start to finish, and total timer time counts only while the timer ran, so the gap between them is your stops. Most devices write the Session and Activity messages at the end of the ride. A file cut short by a flat battery may lack them. Garmin's guidance for software is to rebuild the summary from the first and last Records, so the ride itself is still there.

How are times stored in a FIT file?

A FIT file counts time in whole seconds since midnight UTC on 31 December 1989, the FIT epoch, rather than since 1 January 1970 as most computers do. The Activity message adds the local time, so software can put the ride on the right day in your own time zone.

A ride that started at 10:30 UTC on 13 November 2026 is stored as 1,163,500,200 seconds. Add 631,065,600, the seconds from 1970 to the FIT epoch, and you have the ordinary Unix time. A full timestamp takes 4 bytes, which lasts until February 2126. To save space, a Record may carry only a 5-bit offset in its header, counted from the last full timestamp, and that offset rolls over every 32 seconds.

Not every maker writes the local time, so Garmin advises software to check that it is valid. When it is missing, a common fix is to look up the time zone from the first GPS position. A local time of zero is a trap: read literally, it is midnight on 31 December 1989.

Check one setting on your device. Many devices offer smart recording or every-second recording. Smart recording saves a Record only when a value changes noticeably, which keeps files small but leaves uneven gaps. Garmin notes that it makes simple calculations harder and makes short pauses hard to tell from long gaps between samples. For power analysis, choose every-second recording.

What are developer fields in a FIT file?

Developer fields let an app or a sensor add its own data to any message in a FIT file, with the field's name and units written into the file itself. Software that reads FIT files can then decode the values without knowing the app. Garmin's Connect IQ apps and data fields use them to add data to rides.

They arrived with version 2.0 of the FIT software kit in 2016. A Developer Data Id message names the source with a 16-byte id, and a Field Description message gives each field a name of up to 64 bytes and units of up to 16 bytes. A file can hold data from up to 255 developers, with up to 255 fields each. Garmin's own worked example adds a field called "doughnuts_earned" to every Record.

Two cautions come from Garmin's documentation. Software built on a kit older than version 2.0 cannot read files written with the 2.0 protocol, which developer fields need. Garmin also advises readers not to assume that developer data was logged correctly, and to check it before showing it. If a value from an app shows on your head unit but not in your analysis, the analysis software may not read that app's developer fields.

FIT vs GPX vs TCX: which file should you use?

Use the FIT file whenever you have one. TCX, Garmin's Training Center XML format, keeps laps, heart rate and cadence, with power through an extension. GPX is an XML track of positions and times that suits maps and routes. It has no laps, and it carries heart rate or power only through extensions.

FIT TCX GPX
Kind of file Binary XML text XML text
Made for Sport, fitness and health devices Garmin's Training Center Exchanging GPS data
Laps Yes Yes No
Heart rate and cadence Yes Yes Through extensions
Power Yes Through Garmin's extension Through extensions, not in the standard
Events such as timer stops Yes No No
An indoor ride without GPS Yes Yes Often empty

GPX 1.1 dates from 2004 and was made to move waypoints, routes and tracks between programs. Garmin's track point extension adds heart rate, cadence and temperature to it, but not power. Strava's support page says its GPX export includes heart rate, cadence and temperature, and power when a power meter recorded it. It also warns that an activity without GPS data gives an unreadable or empty GPX file. Keep GPX for routes and maps, and keep the FIT file for the ride.

Why analyse a ride from the original FIT file?

Because the original file is what your devices measured, before any platform smoothed, trimmed or resampled it. A copy rebuilt from another service's data streams can lose your laps, your pauses and the names of your sensors, and it can carry that service's own corrections.

  • Laps. The laps you pressed for each interval live in the file's Lap messages. A stream is a list of values per second and may not carry them.
  • Pauses. The timer events and the two Session times show when you stopped. A copy that fills stops with zeros, or drops them, changes your averages and your power curve.
  • Corrections. Platforms clean data in good faith. intervals.icu, for example, can smooth power it judges to be a spike against your FTP setting, which helps with a power meter that glitches. With an FTP set too low, a real sprint can be smoothed away until you raise the threshold in its settings.
  • Devices. Device Info names the power meter and its software, which helps when two rides disagree. A race analysis needs the sprint and the laps still there.

Velograph reads rides this way. When a ride comes from intervals.icu and intervals.icu holds the original FIT, GPX or TCX file, it downloads that file and works out every number from it: power, normalized watts, training load, the device's laps and each leg of a multisport file. It falls back to the service's streams only when there is no file. The guide to intervals.icu and Velograph explains the connection.

Velograph's Connections tab with a ride file chosen, beside the panel for uploading a whole Strava or Garmin Connect export as one zip.
The Connections tab takes a single ride file or a whole account export: any zip of .fit, .gpx and .tcx files.

How do you download your own FIT files?

Copy the .fit files from the bike computer over USB, or download each ride from the platform it synced to: Export Original on the Garmin Connect and Strava websites, or Download FIT file on Zwift.com. For years of rides at once, ask Strava or Garmin Connect for an account export.

  • From the device. Many bike computers appear as a drive when you connect them to a computer, with each ride as a .fit file in an activities folder.
  • Garmin Connect. On the website, open the ride, choose the gear icon and Export Original. It works one ride at a time, and the file may arrive zipped.
  • Strava. On strava.com, open the activity and choose Export Original from the ⋯ menu. You get the file as it was uploaded, often FIT. Strava offers exports on its website only.
  • Zwift. On a PC, Zwift has saved new rides in AppData\Local\Zwift\Activities inside your user folder since February 2026, and older rides stay in Documents\Zwift\Activities. On a Mac, look in Documents, Zwift, Activities. Every ride is also on zwift.com/feed: choose Just Me, the ride, the cog and Download FIT file.
  • Everything at once. Importing your cycling history walks through the Strava and Garmin Connect account exports.

Rides kept in Velograph come back out as files too, on the free Rider plan as well. Each ride's page has a Download menu with the FIT file, and a GPX track where the ride has GPS. Download all my rides on the Activities page sends a zip of FIT files through an emailed link, after a two-factor check. These files are written again from the ride's stored seconds and laps rather than kept from the upload, and rides that came from Strava are not offered, because they are on Strava already. What a rider gets on their own lists the rest.

Further reading

Velograph is not affiliated with, sponsored by or endorsed by any team, rider or company named in this article. Names are used only to refer to publicly reported work.

More on training with data

All 64 articles on training with data