converting bulk exported strava data to gpx
When you bulk export your Strava data you’ll receive a zip file of:
- .gpx
- .fit.gz
- .tcx.gz files.
To get them all into gpx format follow these steps.
Extract the .gz files
- Bulk extract .gz files using 7-zip. 7-zip allows you to select all files and extract them all in one go.
Convert .fit files to .gpx (requires Python)
- Install the fit2gpx python library
Type
pip install fit2gpx
into command line (as admin). Note fit2gpx can also do the extracting in step 1 if not done already (see documentation) - Run the code from Python IDE:
from fit2gpx import StravaConverter DIR_STRAVA = 'C:/strava_bulk_export_parent_folder/' strava_conv = StravaConverter( dir_in=DIR_STRAVA ) strava_conv.strava_fit_to_gpx()
- Converted files will be in the activities_gpx folder.
Convert .tcx files to .gpx (requires node.js)
- Download/clone tcx-to-gpx-converter to a folder.
- Type
npm install
into the command line from the folder’s location. - Copy the tcx files into the input folder.
- Type
node convert.js
into the command line. - Converted files will be in the output folder.
#TechNotes