Image to ASCII Art
Convert images to ASCII art.Runs in this tab.⌘ ↵ runs it
Drop image here or click to upload
How to use Image to ASCII Art
- Drop an image or click the upload area. The file input accepts image/*.
- Set Output Width (characters). The default is 80, and the value is clamped to 10 through 200. Height is calculated from the image.
- 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
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeQuestions
How do I turn a picture into ASCII art?
Which characters does image to ASCII art use?
Can I download the ASCII art as a file?
Comments
More in Image & Media
- QR Code Generator
- Image to Base64 Converter
- Placeholder Image Generator
- SVG to PNG Converter
- Image Resizer
- Image Cropper
- Image Compressor
- Favicon Generator
Comments