Image to ASCII Art

Turn a logo or photo into text art for code comments, READMEs and chats.

How to turn an image into ASCII art

  1. Choose an image. Clear shapes and strong contrast work best: logos, portraits, silhouettes.
  2. Set the width in characters (20–300) and pick a character set.
  3. Tick Invert if the art will be shown on a dark background, such as a terminal.
  4. Copy the text, or download it as a .txt file or a PNG picture.

How it works

The image is shrunk to one sample per character and turned to greyscale; Boost contrast stretches the darkest part to black and the lightest to white. Each sample becomes a character from a scale that runs from dense symbols for dark areas to spaces for light ones. Because text characters are about twice as tall as they are wide, the tool uses half as many rows, so the picture keeps its shape: a 4:3 photo at 100 characters wide gives 38 lines.

Where to use it

  • Code comments, README files and command-line tool banners.
  • Plain-text emails, forum posts and chat messages that support code blocks.

Tips

  • Always show ASCII art in a monospaced font, such as Courier or Consolas, or in a code block; otherwise the lines won't line up.
  • Boost contrast first with Photo filters for a crisper result.
  • Want blocky pixel graphics instead of text? Try the Pixel art generator.

Frequently asked questions

Why does my ASCII art look stretched?

View it in a monospaced font such as Courier or Consolas, or in a code block. Proportional fonts break the alignment. The PNG download is drawn with fixed spacing, so it always lines up.

What width should I use?

About 80 characters for code comments and terminals, 100–150 for detailed images.

Which character set looks best?

Standard (10 characters) is clean and readable; Detailed uses 70 characters for finer shading in photos; Blocks (▓▒░) gives a solid, poster-like look. You can also type your own, darkest first.

Is my image uploaded?

No.

More image tools

See all image tools →

Can't find the tool you need? Tell us.