Format Code Now
/
TextImage to ASCII Art Next: Notepad Online ›

Image to ASCII Art Converter

TX-61

Open a picture and it becomes text art right away. Choose how many characters wide it should be and which characters to use, then copy it or save it as a .txt file.

Runs in your browser. Nothing is uploaded.

Image

Drop an image here or paste one, or use Open image. It is read on this device and never uploaded.

Text art

The text art appears here.

How to use it

  1. Press Open image, drop a picture, paste one, or try the Sample.
  2. Pick the width in characters; wider gives more detail.
  3. Choose a character set, and tick Invert if the text will sit on a dark background.
  4. Press Copy or Download .txt, and paste the result where a monospaced font is used.

How the picture becomes characters

The picture is divided into a grid of cells, one per character. For each cell the brightness of its pixels is averaged, using the usual weights that count green as brighter than red and blue. Dark cells get dense characters such as @ and #, light cells get dots or a space. Because a character is about twice as tall as it is wide, each cell covers twice as many pixel rows as columns, so the art keeps the picture's shape.

Choosing a character set

Standard uses ten characters and gives clean, readable art. Detailed uses a 70-step ramp of letters and symbols for finer shading at larger widths. Block shades uses a full block, three Unicode shade characters and a space for a smoother look, but needs a font and editor that support them. Two-tone gives only # and space, which works for logos and silhouettes with strong contrast.

Questions people ask

What images work best for ASCII art?

Pictures with strong contrast and a simple subject, such as logos, portraits against a plain background or silhouettes. Busy photos with many similar tones turn into noise. Raise the contrast in an image editor first if the result looks flat.

Why does my ASCII art look stretched or squashed?

The art is sized for a monospaced font where each character is about twice as tall as it is wide. In a proportional font, or with extra line spacing, the shape changes. Paste it into a code block or a plain text editor.

Can I use ASCII art in code comments or a README?

Yes. Copy the text and paste it inside a comment or a fenced code block. The Standard and Two-tone sets use plain ASCII characters only, which are safe in any file. Trailing spaces are already removed from each line.

What does Invert do?

Dark parts of the picture normally become dense characters, which suits dark text on a light page. Invert swaps that, so bright parts become dense characters, which looks right in a terminal or editor with a dark background.

Is my image uploaded?

No. The picture is decoded and converted to text by your browser on this device. Nothing is sent to a server, so private photos stay with you and the tool keeps working offline once the page has loaded.

About this tool

Divides the picture into a grid of character cells, averages the brightness of the pixels in each cell (Rec. 601 weights, transparent areas count as white) and picks a character from a ramp that runs from dense to empty. Rows are half as many as a square grid would need, because characters are about twice as tall as they are wide. The result is plain text without color; trailing spaces on each line are removed. It looks right only in a monospaced font. Block shades use Unicode characters, so they need UTF-8.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.