Merge and fix tracks

How to trim the start or end of a GPX track

Updated

You finished the hike, sat in the car, and drove forty minutes home with the watch still recording. Now your “hike” has a top speed of 110 km/h and a long, straight tail along the highway. Or the opposite: the watch was running while you wandered around the parking lot looking for the trailhead.

Cutting that extra bit off is called trimming, or cropping. It’s one of the most common fixes, and also one of the simplest.

Where you trim matters

There are two places you can trim:

  • On the activity, inside a platform like Strava. The activity changes there, and your stats update.
  • On the file itself, before you share it or upload it anywhere. You get a clean file you can use in any app.

If the activity is already on Strava and that’s where it matters to you, trimming there is quickest. If you want a clean file to keep, share or turn into a video, trim the file.

Trimming on Strava

Strava has a Crop tool. According to its help center, on the website:

  1. Open the activity, select the ellipsis icon and choose Crop.
  2. Drag the sliders to set the part you keep. Strava says the part shown in orange is kept and the part shown in blue is removed.
  3. Use the Back and Forward buttons under each slider for small adjustments. Satellite view lets you zoom in closer.
  4. Click Crop to confirm.

In the mobile app, open the activity, tap the ellipsis in the upper right corner, choose Crop Activity, move the sliders and tap Save. The arrows adjust the start or end one second at a time.

Strava also lists some limits:

  • You can only trim the start or the end, not the middle.
  • The activity needs GPS data, so some indoor activities can’t be cropped.
  • You can only crop your own activities.
  • There is no undo. To get the original back, Strava says to use Export Original on the website, delete the cropped activity (which removes its kudos, comments and photos) and upload the original again.

Because there is no undo, export the original first. It takes ten seconds and can save you a lot of regret. Our guide on how to download a GPX file from Strava shows where to find it.

What about the middle?

Say you hopped in a car for a few kilometers in the middle of a run. Strava’s crop tool can’t remove that directly. Its help center suggests splitting the activity first and then cropping the piece that contains the bad part. The Split tool, which Strava describes on the website, cuts one ride or run into two or three activities; kudos and comments stay with the first part only.

Trimming the file itself

If you’d rather work on the file, GOTOES lists a Split GPS files tool on its tools page, described as a way to split a GPS activity into separate FIT, GPX or TCX files by choosing cut points on a map and charts and keeping the parts you want. Cutting near the start and the end and keeping the middle piece gives you a trimmed file.

Whichever tool you use, keep a copy of the untouched file. If you’re not sure which file type to keep, GPX vs FIT vs TCX vs KML helps.

Before and after you trim

  • Trim before you merge. If you are going to join several files, clean each one first. See how to merge Garmin activity files.
  • Check the totals afterward. Distance and time should drop by roughly what you removed.
  • Look at the ends on the map. The track should now start and finish where you actually did.

Trimming in Trazo

Trimming is one of the basics in Trazo, at trazo.run. You trim, reverse or fix sections of the track while seeing the surface and the road type underneath, which makes it obvious where the trail ended and the pavement began. The cleaned track is then ready for its 3D map video, at the length you choose.

Sources

Your next route deserves its own video.

Claim your bibCreate your account

Sign up and turn your first route into a video.

Create my account

Claim a bib before launch and you’ll get full access. No spam.

Your bib: #0000

You’re in!

Full access is yours from race day. We’ll email you at .

That email already has a bib: #0000.

Too many tries in a row. Try again later.

Check your email: something’s missing, like the @ or the domain.

We couldn’t save your bib. Try again in a few minutes.