GPX Merge, Split & SimplifyEdit hiking, running, and cycling tracks in your browser

Combine tracks, split them into parts, and remove extra points. See distance, elevation gain, and a route preview, and trim your start and finish. Your files stay in your browser.

Your input is never sent anywhere.

Details

Drop GPX files here

Select several files at once. Your files are not uploaded.

Files are merged in the order listed above

Load a GPX file and the results will appear here

Distance, duration, elevation gain, and file size are calculated automatically

Merge settings

Point reduction

Output options

Cuts this distance along the track from the very start and the very end. Use it to hide your home or workplace before sharing.

TIP

Load a GPX file or press “Try a sample”, and your settings apply in real time.

Merge, Split, and Simplify GPX Files Without Uploading Them

GPX is the standard file format for GPS tracks and waypoints. Hiking apps, running watches, bike computers, and phone recording apps can read and write it. Editing a GPX file is another matter. Joining a multi-day hike into one file, cutting a long ride into sections, or shrinking a file that is too big to upload usually means installing desktop software.

This page does all three in your browser: merge several tracks in time order, split one track into parts, and remove redundant points to shrink the file. Results are saved as new GPX files, and your originals are not changed. The tool doesn’t upload your files or send coordinates to a map service, so tracks that reveal where you live or where you usually go stay on your device.

Along the way you also get distance, elapsed and moving time, elevation gain, and average speed, a route and elevation preview, CSV export, start and finish trimming, timestamp and elevation removal, and route reversal. Switch between miles and feet or kilometers and meters at any time.

Common Jobs: Multi-Day Hikes, Lap Splits, and Oversized Tracks

Join a multi-day hike into one track

Combine daily logs in time order to get one GPX for the whole route. Handy for a trip report, or for checking total distance and elevation gain.

Cut a long recording into sections

Split a trail run or century ride every few miles, every 30 minutes, or by day. You can also split wherever you paused the recording.

Shrink a file that won’t upload

A 1-second recording can hold tens of thousands of points. Remove points while keeping the shape of the route when an app or website struggles with the file.

Tidy up road trip and travel logs

Split a trip by day, shrink the files for a map app, and remove timestamps or elevation before you share them.

Hide your home before you post

Cut a set distance from the start and finish before you publish a track on a blog, forum, or social media.

Turn an outbound track into a return route

Reverse the track and save it to follow on the way back. Timestamps are removed from a reversed route, because they would no longer make sense.

How to Combine, Cut, and Shrink a Track in 4 Steps

  1. Choose GPX files or drag them onto the page. You can load several at once, or press “Try a sample” to see how it works.
  2. Pick Merge, Split, or Simplify, then adjust the settings on the right: split method, tolerance, trimming, and more.
  3. Check the route preview and the distance, time, elevation gain, and file size. Results update as you change settings.
  4. Press “Save GPX” to download the new file. If you split a track into several parts, “Save all files as ZIP” gives you everything in one download.

Note: Your original files are not modified. Nothing is written until you save, and every output is a new file.

Supported Formats, How Numbers Are Calculated, and Limits

  • Supported formats: GPX 1.0 and 1.1 tracks (trk), routes (rte), and waypoints (wpt). Routes are read as tracks, and output is always written as GPX 1.1. Convert TCX or FIT files to GPX first.
  • Distance is the sum of great-circle distances between consecutive points. Elevation is not included, so the total can differ slightly from your watch or app.
  • Elevation gain and loss only count changes of 3 m (about 10 ft) or more, because GPS elevation is noisy. Your device or app may show a different number.
  • Moving time counts the intervals of up to 5 minutes between points where speed was at least 0.5 m/s (about 1.1 mph). It is a simple estimate and needs timestamps. Average speed is distance divided by moving time.
  • Without timestamps, you can’t split by time, gap, or date, thin points by time, or see moving time and average speed.
  • Splitting works on one file at a time and treats that file’s segments as one continuous line.
  • A larger tolerance rounds off sharp curves and makes the distance slightly shorter. Use a small value for switchbacks and other twisty routes.
  • Trimming removes distance from the very start of the first segment and the very end of the last segment. Waypoints are not trimmed, so turn off “Include waypoints” if one marks your home.
  • Privacy: files are read and processed locally in your browser. There is no upload step.

Track Point Counts by Recording Interval

The number of track points depends on how often your device records a position. Use this table to see why a file is large and to set a target when you reduce points.

Recording intervalPoints per hourPoints in an 8-hour dayTypical use
1 sec3,60028,800Highest detail, largest files
2 sec1,80014,400High detail
3 sec1,2009,600Fairly high detail
5 sec7205,760Balance of detail and file size
10 sec3602,880Battery saving
30 sec120960Long trips, strong battery saving
60 sec60480Multi-day trips, maximum battery saving

Choosing a point reduction method

  • Keep shape (tolerance): Best when the shape of the route matters most. Start at 15 ft (about 5 m). Go smaller if the route looks off, or larger for a smaller file.
  • Target point count: Use it when a site or device limits the number of points. The tool searches for the smallest tolerance that gets you under your limit.
  • Distance spacing: Keeps about one point every set distance, such as every 50 ft.
  • Time spacing: Keeps one point every set number of seconds. It needs timestamps.

Coordinate decimals and precision
6 decimals is about 4 in (0.1 m), 5 decimals about 3.6 ft (1 m), and 4 decimals about 36 ft (11 m). Rounding to 5 decimals alone makes the file smaller.

Point counts are theoretical: recording time in seconds divided by the interval in seconds. Real files vary with pauses and GPS reception.

Tracks, Segments, and the Douglas-Peucker Algorithm Explained

A short guide to how a GPX file is built and what each operation does to it.

GPX structure: tracks, segments, and points

GPX is an XML text file. A track (trk) contains segments (trkseg), and each segment holds a list of track points (trkpt) with latitude, longitude, and usually elevation and time.
A segment marks a break in recording, such as a pause or a lost signal. If you keep each file as its own segment when merging, a map app won’t draw a straight line from the end of one file to the start of the next.

Merging: order, overlaps, and file boundaries

Put the files in time order first. “Sort by start time” does it for you.
If a recording was split in the middle, or two devices recorded the same stretch, use “Sort all points by time”. It puts every point into one time-ordered segment and removes consecutive duplicates that share the same time and coordinates.

Choosing a split method

Pick the method that matches what you want from each part. Use “By distance” or “By time” for laps and sections, “By date” to separate a multi-day track into days, and “At gaps” to split wherever you stopped recording for a break or lunch.
For distance and time splits, repeat the junction point in both parts. The parts then meet on a map without a gap.

Douglas-Peucker: how points are removed

The Douglas-Peucker algorithm draws a straight line between the first and last points, finds the point farthest from that line, and keeps it if it is farther than your tolerance. It then repeats on each half. Points that stay within the tolerance of the simplified line are dropped.
Because the points that define curves and turnarounds are kept, the route looks nearly the same with far fewer points. Keeping every Nth point is simpler, but it can cut off sharp corners.

Other ways to shrink a file

Besides removing points, you can round coordinates to 5 decimals (about 3.6 ft), remove sensor data such as heart rate and cadence, or remove elevation and timestamps.
Sensor data is stored on every point, so removing it can shrink files from devices with many sensors a lot. Combine options to fit your needs.

Straight Lines, Wrong Order, and Missing Timestamps: Fixes

A straight line connects the end of one track to the start of the next

If separate days or places are merged into a single segment, map apps assume you traveled from the end of the first track to the start of the next and draw a straight line between them. Total distance and elevation gain also come out too high.

💡 See the solution▼
Turn on “Start a new segment at each file boundary” (it is on by default). Each file becomes its own segment, so no line is drawn and the jump isn’t counted in the distance.

The merged track is out of order

Files are merged in the order shown. If you picked them by name or in a different order, a later day can end up before an earlier one, which can break playback or elapsed-time calculations in some apps.

💡 See the solution▼
After loading the files, press “Sort by start time” and then merge. If two devices recorded the same stretch, use “Sort all points by time” instead.

A large tolerance flattens switchbacks and hairpin turns

On a switchback trail or a mountain road with hairpins, a tolerance of 50 to 100 ft (15 to 30 m) can drop the points at the turns. The route looks rounded or drifts off the road on a map, and the distance comes out shorter.

💡 See the solution▼
For twisty routes, keep the tolerance between 3 and 15 ft (1 to 5 m). The preview overlays the original track as a dashed line, so you can check the shape as you adjust. To meet a point limit, use “Target point count” instead.

Time-based options are unavailable because the file has no timestamps

Some apps and route planners export GPX without time data. In that case you can’t split by time, gap, or date, thin points by time, or see moving time and average speed.

💡 See the solution▼
Split by distance, equal parts, or positions, and reduce points with tolerance, distance spacing, or target point count. These only need coordinates.

A shared track reveals your home or your daily schedule

If a track starts or ends at your house, posting it shows where you live. Timestamps also show when you were away from home.

💡 See the solution▼
In Output options, trim about 650 ft (200 m) or more from the start and finish, then turn on “Remove timestamps” to share the route without dates and times. Waypoints aren’t trimmed, so turn off “Include waypoints” if one marks your home.

Questions About Privacy, Sensor Data, and Compatibility

Q.How do I merge multiple GPX files into one?

Q.

A. Load the files, make sure Merge is selected, and save the result. The files are merged in the order shown on the page, and “Sort by start time” puts them in chronological order for you. By default each file stays its own segment, so a map app won’t draw a straight line from the end of one track to the start of the next. If two devices recorded the same stretch, turn on “Sort all points by time” to merge them into a single time-ordered track.

Q.How do I split a GPX file by distance, time, or day?

Q.

A. Choose Split, then pick one of six methods: by distance (for example every 5 miles), by time (every 30 minutes), into equal parts, at positions you type in (distance from the start), at recording gaps (where you paused or stopped logging), or by date (at midnight in the time zone you choose). Split by date for a multi-day hike, or by distance for lap-style sections. Each part is saved as its own GPX file, and you can download them all in one ZIP.

Q.What does simplifying a GPX file do, and does it hurt accuracy?

Q.

A. Simplifying removes redundant track points, such as the many points along a straight stretch, while keeping the overall shape of the route. The “Keep shape” method uses the Douglas-Peucker algorithm and only keeps points that sit farther from the simplified line than your tolerance (15 ft or 5 m by default). Deviations stay within that tolerance, so the route looks almost the same on a map while a long 1-second recording gets far smaller. A larger tolerance rounds off sharp curves and makes the distance slightly shorter.

Q.Is my GPS data uploaded or stored anywhere?

Q.

A. No. This tool has no upload step. Your files are read, merged, split, and reduced in your browser, and the ZIP file and route preview are created there too. The preview is drawn from your own coordinates without loading map tiles, so your track isn’t sent to a map service. When you close the page, the loaded data is cleared from memory.

Q.Are heart rate and cadence data kept when I merge or split?

Q.

A. Yes. Sensor data stored in each track point’s extensions, such as heart rate, cadence, and temperature from Garmin-style files, is copied to the output as is. To make the file smaller or to avoid sharing that data, turn on “Remove sensor data” in Output options. You can also remove elevation or timestamps on their own.

Q.How do I hide my home address before sharing a track?

Q.

A. In Output options, enter a distance for “Trim from start” and “Trim from end”. The tool cuts that distance off the track at each end. For example, trimming about 650 ft (200 m) removes everything within that distance of your front door, assuming the track starts and ends there. Waypoints aren’t trimmed, so turn off “Include waypoints” if one marks your home. Turn on “Remove timestamps” too if you don’t want to show when you were out.

Q.Can I use the merged file on Strava, Garmin Connect, Komoot, or AllTrails?

Q.

A. The tool writes standard GPX 1.1, which apps and GPS software that import GPX should be able to read. Some services limit file size or the number of points, so reduce the points first if an upload fails. Check each service’s current requirements, since they can change.

Q.Can it open TCX or FIT files?

Q.

A. No. It reads GPX files only (GPX 1.0 and 1.1), including tracks, routes, and waypoints. If you have a TCX or FIT file, export it as GPX from your device’s app or website first, then load it here.

Q.Is there a file size or point limit?

Q.

A. The tool sets no limit. How large a file you can process depends on your device’s memory and speed, and a computer handles very large tracks with hundreds of thousands of points better than a phone does. If it feels slow, reduce each file first and then merge, or split the track before you process it.

Q.Why is my elevation gain different from my watch or app?

Q.

A. GPS elevation is noisy, so this tool only counts changes of 3 m (about 10 ft) or more toward elevation gain and loss. Watches and apps use their own smoothing, and many use barometric data, so totals often differ. Compare numbers from the same tool when you are tracking progress over time.

User Feedback & Request

Your feedback
makes this tool better.

Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.

Send feedback