Image to ASCII Art Converter
Convert images to ASCII art — classic text-based image rendering using density-mapped characters.
Turn a picture into ASCII art
This converter redraws any image using plain keyboard characters. Each small area of the picture becomes one character, and brighter areas get “heavier” characters such as #, % and @ while darker areas get light ones such as . or a blank space. Upload a photo or logo, choose how many characters wide the result should be (30 to 200) and which character set to use, then copy the text. It all runs in your browser; the image is not uploaded.
ASCII art dates back to teleprinters and early terminals, when text was the only thing a screen or printer could show. It is still popular for terminal splash screens, README files, code comments, plain-text emails and retro-styled social posts.
How to use it
- Upload an image. Simple, high-contrast pictures work best: logos, silhouettes, icons and well-lit portraits.
- Set the width in characters. 80 is the default and matches the classic 80-column terminal. More characters means more detail but a bigger block of text.
- Pick a character set: Standard (10 characters), Detailed (15) or Hi-detail (69).
- Review the preview in the black box with green text, then click Copy and paste the art wherever you need it, in a monospaced font.
How brightness becomes characters
The tool shrinks your image to one pixel per character, then for each pixel computes the average of red, green and blue (0–255) and picks a character with index = floor(average ÷ 256 × number of characters). In the Standard set the mapping is:
| Index | Character | Average brightness (R+G+B)/3 |
|---|---|---|
| 0 | (space) | 0–25 |
| 1 | . | 26–51 |
| 2 | : | 52–76 |
| 3 | - | 77–102 |
| 4 | = | 103–127 |
| 5 | + | 128–153 |
| 6 | * | 154–179 |
| 7 | # | 180–204 |
| 8 | % | 205–230 |
| 9 | @ | 231–255 |
The important detail: the first character is used for the darkest pixels and the last for the brightest. Dark areas become spaces and bright areas become dense symbols. That is why the preview looks natural — it is shown as bright green text on black, like an old terminal. If you paste the result onto a white page, it will look like a photographic negative. To get dark-on-light art, invert the image first with the Image Color Inverter, then convert it.
| Option | Characters, from darkest pixels (left) to brightest (right) | Levels | Brightness steps per level |
|---|---|---|---|
| Standard | (space) . : - = + * # % @ | 10 | 25.6 |
| Detailed | (space) . , : ; i 1 t f L C G 0 8 @ | 15 | 17.1 |
| Hi-detail | space, punctuation, letters, digits, then & E W # © % @ $ | 69 | 3.7 |
More characters give smoother tones, but only if the font shows a clear difference in “ink” between them. The Hi-detail set also includes the © symbol, which is not part of 7-bit ASCII, so a few very old systems may display it incorrectly.
Output size for common images
Text characters are roughly twice as tall as they are wide, so the tool samples half as many rows as a straight resize would: rows = round(image height × width ÷ image width × 0.5). The result is columns × rows:
| Image shape | 40 wide | 80 wide (default) | 120 wide | 200 wide |
|---|---|---|---|---|
| Landscape 4:3 (e.g. 4000 × 3000) | 40 × 15 | 80 × 30 | 120 × 45 | 200 × 75 |
| Wide 16:9 (1920 × 1080) | 40 × 11 | 80 × 22 | 120 × 34 | 200 × 56 |
| Square 1:1 | 40 × 20 | 80 × 40 | 120 × 60 | 200 × 100 |
| Portrait 3:4 | 40 × 27 | 80 × 53 | 120 × 80 | 200 × 133 |
| Phone 9:16 | 40 × 36 | 80 × 71 | 120 × 107 | 200 × 178 |
We confirmed the default: a 400 × 300 test photo at width 80 produced exactly 80 columns and 30 lines.
Worked example
A company logo is 1000 × 1000 px, white symbol on a dark blue background. At 60 characters wide you get 60 × 30 characters. The blue background (say rgb(20, 40, 90), average 50) maps to index 1 of the Standard set, a dot, while the white symbol (average 255) maps to @. In a terminal the logo appears as bright @ shapes on a field of dots, and pasted into a white README the @ characters print dark, so this logo reads correctly either way. A dark logo on a white background is the opposite case: the white background would fill with @ and the logo itself would be blank, so invert that kind of logo before converting.
Tips for good ASCII art
- Increase contrast first with the Brightness & Contrast tool; soft photos turn into grey mush.
- Crop tightly around the subject with Image Crop so every character carries detail.
- Width 40–60 suits chat apps and code comments; 80–120 suits terminals and README files; 150–200 is best viewed zoomed out.
- Always display the result in a monospaced font (Courier, Consolas, Menlo). Proportional fonts break the alignment.
- In Markdown, wrap the art in a code block (three backticks) so spaces are preserved.
- Want lettering rather than a picture? The ASCII Art Generator turns text into big banner letters.
Limitations
- Output is plain, colourless text. The green-on-black look exists only in the preview.
- Transparent areas count as black, so they become spaces.
- Each character comes from a single resampled pixel, so thin lines narrower than one character cell can disappear.
- Some platforms collapse repeated spaces or use proportional fonts (many social apps, email clients in HTML mode), which distorts the art.
Frequently Asked Questions
How does the image to ASCII converter choose characters?
It averages the red, green and blue values of each sampled pixel and maps that brightness to a position in the chosen character set: darkest pixels get the first character (a space) and brightest pixels get the last character, such as @.
Why does my ASCII art look inverted when I paste it?
The tool puts dense characters where the image is bright, which looks right on a dark background. On a white page that reads as a negative. Invert the image before converting, or paste into a dark-themed editor or terminal.
How many lines will the output have?
Rows = image height × chosen width ÷ image width × 0.5, rounded. A 4:3 photo at 80 characters wide gives 30 lines; a square image gives 40.
Which character set should I use?
Standard is clean and works almost everywhere. Detailed adds smoother shading. Hi-detail gives the finest tones but needs a wide output and a good monospaced font to show the difference.
Why does the art look stretched or squashed?
The tool assumes characters are about twice as tall as wide. Fonts or line spacing with a different shape change the proportions; set line-height to 1 in a monospaced font for the intended look.
Can I get coloured ASCII art?
No, the output is plain text without colour. Coloured ASCII needs HTML or terminal colour codes, which this tool does not generate.
Is my image uploaded?
No. The image is resized and read on a hidden canvas in your browser.
Related tools
Image to Black & White · Image Pixelator · ASCII Art Generator · Image Color Inverter
