Sport-Calculator.comSport-Calculator.com
Tools4 min read

How Do I Edit a TCX File? (Trim, Fix GPS, Change Metadata)

Learn how to edit a TCX file online for free. Trim start/end, adjust GPS, fix metadata, and validate your changes before uploading to Strava or Garmin.

How do I edit a TCX file? Use a local, browser-based editor like our free TCX File Editor. Upload your .tcx, make changes (trim, GPS fixes, metadata updates), then download an edited TCX—your file is processed locally in your browser.

Editing is most useful when you need to clean up a workout before you upload it to a platform (Strava, Garmin Connect, TrainingPeaks, etc.) or when you need to repair obvious issues like a bad start/finish or shifted GPS.

What does “editing a TCX file” actually mean?

Most TCX edits fall into one of these categories:

  • Metadata edits: sport type, timestamps, activity name (varies by file/export)
  • Timeline edits: trim/crop the start and end (warm-up, cool-down, forgot to stop)
  • GPS edits: apply an offset to fix a consistently shifted route
  • Metric edits: fix values like heart rate, cadence, speed, elevation, power (if present)

If you’re not sure what’s inside your TCX, open it first in the viewer:

How to edit a TCX file (step-by-step)

  1. Open the TCX File Viewer.
  2. Upload your file and confirm what data exists (GPS, laps, HR, cadence, etc.).
  3. Note what you want to change (trim range, GPS offset direction, metadata).

Step 2: Open the TCX editor and upload your file

  1. Go to the TCX File Editor.
  2. Drag & drop your .tcx file (or click to browse).
  3. Wait for the editor to parse the file locally.

Step 3: Apply the edit you need

Common edits include:

  • Trim/crop: remove unwanted time at the start or end (privacy + clean workouts)
  • Adjust GPS: fix a route that’s consistently shifted (GPS offset correction)
  • Update metadata: correct sport type or activity info if it’s wrong

Step 4: Download the edited TCX

Download the edited file and keep the original as a backup.

Step 5: Verify the edited file before uploading

Always validate your export:

  1. Open the edited file in the TCX File Viewer.
  2. Check that the route, charts, laps, and totals look correct.

Safe edits vs risky edits (what to watch out for)

Some edits are generally “safe” across platforms, while others can cause weird behavior.

Edit typeUsually safe?Why it matters
Trimming start/end✅ YesMost platforms handle cropped activities well
Changing sport type✅ UsuallyAffects categorization and stats in platforms
GPS offset correction✅ UsuallyFixes systematic drift; verify start/end points
Editing per-point metrics⚠️ SometimesCan create unrealistic spikes/flatlines
Editing timestamps⚠️ SometimesCan break ordering or platform import expectations

Rule of thumb: if you edit data that platforms use for “sanity checks” (time ordering, GPS consistency), always verify in a viewer before uploading.

Common TCX editing scenarios (real-world)

Remove warm-up/cool-down (trim)

If you started recording too early or stopped too late, trimming is the cleanest fix. It also helps with privacy if your start/end location reveals your home.

Fix “shifted” GPS tracks

If the entire track is offset (e.g., running through buildings), a GPS offset correction can help. After applying the correction, verify the route in:

Correct an incorrectly labeled workout

If a device exported a workout with the wrong sport type, updating metadata can prevent training platforms from misclassifying the session.

Convert after editing (when a platform needs a different format)

After you clean up the file, you may need a different format for compatibility:

If you’re not sure which format to use, read:

Disclaimer: Information provided by this site is for educational purposes only and is not intended to be a substitute for professional medical advice specific to the reader's particular situation. The information is not to be used for diagnosing or treating any health concerns you may have. The reader is advised to seek prompt professional medical advice from a doctor or other healthcare practitioner about any health question, symptom, treatment, disease, or medical condition.