Split a GPX file in your browser
This tool breaks one large GPX track into several smaller GPX files. It is built for anyone whose device recorded a multi-day trip or a very long ride as a single file and now wants it cut into manageable, per-day or fixed-size pieces.
How it works
The GPX is parsed with the browser’s DOMParser, and all track points are collected
in order. Then one of three rules is applied:
- Every N points — the list is chopped into fixed-size chunks of N points each.
- By time gap — a new part begins whenever the time between two consecutive points exceeds your threshold in minutes, which neatly separates recordings paused overnight.
- By date — a new part begins whenever the calendar day of a point’s timestamp changes, giving you one file per day.
Each resulting group of points is wrapped in a complete, standalone GPX 1.1 document.
When you need to split a GPX file
Multi-day hiking trips: A GPS device left recording continuously over several days produces a single GPX file with tens of thousands of points spanning multiple calendar days. Splitting by date produces clean day-by-day files, each of which can be analysed or shared independently. Many route-planning apps (Komoot, AllTrails, Strava) have size or point-count limits that make uploading a raw multi-day track impractical.
Very long rides or rides with pauses: A cycling computer that records every second for an 8-hour ride with lunch breaks produces a file with a large time gap mid-track. Splitting by time gap (for example, any pause over 30 minutes) creates two clean activity files — morning and afternoon — rather than one file with a confusing zero-movement section in the middle.
Battery-limited devices: Some cheaper GPS watches or trackers stop and restart recording when the battery dips, producing a new track segment for each restart within a single file. Splitting by time gap handles this well by separating segments that had a gap exceeding your threshold.
Reducing file size for upload: Some platforms limit GPX uploads by file size or point count. Splitting every N points lets you stay within these limits while preserving full detail in each chunk.
Choosing the right mode
| Situation | Best mode |
|---|---|
| Multi-day trek logged as one file | By date |
| Long activity with overnight stops | By time gap (threshold: 60–480 min) |
| Consistent GPS recording interval, just too many points | Every N points |
| No timestamps in the file | Every N points (only mode available) |
For the time-gap mode, a useful threshold is typically 2-4 hours for separating day hikes or rides, and 6-12 hours for separating overnight pauses.
What each output file contains
Every output file is a complete, valid GPX 1.1 document with a single track containing a single segment. The track point data (latitude, longitude, elevation, timestamp) is copied verbatim from the original, so no information is lost. The file can be opened directly in any GPX-compatible application, including Garmin Express, Strava, Suunto App, Komoot, or any GIS tool.
Notes
Everything runs locally — nothing is uploaded. Time-gap and date modes need timestamps on the points; if yours has none, the every-N-points mode always works. To recombine parts later, use the GPX Merger.