GPX to CSV

The GPX from your watch holds thousands of points with position, height and time. Here they come out as rows, so you can chart the climb, look for gaps or feed them to your own script.

Options
One row per place/line with its name and data, or one row per GPS point (latitude, longitude, elevation, time) for tracks and paths.
Text that starts with =, +, -, @ or a tab gets a leading apostrophe, so Excel shows it as text instead of running it. Numbers are never changed.

Your file is converted on your computer. It is not uploaded anywhere.

How it works

  1. Drop your file in the box above, or click it to pick one.
  2. Pick the output format and press Convert.
  3. Download the result. Nothing was uploaded on the way.

Is it safe?

A track is basically a log of where you were and when, and this one is read only by your browser, never uploaded.

Want to check? Open your browser DevTools, switch to the Network tab and convert a file. Or convert a small file once, because each converter downloads its code the first time, then go offline and convert your real file.

What a row looks like

"CSV rows" starts on "One row per point", which gives these columns:

  • name: the track, route or waypoint the point belongs to.
  • geometry_type: LineString for track and route points, Point for waypoints.
  • part: counts the pieces of each track, so one with three segments (the recording was paused twice) shows parts 1, 2 and 3.
  • point: the running number inside that part.
  • latitude and longitude in decimal degrees, and elevation in metres where the device recorded it.
  • time in ISO 8601, converted to UTC (the Z at the end). Planned routes usually have no times at all.

The other choice, "One row per place, track or shape", gives a short summary instead: one row per track or waypoint, with its description, the whole line as WKT and fields such as the waypoint symbol.

Where GPX files come from

GPX (GPS Exchange Format) has been the shared format of GPS gear since 2002. Garmin Connect, Strava, Komoot and most hiking apps export an activity or a planned route as .gpx. It's XML, so a text editor opens it, but a two-hour ride is about 7,000 points of angle brackets.

Not in the CSV

Heart rate, cadence, power and temperature are stored in GPX extensions, and they're not written to the CSV; a note tells you when the file has some. Speed and distance usually aren't stored in a GPX at all, because apps work them out from the points. With position and time on every row, a spreadsheet formula can do the same.

Files up to 50 MB and 5 million points are fine. Excel stops at 1,048,576 rows, though, which a multi-day trip at one point per second can pass.

Questions about this format

Why are the times in my CSV an hour or two off?

They're in UTC, as GPX stores them, marked with a Z. Add your time zone offset in the spreadsheet to get local time.

Can I get heart rate into the CSV?

Not with this converter. Heart rate sits in device-specific GPX extensions, and those aren't read into the CSV.

How do I get a clean list of my GPX waypoints?

Switch "CSV rows" to "One row per place, track or shape". Each waypoint gets a row with name, description, coordinates and time, and tracks get one summary row each.

Will Excel mess up the coordinates?

They use a dot as the decimal point. In a locale where Excel expects a comma, import the file through Data, From Text/CSV instead of double-clicking it.

Last updated: