gif-for-cli is a command-line utility that converts animated GIFs and short videos into moving ASCII artwork. It uses text characters and ANSI escape sequences to reproduce the frames of the original media directly in a terminal.
The program is useful for decorative terminal displays, animated login messages and demonstrations of character-based graphics. Its output can be adapted to the available terminal dimensions, while different rendering modes allow it to take advantage of colour-capable terminals.
gif-for-cli also supports retrieving animations through the Tenor GIF service, although this integration may no longer function reliably. The project’s source repository has been archived by Google.
This is free and open source software.
Key Features
- Converts animated GIFs and short videos into animated ASCII artwork.
- Supports local files and remote media URLs.
- Queries the Tenor GIF API using search terms or GIF identifiers.
- Automatically detects the terminal’s colour capabilities.
- Supports monochrome, 256-colour and truecolour output.
- Uses ANSI escape sequences for animation and colour rendering.
- Allows the output width and height to be adjusted.
- Supports continuous playback or a specified number of animation loops.
- Caches generated ASCII artwork to avoid unnecessary conversion.
- Exports converted animations as GIF files.
- Cross-platform support – runs on Linux and macOS.
Website: github.com/google/gif-for-cli
Support:
Developer: Google
License: Apache License 2.0

gif-for-cli is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| ASCII Art Tools | |
|---|---|
| gif-for-cli | Convert media to animated ASCII art |
| ASCIIQuarium | Embrace marine life from the terminal with beautiful ASCII art |
| Calligraphy | Converts short texts into large, imposing banners |
| CMatrix | Terminal based “The Matrix” |
| Diagon | Transforms markdown-style expression into an ascii-art representation |
| Aewan | Ascii-art Editor Without a Name |
| Steam Locomotive | C program written in 295 lines. It's harmless fun |
| boxes | ASCII box drawing |
| Durdraw | ASCII, Unicode and ANSI art editor |
| FIGlet | Make large letters out of ordinary screen characters |
| pipes.sh | Animated pipes terminal screensaver |
| jp2a | Convert JPEG images to ASCII |
| asciify | Turn images into attractive ASCII art |
| lolcat | Rainbows and unicorns |
| Artem | Convert images to ASCII art |
| TOIlet | Similar in many ways to FIGlet with additional features |
| textdraw | Draw geometric figures and text |
| PyBonsai | Generates procedural ASCII art trees |
| No More Secrets | Recreates the data decryption effect seen in the 1992 film Sneakers |
| Letterpress | Converts your images into a picture made up of ASCII characters |
| draw | Simple drawing tool for the terminal |
| ASCII Art Converter | Converts images into ASCII art |
| cbonsai | Generate bonsai trees |
| cadubi | Creative ASCII drawing utility |
| cacafire | Color ASCII Fire |
| cowsay | Generates ASCII pictures of a cow with a message in a speech bubble |
| Mezzotone | Convert images into ASCII art |
| img2ascii | Command-line tool for converting images to ASCII art |
| gti | Typo-based curio inspired by Steam Locomotive |
| ctree | Christmas tree on your terminal |
| ASCII Draw | Sketch anything using characters |
| catspeak | Like cowsay but catty |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.
looks like this work is on computercraft