GPX to CSV Converter

Export GPX track points to CSV with lat, lon, ele and time columns

Ad placeholder (leaderboard)

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:

  1. DOMParser reads the GPX and collects every trkpt (track point) and wpt (waypoint) in document order.
  2. For each point it pulls the lat and lon attributes and the optional child ele (elevation in metres) and time (ISO 8601 timestamp).
  3. It writes a header row — type,name,latitude,longitude,elevation_m,time — then one row per point, with the type column marking it as a trackpoint or waypoint.
  4. 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.

Ad placeholder (rectangle)