Turn a picture into text art
ASCII art draws a picture with letters, digits and symbols instead of pixels. Dark areas get dense characters such as @ or #, light areas get sparse ones such as . or a space, and from a distance the text looks like the image. It is used in terminal banners, README files, source code comments, plain-text emails, forum signatures, game menus and just for fun. Braille art is a finer cousin: each character is a cell of 2 by 4 dots from the Unicode braille block, so one character carries eight pixels of detail.
This converter loads a photo or drawing, shrinks it to the width you choose, measures the brightness of every cell and picks a character from a ramp ordered from darkest to lightest. Brightness is computed with the Rec. 709 formula (about 21% red, 72% green and 7% blue), and transparent areas are treated as white. You can choose among ready-made character sets, from a short #+-. to a 70-level detailed set, blocks, binary ones and zeros, braille dots, or type your own characters from dark to light. A contrast slider and an invert switch help with photos that are flat or meant for a dark background.
You get a plain text result to copy or download as a .txt file. If you switch on colours, the preview is tinted with the colour of each cell and you can copy or download the art as coloured HTML. The image is read and processed in your browser, and nothing is uploaded. The on-screen preview is deliberately small, but the copied text keeps every character.
How to convert an image
- Choose an image, drop one on the page or paste one with Ctrl+V. A built-in example picture is loaded at first. PNG, JPG, WebP and GIF files work, and anything your browser can decode.
- Set the width in characters, from 20 to 240. The default is 80, the classic terminal width. The height follows the shape of the image, assuming each character is twice as tall as it is wide.
- Choose the characters: standard, detailed, simple, blocks, binary, braille or your own.
- Adjust the contrast between -100 and 100 until the shapes you care about stand out. Switch on invert if you will show the art on a dark background, because then light pixels should get the dense characters.
- Optionally turn on the coloured preview.
- Copy the text, copy it as coloured HTML, or download the
.txtor.htmlfile. Paste it where a monospace font is used.
Examples
How a width becomes a size
A picture of 1000 by 500 pixels at 80 columns gives 20 rows, because the height is scaled by the image proportions and halved for the character shape. In braille mode, the same setting samples a grid of 160 by 80 pixels, packed into 80 characters by 20 rows.
Four shades, four characters
For four grey levels from black to white (0, 85, 170 and 255), the tool produces:
Standard @*-
Simple #+.
Blocks █▓░
Binary 100The lightest pixel gets a space, so it disappears, and trailing spaces are trimmed from each line. With invert on, the same pixels become -*@.
Why braille looks sharper
Standard characters give one pixel of information per character. Braille turns on any of eight dots in the cell, so edges and thin lines are much smoother. It needs a font with the braille patterns block, and the dots read as dark where the image is dark.
Your own ramp
A custom set such as @#. is read from dark to light. Four characters means only four tones, which gives a stylised, poster-like effect.
Detailed set
The detailed set has 70 levels, from $ and @ through B%8&WM#* down to . and a space, and is best for portraits with soft gradients at widths above 100.
Common mistakes
- Pasting into a proportional font. ASCII art only keeps its shape in a monospace font. In a chat window or word processor it will look scrambled. Use a code block or a font such as Courier or Consolas.
- Forgetting about inversion. Pasted onto a dark terminal, art that is correct for dark ink on white paper looks like a negative. Switch invert on.
- Choosing too large a width. Long lines wrap in many places. For a terminal, 80 to 120 columns is comfortable.
- Expecting a good result from a busy photo. Fine detail disappears at small widths. Crop the subject first with the image crop tool, or resize the picture before converting.
- Custom ramp in the wrong order. The characters go from dark to light. If your picture appears reversed, reverse the order or use invert.
- Choosing a file that is not an image. The tool shows that it could not read the file as an image. Try a PNG, JPG, WebP or GIF.
Frequently asked questions
Is my image uploaded?
No. The file is decoded and sampled by your browser, and the characters are produced on your device.
Can I keep the colours?
Yes. The coloured preview and the HTML copy or download keep the colour of each cell. Plain text cannot carry colour, so the .txt is monochrome.
Does an animated GIF work?
The tool treats the picture as a single still image, using what your browser decodes as the first frame.
Can I make text banners instead of pictures?
Yes, the ASCII text drawer draws words as large letters made of characters.
How do I read text out of a picture?
For that, the opposite job, use image OCR.