What is ASCII art?
ASCII art is a picture built from characters arranged in rows and columns. A slash can make a diagonal, a space can leave part of the canvas blank, and a group of dense symbols can give the impression of shade. A fixed-width font makes the columns line up.
+----------------+
| |
| |
+----------------+The code defines the characters
ASCII is the American Standard Code for Information Interchange. The seven-bit table has 128 code positions, which include printable letters, digits and punctuation, a space, and control codes. The table reproduced in RFC 20 in October 1969 shows the positions for slash, asterisk and the other characters that are convenient for drawing. It also assigns positions to controls such as carriage return. The RFC discusses how to interchange coded information over network connections. The choice to arrange printable symbols into pictures belongs to the person or program creating the art.
A plain ASCII drawing depends on character positions. Two identical marks can look like eyes when separated by a few spaces, but the whole expression can shift if one row wraps. A fixed-width display gives an I and a W the same advance, so the columns stay aligned. Their visible shapes still differ. That difference lets a designer use narrow ink marks for fine detail and larger dark marks wherever the drawing needs more weight. When a file travels to another device, the characters may survive while a proportional font or lost spaces change its appearance.1
Text drawings before and after computer networks
Printed text took on visual shapes well before the ASCII standard. In Chapter III of Alice’s Adventures in Wonderland, the Mouse’s poem is set in a curving shape that suggests its tail. The Project Gutenberg edition lets you compare the spoken words with the shape they form on the page. Joan G. Stark also documents shaped text and typewriter drawings in her history of text art, with examples that predate networking. They show the shared technique of placing letters to make a picture. The term ASCII describes a later coded character set, so the older techniques are usually described as visual poetry, typography or typewriter art.
On computers, a drawing made of printable characters can travel in a text file or appear beside a message. No picture file is necessary to carry the positions. Working under a narrow text column constraint can also make the pieces quite small. A few marks may be sufficient to draw a cat or frame a section heading. Larger drawings take more room and depend more heavily on a viewer preserving the original columns. Stark’s article documents the use of text art in early network communities and includes examples alongside her own explanation of how artists made them.2 3
How ANSI art gets color
A plain ASCII file can tell you which character should appear in each place. A compatible terminal can also interpret controls that change how characters are drawn. ECMA-48 defines control functions including Select Graphic Rendition, or SGR, which changes display attributes. A file using these sequences can present colored shapes even though it is carried as text and control codes. Opening the same file as literal text can expose the escape codes or drop the intended styling. To view the art, use a renderer that understands the encoding and control sequences the maker used.
Historical ANSI art can also use character sets that supply shapes beyond printable ASCII. Blocks and shaded tiles make it possible to build broad areas and color transitions with few individual cells. The result can use character positions and display attributes at the same time. Today, a web page can color characters by applying HTML styles without storing terminal escape sequences. It can still have an ANSI-inspired look. If you receive a color work, the practical question is what format carries its styling and which viewer you need to reproduce it.4
How Unicode Braille differs from ASCII
Unicode defines a block of Braille Patterns from U+2800 through U+28FF. The 256 patterns represent every combination of raised or unset positions in an eight-dot cell. Their use in actual Braille depends on the language and the rules for interpreting the sequence. When a picture converter fills a grid with these characters according to the light and dark areas of a photo, it creates a visual dot drawing. The result should be described as a picture using Braille patterns. An image converted by sampling pixels does not get translated into Braille language.
With two columns and four rows of possible dots per cell, each Unicode character can depict more than one point of a line or a curve. It gives you a different kind of detail from using one ASCII glyph at each position. Check that the chosen font covers the block and that empty cells keep the same width. For an ordinary ASCII drawing, you can check whether all of the characters belong to the seven-bit set. For a Braille drawing, keep the Unicode characters intact when you save and share.5
Explore a few different kinds of picture
Look at a small cat in the gallery and find where each mark helps you recognize the animal. The head and the eyes can keep their shape even if you remove a few other details. Next, open a border and see how its repeated pattern handles horizontal space. Both can be made from keyboard characters. You can paste a sample into a fixed-width editor and change one row to see how the marks change the shape.
In the photo tool, choose the same source in ASCII and Braille modes and compare the outlines. If you change the width, you can see the point where details such as eyes and fine reflections disappear. The website lets you keep the drawing as text or export an image. The iPhone app lets you apply color and effects and make moving pieces. A rendered video is made of frames, so it preserves the visible character shapes without asking the video player to render a text file.
ASCII art gallery
Sources
Questions
Is every picture made with Unicode characters ASCII art?
In the strict sense, ASCII art uses the ASCII character set. Unicode gives artists more characters, including the Braille block. They can be used with the same idea of arranging characters in a grid.
Why do pictures break when I paste them?
Check the font, leading spaces and line wrapping. A PNG preserves the appearance when the receiving app changes those settings.