Linux Terminal Commands ASCII Art

Creating ASCII Art Using Terminal Commands - A Fun Way to Use Linux!?

This time, let's try creating ASCII art using Linux terminal commands. ASCII art is drawing pictures using characters. Since you can create ASCII art using Linux terminal commands, here's how to do it.

Shou Arisaka
2 min read
Oct 13, 2025

I played around with ASCII art packages that can be created from the command line.

  • ASCII art packages
apt-get install cowsay
apt-get install figlet
apt-get install toilet
apt-get install jp2a

cowsay

A cow talks.

$cowsay lol

_____
< lol >
-----
       \   ^__^
        \  (oo)\_______
           (__)\       )\/\
               ||----w |
               ||     ||

figlet

Convenient for text โ†’ ASCII art output. Can change fonts with the -f option.

figlet Hello!
 _   _      _ _       _
| | | | ___| | | ___ | |
| |_| |/ _ \ | |/ _ \| |
|  _  |  __/ | | (_) |_|
|_| |_|\___|_|_|\___/(_)

Figlet x Toilet

Figlet x Toilet can do some interesting things.

watch -n1 "date '+%D%n%T'|figlet -k"

while true; do echo "$(date '+%D %T' | toilet -f term -F border --gay)"; sleep 1; done
Every 1.0s: date '+%D%n%T'|figlet -k                                                                                                                                                                                                                      Fri Jul 21 18:28:15 2017

  ___  _____  __ ____   _     __ _  _____
 / _ \|___  |/ /|___ \ / |   / // ||___  |
| | | |  / // /   __) || |  / / | |   / /
| |_| | / // /   / __/ | | / /  | |  / /
 \___/ /_//_/   |_____||_|/_/   |_| /_/

 _   ___     ____   ___     _  ____
/ | ( _ ) _ |___ \ ( _ ) _ / || ___|
| | / _ \(_)  __) |/ _ \(_)| ||___ \
| || (_) |_  / __/| (_) |_ | | ___) |
|_| \___/(_)|_____|\___/(_)|_||____/

jp2a

jp2a can convert images โ†’ ASCII art. The precision is quite good, I was impressed.

NAME="image.jpg"
jp2a --width=200 -f -i  $NAME | tee AA_$NAME.txt

โ†“Opening the text file in an editor looks like this. Image

References:

Share this article

Shou Arisaka Oct 13, 2025

๐Ÿ”— Copy Links