GPX Merger

Combine multiple GPX files into one track file in seconds

Merge tracks and waypoints from several GPX files into a single valid GPX document. Each source file becomes its own track segment so timestamps and ordering are preserved. Everything runs in your browser with no upload. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How are the files combined?

Each source GPX becomes its own track segment inside one merged track, kept in the order you add the files, and all waypoints are copied across. This preserves point order and timestamps.

Merge GPX files in your browser

This tool combines several GPX files — for example one per day of a multi-day hike — into a single GPX document you can load onto a watch or into a mapping app. It is built for hikers, cyclists, and tourers who record in chunks but want one clean file.

How it works

Each input is parsed with the browser’s DOMParser. The tool then builds a fresh GPX 1.1 document containing one track, and adds one track segment per source file so the original ordering and any gaps between recordings are preserved rather than being joined by a misleading straight line. Every trkpt is copied with its lat, lon, ele and time intact, and any standalone wpt waypoints are appended at the document level. The result is valid GPX that any tool can read.

Why one segment per file matters

GPX distinguishes between a track (trk), a track segment (trkseg), and track points (trkpt). A track is made up of one or more segments; a segment is a continuous sequence of points. The gap between segments has semantic meaning: it represents a real break in the recording, such as stopping for a night’s camp or pausing your device.

If all source points were merged into a single segment, the last point of day one and the first point of day two would be connected by a straight line in any viewer that draws the route. On a hiking map, that line would cut through mountains, cross rivers, and generally misrepresent your actual path. One segment per source file avoids this entirely — the gap is preserved and the route line stops and starts rather than interpolating.

When you would merge GPX files

The most common reasons to merge:

  • Multi-day trips — your GPS device auto-splits recordings at midnight or when battery runs out. You end the trip with five files but want one route in Strava, Garmin Connect, or Komoot.
  • Accidentally paused recording — you stopped your device at a viewpoint and restarted it, leaving two files for what should be a single ride or run.
  • Downloading segments separately — some platforms export each day’s segment of a longer journey as a separate GPX, but you need the full route for planning or sharing.
  • Stitching a planned route from multiple legs — route-planning tools sometimes produce one file per leg; merging them gives you a single file to load onto a device.

File ordering

The files are merged in the order you add them, which becomes the segment order in the output. Add them chronologically: day 1 first, day 2 second, and so on. If you need to reorder them, remove all files and re-add them in the correct sequence.

Notes

All processing is local — nothing is uploaded. Your GPS data never leaves your device. To go the other way and break one file into pieces, use the GPX Splitter.