IT lexicon › Programming › Chafa

Chafa

Programming På svenska → Updated: 2026-10-04
More info
Creator
Hans Petter Jansson
Released
2018
Type
Command-line tool and library
Website
hpjansson.org/chafa

Command-line tool that turns images and animations into terminal graphics, from plain ASCII all the way to sixel.

Chafa is the modern heir to AA-lib and libcaca: the same basic problem — pick the character and colour that best resemble a patch of the image — but with all of Unicode's block elements, half blocks and braille characters to choose from, and 24-bit colour when the terminal supports it. If the terminal can do more, it switches to graphics protocols such as sixel or Kitty's.

Hans Petter Jansson released the first version in 2018, and it ships both as a program and as a C library, so other terminal applications can draw images through it. It is ASCII art without an artist: impressive as a conversion, but anyone who has seen hand-pixelled ANSI can tell at once the difference between an algorithm approximating and a person choosing.

← Back to the lexicon