Skip to content

Image to ASCII Art

Embed

Paste this where you want Image to ASCII Art on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/image-to-ascii/" width="100%" height="500" frameborder="0" loading="lazy" title="Image to ASCII Art"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/image-to-ascii/">Image to ASCII Art</a> by BrowserUtils</p>

Convert images to ASCII art.Runs in this tab.

Drop image here or click to upload

How to use Image to ASCII Art

  1. Drop an image or click the upload area. The file input accepts image/*.
  2. Set Output Width (characters). The default is 80, and the value is clamped to 10 through 200. Height is calculated from the image.
  3. Click Convert to ASCII, then Copy. The output is text. There is no PNG download, no color mode, and no invert switch.

How the image becomes characters

Upload an image, set Output Width, and click Convert to ASCII. Width defaults to 80 and is clamped to 10 through 200. Height is round(width × (imageHeight / imageWidth) × 0.5), because a character cell is taller than it is wide. A square image at width 80 is 40 rows.

Each pixel’s brightness is 0.299R + 0.587G + 0.114B, divided by 255. That value picks a character from this ramp, dark to light:

 .:-=+*#%@
Pixel Brightness Character
Pure black, 0, 0, 0 0 space
Gray 128, 128, 128 0.502 =
Gray 200, 200, 200 0.784 #
Pure white, 255, 255, 255 1 @

Higher brightness maps to a later character. White is @. Black is a space.

The conversion uses a canvas in this tab. There is no color ANSI mode, no custom ramp, and no invert toggle. Copy is the only way out: there is no file download. An animated image contributes the still frame the browser decoded. Width 200 on a tall photo makes a large block of text. Display it in a monospace font.

Next step

Questions

How do I turn a picture into ASCII art?
Upload the image, set the width, and click Convert to ASCII. Height is round(width times image height over image width times 0.5), because a character cell is taller than it is wide. A width of 80 on a square image is 40 rows.
Which characters does image to ASCII art use?
The ramp from dark to light is space, period, colon, hyphen, equals, plus, asterisk, hash, percent, at: " .:-=+*#%@". Brightness is 0.299R + 0.587G + 0.114B. Pure black is a space. Pure white is @. Mid gray (128,128,128) is =.
Can I download the ASCII art as a file?
Copy puts the text on the clipboard. There is no file download. Animated images contribute the still frame the browser decoded. A width of 200 on a tall photo makes a large block of text.

More in Image & Media

All 19 image & media