Merge GPX files

Join two or more GPX files into one, for example a ride recorded in two parts or the days of a trip. The files are merged in your browser and never uploaded.

Merge as

The jump from the end of one file to the start of the next is not counted as distance, as after a pause.

The line runs on from the end of one file to the start of the next.

Each file stays its own track, for example one per day of a trip.

How to use

  1. Drop the GPX files on the box above, or choose them. You can add more files later.
  2. Check the order. Files with times start sorted by their start time. Drag a row, or use its arrow buttons, to move it.
  3. Under Merge as, choose how to join them.
  4. Select Download to save the merged file. It takes the name of the first file, with -merged added.

Every change merges the files again, so the summary and the drawing always show what you will download.

Three ways to merge

Order and overlapping files

When every file has times, the files start in the order they were recorded. Files without times stay in the order you added them, and Sort by start time puts timed files back in order after you move them.

When a file starts before the previous one ends, a note says so. It happens when two devices recorded the same activity, or when the same file was added twice.

What the merged file keeps

You can merge up to 50 files at a time, each up to 100 MB on a computer and 30 MB on a phone or tablet.

Merging Strava activities

Strava’s help says that activities cannot be merged on Strava itself. It suggests exporting the activity files, combining them with another tool, deleting the original activities and uploading the merged file, and warns that the kudos and comments of the deleted activities are lost. This page can do the combining step for GPX files. Strava accepts GPX uploads of up to 25 MB.

Your files stay on your device

TrackLoupe reads and merges the files with JavaScript in your browser, in a background worker. The download is made from your browser’s memory, so no part of the files, their names or their coordinates is sent to a server. To check, open the page, turn on airplane mode, and then merge files: it works the same.

Questions

How do I combine two GPX files into one?

Drop both files on this page, check their order, and select Download. The default option keeps them as one track with two segments.

Does merging change my points?

No. Every point stays as it was, with all its data. Merging only decides how the points are grouped into tracks and segments.

Can I merge files from two different devices?

Yes. If their times overlap, a note says so, because the result then holds the same stretch twice.

Which option should I choose?

For one activity recorded in parts, choose one track with each file as a segment. For connected stretches that should form one line, choose one continuous track. For a trip of several days, choose separate tracks.

Is there a limit?

Up to 50 files at a time, each up to 100 MB on a computer and 30 MB on a phone or tablet.

About the formats