Art

img2ascii – command-line tool for converting images to ASCII art

img2ascii is a command-line utility written in C that converts image files into character-based artwork. It replaces the visual information in a picture with text characters that approximate the original image’s shapes and shading.

The application supports common image formats including PNG, JPEG and BMP. Its output can be displayed directly in a terminal or written to a text file for later use.

img2ascii is designed for straightforward image conversion. Users can adjust the output width and supply a custom character set to change how different brightness levels are represented.

The ability to reverse the selected character sequence provides another way to modify the appearance of the result. This can be useful when displaying artwork against different terminal backgrounds.

The program is particularly suitable for experimenting with character representations of photographs and illustrations without requiring a graphical editor.

This is free and open source software.

Key Features

  • Converts PNG, JPEG and BMP images into ASCII artwork.
  • Uses characters of different densities to represent image shading.
  • Provides a command-line interface for selecting source images.
  • Allows the output width to be specified.
  • Supports custom character sets.
  • Reverses the character sequence used during conversion.
  • Displays generated artwork directly in the terminal.
  • Saves converted artwork to a text file.
  • Supports processing different source images with individual settings.
  • Cross-platform support – runs on Linux and Windows.

Website: github.com/JosefVesely/img2ascii
Support:
Developer: Josef Vesely
License: MIT License

Picture of an orange

ASCII orange

img2ascii is written in C. Learn C with our recommended free books and free tutorials.


Related Software

ASCII Art Tools
gif-for-cliConvert media to animated ASCII art
ASCIIQuariumEmbrace marine life from the terminal with beautiful ASCII art
CalligraphyConverts short texts into large, imposing banners
CMatrixTerminal based “The Matrix”
DiagonTransforms markdown-style expression into an ascii-art representation
AewanAscii-art Editor Without a Name
Steam LocomotiveC program written in 295 lines. It's harmless fun
boxesASCII box drawing
DurdrawASCII, Unicode and ANSI art editor
FIGletMake large letters out of ordinary screen characters
pipes.shAnimated pipes terminal screensaver
jp2aConvert JPEG images to ASCII
asciifyTurn images into attractive ASCII art
lolcatRainbows and unicorns
ArtemConvert images to ASCII art
TOIletSimilar in many ways to FIGlet with additional features
textdrawDraw geometric figures and text
PyBonsaiGenerates procedural ASCII art trees
No More SecretsRecreates the data decryption effect seen in the 1992 film Sneakers
LetterpressConverts your images into a picture made up of ASCII characters
drawSimple drawing tool for the terminal
ASCII Art ConverterConverts images into ASCII art
cbonsaiGenerate bonsai trees
cadubiCreative ASCII drawing utility
cacafireColor ASCII Fire
cowsayGenerates ASCII pictures of a cow with a message in a speech bubble
MezzotoneConvert images into ASCII art
img2asciiCommand-line tool for converting images to ASCII art
gtiTypo-based curio inspired by Steam Locomotive
ctreeChristmas tree on your terminal
ASCII DrawSketch anything using characters
catspeakLike cowsay but catty

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted