**Creating Fun ASCII Art with Figlet**

Dinesh Ghadge
4 min readJul 23, 2023

--

Do you ever come across those cool text-based art designs that make you go, “Wow, how did they create that?” Well, you’re in for a treat! In this blog, we’ll explore the fascinating world of ASCII art and learn how to create captivating text designs using the popular tool called Figlet.

**What is Figlet?**

Figlet is a command-line utility that allows you to create artistic text banners and designs using only characters from the ASCII character set. It’s a fun and creative way to add some flair to your terminal, impress your friends, or even use it for basic graphic design projects. Figlet is easy to use and comes with various font styles to give you a wide range of options.

**Installing Figlet**

Before we dive into the exciting world of ASCII art, we need to install Figlet on our system. If you’re using a Linux-based system, such as Ubuntu or CentOS, you can use the package manager to install Figlet effortlessly.

For example, on CentOS or other distributions that use the `yum` package manager, open your terminal and enter the following command:

sudo yum install figlet

If you’re using Ubuntu or other distributions that use the `apt` package manager, use the following command:

sudo apt-get install figlet

Once the installation is complete, you’re ready to start creating awesome ASCII art!

**Creating ASCII Art with Figlet**

Now that Figlet is installed, it’s time to try it out. Open your terminal and type `figlet` followed by the text you want to transform into ASCII art. Let’s take an example to create an ASCII art design for the name “Dinesh.”

figlet dinesh

After hitting the Enter key, you should see the following result on your terminal screen:

Impressive, isn’t it? The ASCII art above was created using the default font style, but Figlet provides many other font styles to choose from. You can explore different font styles using the `-f` flag followed by the font name.

figlet -f slant Dinesh

This command will produce the following ASCII art:

**Customizing Figlet Output**

Besides selecting different font styles, Figlet allows you to tweak the output further. For example, you can adjust the width of the text using the `-w` flag and the output alignment using the `-c`, `-l`, or `-r` flags for center, left, and right alignment, respectively.

figlet -f block -w 60 -c "Hello, World!"

This command will create a centered ASCII art design for the text “Hello, World!” with a width of 60 characters.

**Saving Figlet Output**

If you want to save your ASCII art to a file instead of just displaying it on the terminal, you can use the `tee` command to achieve this.

figlet "ASCII Art" | tee ascii_art.txt

The above command will save the ASCII art for the text “ASCII Art” to a file named `ascii_art.txt` in the current directory.

**Unleash Your Creativity**

Now that you have Figlet installed and have a glimpse of its capabilities, it’s time to unleash your creativity and experiment with different text, fonts, and styles. Whether you’re creating banners, designing greeting cards, or simply having fun with text, Figlet is a fantastic tool that lets you turn ordinary words into extraordinary art.

So, why not give Figlet a try? Install it on your system and start creating captivating ASCII art that will leave your friends and colleagues amazed!

Remember, the possibilities are endless, and the world of ASCII art is waiting for your artistic touch. Happy designing!

--

--

Dinesh Ghadge

I'm a tech enthusiast with expertise in MLOps, AI, and machine learning. I specialize in crafting innovative solutions that bridge data and technology.