Parse and generate Rocket League replays.


Version on this page:2.2.0
LTS Haskell 22.23:12.1.3
Stackage Nightly 2024-05-30:13.0.3
Latest on Hackage:13.0.3

See all snapshots rattletrap appears in

MIT licensed
Maintained by Taylor Fausak
This version can be pinned in stack with:rattletrap-2.2.0@sha256:ff994b8b41d56d56963f375a683ba8571ae307cfa4e1f535fdc679f783d79ac5,7413

Module documentation for 2.2.0


Version badge Windows build badge Build badge

Rattletrap parses and generates Rocket League replays.

If you only want to parse replays, consider using Octane instead. It uses Rattletrap behind the scenes but provides a nicer interface.


Get Rattletrap by downloading and unpacking the latest release for your platform.

To build Rattletrap from source, install Stack. Then run stack --resolver nightly install rattletrap.


Rocket League saves your replays in a folder that depends on your operating system.

  • Windows: %UserProfile%\Documents\My Games\Rocket League\TAGame\Demos
  • macOS: $HOME/Library/Application Support/Rocket League/TAGame/Demos
  • Linux: $HOME/.local/share/Rocket League/TAGame/Demos


Rattletrap can parse (decode) Rocket League replays and output them as JSON.

> rattletrap decode input.replay output.json
# or
> rattletrap decode input.replay > output.json
# or
> rattletrap.decode < input.replay > output.json

The resulting JSON is minified, but extremely large. The output can be up to 50 times larger than the input.


Rattletrap can also generate (encode) Rocket League replays from JSON files.

> rattletrap encode input.json output.replay
# or
> rattletrap encode input.json > output.replay
# or
> rattletrap.encode < input.json > output.replay

If the JSON was generated by Rattletrap, the resulting replay should be identical to the original.


By inserting another program between parsing and generating, Rattletrap can be used to modify replays.

> rattletrap decode < original.replay |
  modify-replay-json |
  rattletrap encode > modified.replay


Change log

Rattletrap uses Semantic Versioning. The change log is available through the releases on GitHub.