LinuxCommandLibrary

figlet

TLDR

Create ASCII art text

$ figlet "[Hello World]"
copy
Use specific font
$ figlet -f [slant] "[text]"
copy
Center output
$ figlet -c "[text]"
copy
Set width
$ figlet -w [80] "[text]"
copy
List available fonts
$ figlet -I 2 | xargs -I {} ls /usr/share/figlet/
copy

SYNOPSIS

figlet [options] [message]

DESCRIPTION

figlet renders text as large ASCII art characters using various fonts. It's commonly used for terminal banners, welcome messages, and stylized text output.
Multiple fonts provide different styles from simple block letters to elaborate designs. The tool adjusts character spacing (smushing) to create compact or spread-out output.
figlet reads from standard input if no message is provided, enabling piped input.

PARAMETERS

MESSAGE

Text to render as ASCII art.
-f FONT
Font file to use.
-w WIDTH
Output width.
-c
Center output.
-l
Left justify.
-r
Right justify.
-k
Kerning mode.
-W
Full width (no smushing).
--help
Display help information.

CAVEATS

Font availability varies by installation. Very long text may wrap awkwardly. Some fonts work better at certain terminal widths.

HISTORY

figlet (Frank, Ian & Glenn's Letters) was created in 1991 by Glenn Chappell and Ian Chai. It became a Unix classic for creating ASCII banners, spawning hundreds of community-created fonts.

SEE ALSO

toilet(1), banner(1), cowsay(1)

Copied to clipboard