How to Trim Warmup and Cooldown from GPX Before Uploading to Strava

Why Trim Your Ride?

You finished an epic ride, but the first 15 minutes were spent doing laps around a parking lot waiting for your group. Or the last 20 minutes were a slow cooldown spin back to the car. Now your Strava stats are diluted — average speed is down, elapsed time is inflated, and the route map shows an ugly tangle at the start.

Strava's "Crop" tool lets you trim the beginning or end of an activity after upload, but it's limited. You can only trim from the edges, not remove a segment from the middle. And if you want to trim before uploading — to keep your Strava profile clean — Strava doesn't offer that at all.

Common Scenarios for Trimming

  • Parking lot warmup — Riding circles while waiting for friends, inflating distance and creating map clutter.
  • Forgot to stop recording — You finished the ride but kept recording during the post-ride coffee stop or the drive home.
  • Indoor warmup on a trainer — Your file starts with 20 minutes of indoor trainer data before you headed outside.
  • Cooldown spin — Easy spinning at the end dragging down your average speed and power.
  • GPS wander at start — The first few minutes of GPS data are wildly inaccurate as the device acquires satellites.

The Hard Way: Editing GPX XML

GPX files are XML, so you can technically open one in a text editor, find the timestamp where your warmup ends, and delete all <trkpt> elements before that point. Then do the same at the end for the cooldown.

The problems with this approach:

  • A 2-hour ride can have 7,200+ trackpoints (one per second). Finding the right timestamp in that wall of XML is tedious.
  • Deleting the wrong element or leaving an unclosed tag breaks the entire file.
  • You lose the visual context — there's no map to show you exactly where the warmup ends and the ride begins.

The Easy Way: Trim with TrailBlender

TrailBlender's trim tool gives you a visual editor with map and timeline, so you can see exactly what you're cutting.

  1. Open your GPX or FIT file in TrailBlender.
  2. Select the Trim tool from the toolbar.
  3. Drag the start handle on the timeline to skip past the warmup. The map updates in real time to show the new starting point.
  4. Drag the end handle to cut the cooldown. Watch the map update as you adjust.
  5. Review the trimmed activity — Check distance, time, and average stats to make sure it looks right.
  6. Export the trimmed file as GPX or FIT. Upload to Strava with clean stats and a tidy map.

Tips for Clean Trims

  • Trim to a recognizable landmark — Use the map to cut at a specific intersection or trailhead, not an arbitrary time.
  • Check your stats after trimming — Make sure distance, elevation, and time look correct before exporting.
  • Keep the original file — TrailBlender exports a new file, leaving the original untouched. You can always re-trim if you cut too much.
  • Consider splitting instead of trimming — If you did a structured workout (intervals, tempo blocks), splitting into separate files may be more useful than trimming.

Try TrailBlender — Free

Merge your GPX files in seconds. No upload, no account.

Frequently Asked Questions

Can I remove a segment from the middle of a ride?

Yes. TrailBlender's split tool lets you cut a ride into segments and discard any you don't want. Split the activity at the start and end of the unwanted segment, delete that segment, and merge the remaining pieces back together.

Will trimming affect my Strava segments?

Strava matches segments based on GPS coordinates, not activity start/end times. As long as the segment portion of your ride is included in the trimmed file, Strava will still match and score it correctly.

Can I trim FIT files too, not just GPX?

Yes. TrailBlender handles both GPX and FIT files natively. The trim workflow is identical regardless of format. All sensor data (power, HR, cadence) is preserved in the trimmed output.

Does Strava's built-in crop do the same thing?

Strava's crop tool only trims from the start or end of an already-uploaded activity. TrailBlender lets you trim before uploading, remove segments from the middle, and gives you a visual map preview of exactly what you're cutting. It's more precise and works offline.

Related Guides