GPX Splitter

Split a GPX file by point count, time gap, or date boundary

Divide one large GPX track into several smaller GPX files — split every N points, on time gaps above a threshold, or at calendar-day boundaries. All logic runs in your browser with no upload. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What split modes are available?

Three: every N points (fixed-size chunks), by time gap (start a new part whenever the gap between two points exceeds your threshold), and by date (a new part per calendar day in the timestamps).

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

SituationBest mode
Multi-day trek logged as one fileBy date
Long activity with overnight stopsBy time gap (threshold: 60–480 min)
Consistent GPS recording interval, just too many pointsEvery N points
No timestamps in the fileEvery 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.