Merge GPX Files
This tool combines several GPX files into one GPX file in your browser, for example the days of a bike tour or a ride the watch saved in two parts. The tracks are put in order by recording time, and every point keeps its time, elevation, heart rate, cadence and power. You choose one track with a segment per file, one continuous line, or separate tracks. Nothing is uploaded, and the same page splits a track at a pause or by day.
Did a file not convert correctly? E-mail [email protected], ideally with a small sample file, and it will be fixed.
Key facts
- Works with: GPX (.gpx).
- Your files are not uploaded: the work is done in your browser, on your own device.
- File size: no fixed limit; very large files are limited by your device's memory.
- Needs a current browser (Chrome, Edge, Firefox or Safari) on a computer, tablet or phone; nothing to install.
- Free to use, with no sign-up.
Why merge GPX files
A multi-day tour, a ride where the battery ran out halfway, or a watch that saved a long run as two activities all end up as several GPX files, while Strava, Komoot, Garmin Connect or a route planner want one. This page reads the GPX files in your browser, sorts them by the time they were recorded, and writes a single GPX 1.1 file. The track points are copied one by one, so their time stamps, elevation and the extensions a device adds, such as Garmin's heart rate and cadence or the power a bike computer records, stay exactly as they were. You can check the order in the list and the drawing before saving, drop more files at any time, and use the same page the other way round: split one long recording where you took a long break, or into one file per day.
How to merge GPX files
- Drop your GPX files in the box, or click and select them together. A zip of GPX files also works.
- Check the order in the list and the drawing; use the arrows to change it, and give the track a name.
- Choose how the tracks are joined, then click Merge GPX files and download the new GPX.
What to know about merging GPX tracks
A segment per file, or one continuous line
GPX has tracks, and each track is made of segments. "One track, a segment per recording" keeps the gap between two files, so a map does not draw a straight line from where you stopped on Monday to where you started on Tuesday, and the moving time is not counted across the night. "One continuous line" puts all points in one segment, which some route planners and older Garmin devices need for a course. "Keep each track separate" keeps one track per file in the same GPX, with its own name.
Order by recording time
The file chooser lists files in alphabetical order, which is often not the order they were recorded: "Afternoon ride.gpx" comes before "Morning ride.gpx". The tool sorts by the time of the first track point instead. Files without time stamps, such as a route drawn in a planner, keep their place in the list. If two files overlap in time, the result says so, because a track that goes back in time shows up as a jagged line in Strava and Garmin Connect.
Times, heart rate and power are kept
Each track point is copied with everything inside it: elevation, time and the extensions block, for example gpxtpx:hr and gpxtpx:cad from Garmin or power from Strava and Wahoo. The namespaces of those extensions are declared once at the top of the new file. Points that appear in two files at the same place and time, as at the seam of a recording cut in two, are written once.
Uploading a merged ride to Strava
Strava accepts a merged GPX as a new activity, but it does not replace the activities that are already there, so delete the separate ones afterwards to avoid counting the distance twice. A segment per recording is usually the best choice: Strava then counts the pause between the files as stopped time. A ride that crosses midnight is filed under the day it started.
GPX 1.0 files and waypoints
Older devices and GPSBabel write GPX 1.0. Those files are written as GPX 1.1, the version current apps use: the 1.0 speed and course fields, which 1.1 does not have, are left out, and a waypoint link is rewritten as a 1.1 link. Waypoints and routes from all files are included once each; untick the box if you only want the track.
About the formats
GPX
GPX (GPS Exchange Format) is the XML format used by GPS devices and apps such as Garmin, Strava and Komoot. It stores waypoints, routes and tracks with optional time and elevation. Version 1.1 from 2004, published by TopoGrafix, is the one in use today.
- Waypoints are single points; a route is a planned line through a few points; a track is the recorded path, often thousands of points.
- Tracks can carry a time stamp and elevation for every point.
- Coordinates are always WGS84 latitude and longitude.
- GPX has a fixed set of fields (name, description, symbol, type and a few more); anything else must go into extensions.
Frequently asked questions
Are my GPX files uploaded?
No. The files are read and merged by your browser on your own device. Nothing is sent to a server, so your home address and training times stay private.
How do I split a GPX file into several parts?
Choose "Split where the recording paused" and the shortest pause that should start a new part, or "Split by day" for a multi-day tour. You get a zip with one GPX file per part, or one GPX with a track per part. Days follow the clock of your device.
Can I merge GPX files from Komoot or Garmin Connect?
Yes. Any GPX 1.0 or 1.1 file works, whether it comes from Komoot, Garmin Connect, Strava, Wahoo, Suunto, a phone app or a route planner. A Strava bulk export can be dropped as a zip; the .gpx and .gpx.gz files inside it are read, other files are skipped.
Is there a limit on the number of files?
No fixed number. All files together can be up to 300 MB, which is far more than a year of rides; a two-hour ride recorded every second is about 1 to 2 MB of GPX.
Can I turn the merged GPX into KML or GeoJSON?
Yes. Save the merged file and open it in GPX to KML for Google Earth, or GPX to GeoJSON for a web map. Both keep the times of the track points if you ask for them.