Image to ASCII Art

Convert an image to ASCII art in the browser.

The Image to ASCII tool converts a picture into text art. Choose an image, set the output width, pick a character set and optionally invert the brightness. The result can be copied as plain text. It is a fun way to make banners for terminals, READMEs and chat.

How does image-to-ASCII conversion work?

ASCII art maps brightness to characters. The image is scaled to a grid of columns and rows, and each cell takes the brightness of its pixel, calculated from the red, green and blue values with weights that approximate how the eye sees brightness. A string of characters ordered from sparse to dense, such as a space, a dot and then heavier symbols, is used as a ramp, and each cell picks the character matching its brightness. Text characters are about twice as tall as they are wide, so the number of rows is reduced to keep the picture from looking stretched. Transparent pixels are treated as white. By default dense characters stand for dark pixels, which suits dark text on a light background. Inverting flips that for light text on a dark background.

How to use Image to ASCII Art

  1. Choose an image Click Choose an image or drop a file.
  2. Set the width Drag the Width slider; the label shows the number of characters.
  3. Pick a Charset Select Standard, Detailed, Blocks or Binary.
  4. Invert if needed Tick Invert (for dark backgrounds) if the result looks reversed on your background.
  5. Copy Press Copy ASCII to copy the text.

Frequently asked questions

Why does my output look stretched or squashed?

Monospaced fonts have different aspect ratios. The tool assumes characters are about twice as tall as wide. Adjust the width or the font and line height where you paste it.

Is my image uploaded?

No. The file is read and drawn to a canvas locally, and nothing is sent to a server.

Which charset should I use?

Standard is a good default. Detailed gives finer tones on large widths, Blocks looks smoother but needs Unicode font support, and Binary gives a 0 and 1 effect.

Do animated GIFs work?

The image is drawn once, so you get a single frame, usually the first.

Does it produce color output?

No. The output is plain text based on brightness only.