GPX stores your GPS data as nested XML, which is awkward to analyse directly. Flattening it to CSV gives you a plain table — one row per point — that Excel, Google Sheets, pandas and database loaders all read natively. This free converter does that in your browser, so you can analyse a hike or drive without uploading your private location history.
How it works
The converter walks the GPX and writes one CSV row per point:
DOMParserreads the GPX and collects everytrkpt(track point) andwpt(waypoint) in document order.- For each point it pulls the
latandlonattributes and the optional childele(elevation in metres) andtime(ISO 8601 timestamp). - It writes a header row —
type,name,latitude,longitude,elevation_m,time— then one row per point, with thetypecolumn marking it as atrackpointorwaypoint. - Fields containing commas, quotes or newlines are quoted per RFC 4180 so the table stays aligned.
The result is a clean, ordered table ready for analysis.
Tips and example
A track point like:
<trkpt lat="48.20" lon="16.37"><ele>170</ele><time>2026-06-06T08:00:00Z</time></trkpt>
becomes the CSV row trackpoint,,48.20,16.37,170,2026-06-06T08:00:00Z. With latitude, longitude and time on every row you can compute distance between consecutive points (haversine) and divide by the time delta to get speed — the usual reason for flattening GPX.
Everything runs locally; your GPS data is never uploaded.