Image to ASCII Art Converter

Convert a picture into ASCII art made of characters, with width, contrast and character-set controls, colour output and text or PNG export.

Free, no sign-upRuns in your browserUpdated November 2026
Choose an imageJPG, PNG, WebP, GIF or BMP: drop it here or click. It never leaves your device.
Width ÷ height of one character. Most fonts are about 0.5.

How to use the Image to ASCII Art Converter

  1. Drop an image onto the box or click it to choose a JPG, PNG, WebP, GIF or BMP. A demo picture is shown until you do.
  2. Set the width in characters. Around 80–120 works for chat and code comments, and 200 or more for detailed prints.
  3. Pick a character set (standard, blocks, detailed or your own) and adjust brightness and contrast until the shapes read clearly.
  4. Tick Invert for light-on-dark terminals, or Colour output for coloured characters.
  5. Click Copy text, or download it as .txt, colour .html or a PNG image.

How images become ASCII art

ASCII art draws a picture with text characters. A character like @ covers much of its cell with ink and reads as dark, while . covers almost none and reads as light. Put the right character in each cell of a grid and, from a distance, the eye sees the original image. This converter does that automatically in your browser, and your photo is never uploaded.

pixel block → average colour → brightness/contrast → luma Y = 0.2126 R + 0.7152 G + 0.0722 B → character = ramp[ round(Y × (n − 1)) ]

The image is first scaled down so that each output character represents one block of pixels, averaging the colours inside it. Brightness is a constant added to every channel. Contrast uses the standard factor F = 259 (C + 255) / (255 (259 − C)), which stretches values away from mid-grey. Each block's luminance is computed with the Rec. 709 luma weights, because the eye is far more sensitive to green than to blue. The result picks a character from the ramp: dense characters for dark areas and sparse ones for light areas, or the reverse when Invert is on.

Why the aspect-ratio correction matters

A character cell is not square. In most monospace fonts a character is about 0.6 em wide, and a line is about 1.2 em tall, so each cell is roughly half as wide as it is tall. If the converter used one row of text per row of pixel blocks, the picture would come out stretched to about twice its height. To compensate, the number of rows is scaled by the cell's width-to-height ratio:

rows = columns × (image height ÷ image width) × aspect (aspect ≈ 0.5)

Worked example: a 1200 × 800 photo at 100 characters wide gives 100 × (800 ÷ 1200) × 0.5 ≈ 33 rows. Each character then stands for a 12 × 24 pixel block of the original. If circles look squashed or stretched in your editor, terminal or font, adjust the aspect slider: higher values give more rows (taller), lower values give fewer. The on-page preview, the HTML file and the PNG use matching line heights, so they keep the image's true proportions.

Choosing a character set

SetCharactersBest for
Standard ramp@%#*+=-:. (10 levels)Classic look, works in any font, readable at small widths
Blocks█▓▒░ + space (5 levels)Bold, high-contrast logos and pixel-art style images
Detailed70 characters from $@B%8&WM# to .Photos and faces at large widths, where fine tonal steps show
CustomYour own, densest firstThemed art, such as only 01 for a "binary" look

Block characters are Unicode, not ASCII. They render in most modern fonts, terminals and chat apps, but plain-ASCII environments such as some old email clients or embedded displays may show them incorrectly. Choose the standard ramp when strict ASCII matters.

Tips for better ASCII art

  • Start with a simple, high-contrast image. Logos, silhouettes and portraits against a plain background convert far better than busy landscapes.
  • Raise the contrast (+20 to +50) for photos, which are often too grey to give distinct characters.
  • Match the background. Dark-mode editors and most terminals show light text on dark, so turn on Invert, or the image will look like a negative.
  • Mind the width where you paste it. Code comments and READMEs usually display about 80 to 120 columns before wrapping, and lines that wrap destroy the picture.
  • Paste into a monospace context. In proportional fonts the columns drift. Use a code block (three backticks) in Markdown, Slack, Discord or GitHub.

Text, colour HTML or PNG?

Text (.txt or copy) is the most portable: it fits in source code, terminals, emails and chat. Colour output keeps the averaged colour of each block and writes the characters as coloured HTML spans on a dark background. Download it as a standalone .html page, since plain text cannot hold colour. PNG renders the characters into an image at double resolution, ready for social posts or slides where the font is not under your control.

Want to go the other way and pull real text out of a picture? Use Image to Text (OCR). To decorate text instead, try the fancy text generator.

Frequently asked questions

How do I convert a picture to ASCII art?
Upload the image, choose a width in characters and a character set, and adjust contrast until the shapes are clear. Then copy the text or download it as .txt, colour HTML or PNG. Everything happens in your browser.
Why does my ASCII art look stretched or squashed?
Text characters are about twice as tall as they are wide, so the converter scales the number of rows by an aspect ratio of about 0.5. If your font differs, move the aspect slider: higher makes the result taller, lower makes it shorter.
What width should I use?
About 60 to 100 characters suits chat messages and code comments, 120 matches many terminal windows, and 200 to 300 gives detailed results for PNG or HTML output, where line wrapping is not an issue.
Why does my ASCII art look like a negative?
The default mapping assumes dark text on a light background. Terminals and dark-mode editors show light text on dark, so enable Invert to swap the mapping.
Can I make coloured ASCII art?
Yes. Turn on Colour output and each character takes the average colour of its part of the image. Plain text cannot store colour, so save it with Download .html or Download PNG.
Are the block characters (░▒▓█) real ASCII?
No. They are Unicode block elements. They display in most modern fonts, terminals and messaging apps, but for strictly ASCII-only places choose the standard or detailed ramp, which use only printable ASCII characters.
Is my image uploaded?
No. The image is decoded and converted with the Canvas API inside your browser and is never sent to a server.

Last reviewed November 2026. Results are estimates for information only — see our disclaimer.