Converts Flexible and Interoperable Data Transfer (FIT) files to Training Center XML (TCX) files
Python Shell
Switch branches/tags
Nothing to show
Latest commit 39b0b46 Aug 27, 2016 @Tigge Run tests on Travis CI
Failed to load latest commit information.
fittotcx Use argparse Aug 26, 2016
tests Run tests on Travis CI Aug 26, 2016
LICENCE First commit Jan 31, 2012
TODO Update README (with requirements) and TODO file (fixes #1) Mar 31, 2012 Fix after modulification Apr 5, 2016


Travis branch Coveralls branch


  • python-fitparse -- A library to parse FIT files by David Cooper. You can get it from GitHub at

    Unfortunately this library don't have a file yet, and is not available through PyPI.

    You can install it manually like this:

    git clone cp -R python-fitparse/fitparse /usr/local/lib/pythonX.Y/site-packages

    Replace X.Y with your python version.

  • python-lxml -- A library for reading and writing XML files. It uses the C libraries libxml2 and libxslt.

    This package should be available through your packaging system, so depending on your operating system you should be able to use apt-get install python-lxml, yum install python-lxml or similar.

    This library is marked as a dependency so using the installation instructions below should bring in this if you don't have it.


Run sudo python install to install FIT to TCX. This will install an fittotcx binary in /usr/bin or similar.


Usage: fittotcx FILE

This program takes a FIT file and converts it into an TCX file and output the result to the standard output. To save the result to a file, just pipe the output to a file with fittotcx > filename.tcx

Batch usage

Usage: ./ FILES

This command takes a series of FIT files and converts it into TCX and outputs the TCX files to the same directory as the FIT files is located in. For example, if you have your FIT files in a directory called Workouts in your home directory, calling ./ ~/Workouts/*.fit will convert all your files at the same time.