$linuxjunkies
>

figlet(1)

Display large ASCII art text banners in the terminal.

UbuntuDebianFedoraArch

Synopsis

figlet [OPTION]... [TEXT]...

Description

figlet converts text into large ASCII art letters using pre-defined font files. It reads input from the command line or standard input and outputs a large stylized representation using standard keyboard characters. This is commonly used for creating decorative headers, banners, and visual separators in shell scripts and terminal displays.

The command supports multiple fonts, layout options, and text justification. If no text is provided on the command line, figlet reads from standard input until EOF.

Common options

FlagWhat it does
-f FONTSelect a specific font file to use for rendering
-lLeft-align text (default is left-aligned)
-cCenter-align the output text
-rRight-align the output text
-jJustify text to fill the full width
-w WIDTHSet the output width; default is 80 columns
-pPipe each line through fmt, useful for fitting narrow widths
-DPrint debugging information showing character codes
-FUse fonts from the figlet database
-vPrint version information

Examples

Display 'Hello World' in large ASCII art using the default font

figlet Hello World

Display 'Welcome' using the 'banner' font style

figlet -f banner Welcome

Display centered ASCII art text

figlet -c Important

Pipe text to figlet from standard input

echo 'Linux' | figlet

Render text with a width limit of 40 columns and pipe formatting

figlet -w 40 -p Narrow

Display 'SUCCESS' in the italic 'slant' font

figlet -f slant SUCCESS

Right-align text with a wider output width of 100 columns

figlet -r -w 100 'Right Aligned'

List all available figlet fonts on the system

ls /usr/share/figlet/

Related commands