About This Tool
The GPX Merger is a free browser tool that combines several GPX files into one. Load the files from a multi-day trip, a ride recorded in pieces, or a set of routes and waypoints from different sources, and download a single GPX file. You choose whether the tracks become one track with a segment for each recording, one continuous line, or stay separate tracks in the same file. Tracks are put in order of start time unless you prefer your own order, and waypoints and routes come along. The files are merged as text: every point is copied character for character, so timestamps, elevation, heart rate, and any other data a point carries are exactly as recorded. Nothing is uploaded; the files are read and merged entirely in your browser.
How to Use It
- Add your files. Drag and drop two or more .gpx files onto the upload area, or click to browse and select several at once. Each file is listed with its tracks, points, waypoints, start time, and distance, and drawn on the map in its own color.
- Choose how to merge. One Track joins everything into a single track and keeps each recording as a segment. One Continuous Line puts every point into one unbroken segment. Keep Tracks Separate copies each track whole.
- Check the order. With Order by start time ticked, tracks are sorted by their first timestamp. Untick it to use the order of the list, and move files with the arrows.
- Name the track if you are joining, and decide whether waypoints and routes are included.
- Read the result. It shows what the merged file will contain, the distance and time between each pair of joined recordings, and anything worth knowing, such as recordings that overlap in time.
- Download. Click Download Merged GPX. Your original files are never modified.
Choosing How to Merge
| Setting | What the file contains | Use it for |
|---|---|---|
| One Track | A single track. Each original segment is a segment of it, so the gap between two recordings stays a gap | A multi-day trip or a ride recorded in several files that should count as one activity. The usual choice |
| One Continuous Line | A single track with a single segment. A straight line runs from the end of each recording to the start of the next | Devices, apps, and sites that show only the first segment or split an activity at every segment |
| Keep Tracks Separate | Every track as it was, with its own name, description, and extensions, in one file | Collecting several trails or stages in one file to load on a device or share |
If you are not sure, start with One Track. Distance and elevation figures then match the sum of the originals, because nothing is drawn across the gaps.
Frequently Asked Questions
Does merging change my points, timestamps, or sensor data?
No. Every track point, segment, track, route, and waypoint is copied from its file as text, without being re-interpreted or rewritten. Coordinates keep every decimal place, timestamps are not shifted, and heart rate, cadence, temperature, power, and any other extension data stay attached to their points. Only the outer wrapper of the file is new.
In what order are the tracks joined?
By start time, when Order by start time is ticked and every track has timestamps. Segments from different files are interleaved correctly, so two files that each hold a morning and an afternoon come out in the order they were recorded. If any track has no timestamps, or you untick the box, the order of the file list is used. Waypoints and routes always follow the list.
What happens when two recordings overlap in time?
They are still merged, in order of their start times, and the Result section flags each join that goes back in time. This happens when two devices recorded the same outing. In a continuous line the timestamps then do not run in order, which some apps reject; One Track or Keep Tracks Separate avoids the problem.
Why does my merged track show a straight line between two places?
You chose One Continuous Line, which connects the end of each recording to the start of the next. The map shows those connections as dotted lines before you download, and the Result lists the length of each. Choose One Track to keep the gaps as gaps. Some apps also draw a line between segments on their own; that is the app's doing, not something stored in the file.
What happens to waypoints and routes?
Waypoints from every file are combined, and routes are copied whole. With Remove duplicate waypoints ticked, a waypoint with the same name and the same position as one already included is left out, which is what you want when every day's file carries the same set of pins. Untick Include waypoints or Include routes to merge the tracks only.
What happens to track names and descriptions?
With Keep Tracks Separate, each track keeps its name, description, type, and track-level extensions. A joined track is a new track, so it takes the name you type, or the name of the first track if you leave the box empty, and the originals' names and descriptions are not carried into it. File-level details such as author, copyright, and links are not carried over in any mode.
Can I merge the tracks inside a single file?
Yes. Load one file that holds several tracks and choose One Track or One Continuous Line. The tracks are joined the same way separate files would be.
Can I merge files from different devices and apps?
Yes. Files from different sources often use the same short prefix for different kinds of extension data. The merger detects that and renames the clashing prefix in one file so both sets of data stay valid, and tells you when it has. A GPX 1.0 file can be merged with GPX 1.1 files; the result is GPX 1.1, and the tool notes that fields found only in GPX 1.0 are copied as they are.
Why was one of my files refused?
A file has to be well-formed XML to be merged, because its content is copied as it stands. A recording that was cut off, or a file with a broken tag, is refused with a link to GPX Repair, which can usually recover it. Files that contain no tracks, routes, or waypoints, and files that are already in the list, are skipped.
Is my file uploaded anywhere?
No. The files are read and merged by JavaScript in your browser, and the new GPX is generated on your device. The map loads background tiles from OpenStreetMap, but your tracks are never sent anywhere.
What are the limits?
Files must be .gpx and under 25 MB each. You can merge up to 50 files, 60 MB in total.
Related Tools
To do the opposite and cut one track into parts, use the GPX Editor. If the merged track has more points than your device accepts, the GPX Track Simplifier reduces them without changing its shape. Check the result in the GPX Analyzer, which shows each track and segment with its distance and times, and tidy the combined waypoints in the GPX Waypoint Editor.
Learn More
GPX File Basics
What tracks, segments, routes, and waypoints are inside a GPX file
Split & Trim GPX Tracks
Tracks versus segments, and when each is the right shape
Reduce GPX File Size
What to do when a merged track is too large for a device
How to View a GPX File
Ways to check the merged file on a map
Request a Feature
Have an idea that would make this tool better? Post it on the feature request board and vote on what gets built next.