ASCII art turns a picture into text. Instead of pixels, the image is made of characters: dense ones like @ and # for dark areas, light ones like . and : for bright areas. It has been around since the days when terminals and printers could only show text, and it is still popular today in code comments, command-line tools, README files, forum signatures, retro-style websites and as a fun gift or poster.
Converting a picture automatically is easy. Getting a result that is recognisable, has the right proportions and still looks correct when pasted into a chat app is where people struggle. This guide explains how the conversion works, how to choose settings, and how to keep your art from falling apart when it is shared.
How image-to-ASCII conversion works
The process has three steps.
1. Shrink the image to a grid
Each character becomes one "pixel", so the image is reduced to a grid that is, for example, 100 characters wide. Every cell in the grid gets the average colour of the part of the picture it covers.
2. Correct the aspect ratio
Characters are not square. In most monospace fonts a character cell is roughly twice as tall as it is wide. If you used one row per pixel row, the picture would come out stretched vertically. Converters therefore use about half as many rows as columns would suggest. Forgetting this is the most common reason ASCII art looks tall and skinny.
3. Map brightness to characters
Each cell's brightness is matched to a character from a ramp, a list ordered from lightest to darkest. A short ramp might be:
.:-=+*#%@
A space is the lightest (no ink), @ the darkest (most ink). A longer ramp with 70 characters gives subtler gradations, while block characters like ░▒▓█ give a chunky, high-contrast look. For dark backgrounds the mapping is reversed: bright areas get the dense characters.
What makes a picture convert well
- Strong contrast between the subject and the background.
- A simple, recognisable shape: logos, silhouettes, faces lit from one side, animals, icons.
- Few fine details. At 100 characters wide, anything smaller than about 1% of the image width disappears.
Busy photos with similar tones everywhere tend to become a grey soup of characters. Cropping tightly around the subject and boosting contrast first makes a big difference.
Convert a picture in your browser
The Image to ASCII Art tool does the conversion on your device and gives you text, HTML and PNG outputs.
- Open Image to ASCII Art and drop a picture onto the page. The file bar shows the grid size, such as "100×38 characters".
- Set the Width slider (20-300 characters). Wider means more detail but longer lines.
- Choose a Character set: Standard, Detailed (70 characters), Blocks, Simple, Binary (01), or Custom… to type your own ramp from light to dark.
- Switch on Invert (light text on dark) if the art will be shown on a dark background, such as a terminal.
- Keep Auto contrast on to stretch the tonal range, which helps with flat pictures.
- Turn on Colour output (HTML / PNG) to colour each character with the picture's colour at that spot.
- Use Copy text, Download .txt, Download .html or Download PNG.
Plain text cannot carry colour, so if you turned on colour output, use the HTML or PNG download to keep it.
Other ways to make ASCII art
Command-line tools
Several open-source command-line converters exist, such as jp2a for JPEG images, and many programming languages have libraries for it. They are ideal for automation, for example printing a logo in a terminal app's startup banner.
Text-only ASCII art
If you want large lettering rather than a converted picture, such as a project name in a banner comment, a picture converter is the wrong tool. Use a text-based generator like ASCII Art Text Generator, which uses hand-designed letter fonts.
Drawing by hand
The best ASCII artists still work by hand, choosing each character for its shape, not just its darkness. Slashes, brackets and underscores follow edges better than automatic brightness matching. An automatic conversion is a good starting point that you can tidy up in a text editor.
Tips for displaying ASCII art correctly
Always use a monospace font
In a proportional font, i is narrower than W, and the whole picture shears apart. Paste ASCII art into places that use monospace, or format it as code.
Use code blocks in Markdown and chats
In GitHub README files, documentation and many chat apps, wrap the art in triple backticks:
```
.:-=+*#%@
```
This preserves spacing and applies a monospace font. Without it, leading spaces are often collapsed and lines re-wrapped.
Mind the width
Code comments, terminals and chat windows often wrap long lines. For a terminal, 80 characters is a traditional safe width. For a README, 60-100 characters usually displays well on a laptop. Mobile screens need much narrower art, or a PNG instead.
Share a PNG when layout matters
Social networks, email and messaging apps may change fonts and spacing. A PNG looks exactly the same everywhere. If you want to show code or text as a styled image instead, Code to Image is designed for that.
Prepare the picture first
Remove a cluttered background, crop to the subject with Image Cropper, and increase contrast with Image Brightness & Contrast before converting. The ASCII result will be noticeably cleaner.
Trailing spaces
Plain-text output removes spaces at the end of each line. That keeps the file tidy and does not affect how the art looks.
Frequently asked questions
How do I turn a picture into ASCII art?
Shrink the image to a grid of characters, then replace each cell with a character whose density matches the cell's brightness. A converter does this automatically and lets you choose the width and character set.
Why does my ASCII art look stretched?
Characters are about twice as tall as they are wide. A converter should use roughly half as many rows to compensate, and the art must be viewed in a monospace font.
How do I keep ASCII art aligned in a README or chat?
Put it inside a code block using triple backticks. That forces a monospace font and preserves every space.
Can ASCII art be in colour?
Yes, but not as plain text. Colour ASCII art is stored as HTML with coloured characters or as an image such as PNG.
What width should ASCII art be?
It depends on where it will be shown. About 80 characters suits terminals, 60-100 suits most README files, and much narrower art works better on phones.