Small icon
Input
- Width: 40 characters
Calculation
Image is scaled to 40 columns and a matching row count
Result
A short text block you can paste into a README.
Turn an image into characters. Darker areas use denser symbols. The file stays on your device.
Overview
ASCII art replaces pixels with characters. This page shrinks the picture to the width you choose and picks a character from a ramp based on brightness.
The file is drawn on a canvas in your browser. It is not uploaded.
Change the width or the invert option, then choose the image again to redraw.
Steps
JPG, PNG, WEBP, and other formats your browser can open.
20 to 160 characters. Wider art keeps more detail and makes a longer file.
Turn this on when you want light areas to use the dense characters.
Copy the text or save ascii-art.txt.
Pick the file again so the new width is applied.
Math
Character index = brightness mapped onto the ramp " .:-=+*#%@".
Each sampled pixel becomes one character. Rows are shortened because text characters are taller than they are wide.
Worked cases
Image is scaled to 40 columns and a matching row count
A short text block you can paste into a README.
Default width. Dark pixels map to @ and #
A medium ASCII portrait.
Bright pixels take the dense characters
Useful when the subject is lighter than the background.
Why use this
Questions