FitFileLab
Editing6 min read

How to merge two GPX files into one

Did your watch stop halfway through the ride? Recorded a hike in two stages, or a trip split by a lunch break? The result: two files where there should be one. Merging those tracks rebuilds a continuous activity, ready to analyse or upload in one piece. Here's how.

Why merge GPX files?

The cases are common: a dead battery mid-route, a manual stop you forgot then restarted, an outing recorded in several segments, or a two-day hike you want to see as one. In all of these, adding the files back together restores the total distance, cumulative elevation and a coherent track โ€” instead of two isolated halves.

How to merge your files

The merge tool takes several files at once and assembles them in chronological order. You can even mix formats: a GPX with a FIT, for instance.

  1. 1

    Open the merge tool

    It runs in the browser, on desktop and mobile alike.

  2. 2

    Drop in your files

    Drag the two (or more) files to combine. GPX, FIT and TCX are all accepted.

  3. 3

    Check the preview

    The map and combined stats appear: total distance, duration, elevation gain.

  4. 4

    Pick a format and download

    Export the merged activity as GPX, TCX or FIT, whichever you need.

Merge my GPX files

Your files are assembled in your browser: nothing is sent to a server, and no account is needed.

In what order are segments assembled?

Segments are sorted by their timestamps, which naturally rebuilds the flow of the outing. Distances are made continuous from one segment to the next, and each source file becomes a lap in the final activity โ€” handy for finding where the break was afterwards.

Check the result before uploading

Before sending the merged activity to Strava or Garmin Connect, a look at the map avoids surprises โ€” especially if the two segments are far apart, which draws a straight line between them.

Check the merged activity

If a segment overruns (recording started too early, forgot to stop at the end), you can trim the track before or after merging.

Trim the track

FAQ

Can I merge more than two files?
Yes. You can drop in several files at once: they'll all be assembled in chronological order into a single activity.
Can I merge a GPX with a FIT?
Yes. The tool reads GPX, FIT and TCX interchangeably, and you pick the final file format at export time.
What happens if there's a gap between the two segments?
Segments are joined as they are: if they're geographically far apart, a straight line will appear between them. Check the track on the map before uploading.
Are my files sent online?
No. Merging happens entirely in your browser, with no upload, which keeps your data private.