Skip to content
FitMerge

Merge a Fit export into one daily CSV and a list of activities — Step-by-step guide

A Google Takeout export of fitness data is a folder of daily CSV files, with repeated and overlapping rows, plus one TCX file per activity. FitMerge reads the export ZIP in your browser, writes one daily CSV with a row for every calendar day, and a sessions CSV with the duration, distance and average heart rate of each activity. Nothing is uploaded.

What the sample produces

The sample is a generated export in the documented layout: two overlapping daily files, a repeated row, a day with two rows, a day with no data, and two TCX files. The check reads the output CSVs with Python's csv module and compares every day and activity with values worked out by hand. It also runs the same files as a folder, and checks that a damaged ZIP and a ZIP without the daily folder are refused.

Days in the continuous file
6, one per calendar day
Days with no data
1
Activities
2: Running 30 min, Biking 60 min
Files not used
2, listed in the details

How to use it

  1. Request a Takeout export of your account with only the fitness data selected. When the email says it is ready, download the ZIP and keep it as it arrives.
  2. Choose the ZIP here. The preview counts the daily rows, the days, the activities and the files this tool does not use. Nothing is uploaded.
  3. Download fitmerge-daily.csv, with one row per calendar day, and fitmerge-sessions.csv, with one row per activity when the export has TCX files.

Supported files

Reads the "Daily activity metrics" CSV files and the "Activities" TCX files of a Takeout export, using the column names of the public consolidation script's README, which describes a 2021 export. The layout may have changed since then, and exports from the newer Google Health app or from Fitbit accounts are not checked. A row counts for the day in its Start time (YYYY-MM-DD), as written. Rows of the same day are summed, except heart rate and weight, which are averaged. A row with the same start and end time as one already read is skipped. The continuous file has a line for every day from the first to the last, empty where there is no data. Sessions use the lap totals of each TCX activity, and the average heart rate is weighted by lap time, empty when there is none. No Apple Health import CSV is made, because no documented import format was confirmed. Sleep and other files are listed as not used. The sample is generated with invented values in the documented layout, not a real export. Up to 500 MB, read in browser memory.

Open FitMerge

Compare FitMerge with alternatives