Can I convert a .json file; generated by a program like asciinema; into an animated .gif?

1 Answer 1


Yes. While asciinema doesn't provide this natively, there are tools out there that can facilitate that for you.

You can create your local recording like so:

asciinema rec my_recording.json

And then feed that into a tool like asciicast2gif:

./asciicast2gif my_recording.json my_recording.gif
  • $ asciinema rec my_recording.json asciinema: Too many arguments. See 'asciinema --help'.
    – user84207
    Nov 28, 2017 at 2:17
  • @user84207: I'm not sure what's going on; I just tested this on the latest version of asciinema (1.4.0) and it still seems to be working for me. If you run asciinema without any parameters (or asciinema --help), you should see almost the exact same command listed.
    – mcmahoniel
    Nov 28, 2017 at 19:13
  • It was an older version
    – user84207
    Nov 28, 2017 at 20:53
  • From a comment in the source code: # run phantomjs to take screenshots while asciinema-player runs. That's a pretty poor solution, oops! I would use a recording utility other than asciinema, like ttystudio.
    – Kaz
    May 5, 2020 at 6:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.