filerepair
All Tools ▾
Strava / Garmin · Private & Free

Repair Corrupted Garmin .FIT & GPX Activity Files

Watch died mid-run or Strava rejected your ride? Recalculate FIT header sizes & CRC-16 checksums or fix truncated GPX/TCX tracks locally in milliseconds.

Drop your Garmin FIT / GPX file here
Drag & drop anywhere or press⌘V·100% on-device · never leaves your browser
Try a sample:

Common Issues Handled

  • "Strava error: "The file is malformed / corrupt FIT file""
  • "Garmin Connect refuses to import truncated activity after battery died"
  • "Broken GPX or TCX XML tags prevent GPS track upload"

How It Works

  1. Restores the 14-byte Garmin FIT header and recalculates data_size from surviving records.
  2. Recomputes official ANT FIT CRC-16 checksums for both header and trailing file bytes.
  3. For GPX and TCX files, strips illegal XML characters and closes truncated trackpoint tags.

Exact Error Codes & System Messages Fixed

Strava Upload
The upload appears to be malformed and we are unable to process it
Garmin Connect
An error occurred with your upload. Please try again. (Corrupt .fit file)
Wahoo / Zwift / Hammerhead
Activity failed to sync after watch battery died or rebooted mid-ride
GPX / TCX Importers
XML Parsing Error: unclosed token <trkpt> or illegal character in GPS track

Garmin ANT+ FIT Binary Header & CRC-16 Checksum Mechanics

Every Garmin, Wahoo, Coros, and Zwift .fit file starts with a 14-byte header declaring the exact data_size (bytes 4–7) followed by a 2-byte ANT CRC-16 checksum at the end of the file. When a bike computer or GPS watch loses power mid-activity, the data_size field and trailing CRC-16 never get finalized.

Strava and Garmin Connect strictly validate both data_size and CRC-16 on upload, rejecting the entire workout even when 99% of your GPS, heart rate, and power records are intact. FileRepair recalculates data_size from the surviving binary records and writes valid ANT FIT CRC-16 checksums locally.

What Can Be Repaired

  • Truncated .fit files after watch or head-unit battery failure
  • Mismatched FIT header data_size and invalid trailing CRC-16 checksums
  • Broken or truncated .gpx and .tcx XML trackpoint tags

Honest Limitations

  • Activities where the watch storage wrote 0 bytes (empty file)
  • Severe GPS timestamp jumps decades into the future inside encrypted/corrupt message payloads

Frequently Asked Questions

Does this work with Garmin, Wahoo, Coros, and Zwift .FIT files?

Yes! All ANT+ FIT devices follow the same binary header and CRC-16 specification.

Where do I find the raw .fit file on my Garmin watch?

Connect your Garmin via USB to a computer and open GARMIN/Activity (or PRIMARY/GARMIN/Activity). Copy the .fit file by date, drop it into FileRepair, then upload the repaired file manually on Strava.

Related File Tools