ASCII Art Generator

Convert text to ASCII art in 10 fonts drawn for this site, or turn any image into ASCII art. Copy it for code comments, Discord, Slack or a terminal. Nothing leaves your browser.

4 lines · 19 columns · 73 characters

Options
Align

All 10 fonts with your text

Each one updates as you type. Classic, Mini, Hash, Slant, Wire, Boxes use plain ASCII only; the rest use Unicode blocks and lines.

Why use an ASCII art generator?

ASCII art is text that looks like a picture, so it goes where images can't: a banner at the top of a source file, a welcome screen when a script or server starts, a heading in a README, a big "GG" in a Discord chat or a signature in a plain-text email. Drawing it by hand takes ages and the letters never line up. This generator draws the letters for you in 10 fonts, wraps them to the width you need, and formats the result as a code comment, a print statement or a code block, so it pastes in one go. Its image mode turns a photo or logo into characters too.

How to make ASCII art from text

  1. Type a word, a name or a short phrase.
  2. Pick a font, or scroll down to compare all ten and press Use on the one you like.
  3. Optional: choose a width to wrap at, center it, add a frame or pick a comment style under Format.
  4. Press Copy, Copy as code block for Discord, Slack or GitHub, or download a .txt file.

ASCII art fonts: which one to use

Every font here was drawn for this generator. Classic and Mini are drawn by hand from lines and underscores, and Slant is Classic leaning into italics; six more share one 5 × 7 pixel alphabet drawn in different ways; Boxes puts each character in a cell, so it takes accented letters too. The pure-ASCII fonts paste safely anywhere. The Unicode ones look bolder but need a font that includes block and box-drawing characters, as the default fonts of today's terminals and code editors do.

FontRowsDraws withBest for
ClassicASCII only4–6_ | / \ ( )Code comments, README files and terminals: plain ASCII lines with real small letters.
MiniASCII only, capitals3_ | / \ ( )Short headers where space is tight, such as commit messages and log output.
BlockUnicode7█Bold, readable headings for Discord, Slack and terminal welcome screens.
ShadowUnicode8█ ═ ║ ╔ ╗ ╚ ╝Eye-catching banners for READMEs, app start-up screens and server MOTDs.
HashASCII only7# (or any character you choose)Classic banner-style letters that survive any font, editor or email client.
SlantASCII only4–6/ _ |Classic in italics, for titles, signatures and splash screens.
WireASCII only7+ - | / \Clean outlined letters in pure ASCII, good in config files and scripts.
PipesUnicode7═ ║ ╔ ╗ ╚ ╝ ╠ ╣Neon-sign style headings in terminals and Discord code blocks.
CompactUnicode4▀ ▄ █Pixel-style text at half the height of Block, for narrow chats.
BoxesASCII only3+ - |Labels and keyboard-key style text; works with accented letters too.

Letters with accents are drawn as their plain form in the drawn fonts (é becomes e, ß becomes ss) and the page tells you when it does. For emoji or other scripts, Boxes keeps the character itself; most fonts show emoji two columns wide, so expect the boxes to drift. For fancy Unicode letters that stay on one line, such as 𝐛𝐨𝐥𝐝 or 𝓈𝒸𝓇𝒾𝓅𝓉, use the fancy text generator instead.

Image to ASCII art: how the converter works

The picture is shrunk to one pixel per character, and each pixel's brightness is measured as luma, 0.2126 × red + 0.7152 × green + 0.0722 × blue (the ITU-R BT.709 weights; the eye sees green as brightest). Brightness becomes an amount of ink, and the character with about that much ink is printed. Character cells are about twice as tall as they are wide, so the converter uses half as many rows as a square grid would, which keeps the proportions right (a square photo 80 characters wide becomes 40 rows). Here is a shaded ball, computed pixel by pixel and converted at 40 characters wide with the Standard characters:

The Standard set runs from a space to @ in 10 steps: .:-=+*#%@. Across a smooth gradient it looks like this:

  • Width sets the detail. 60 to 100 characters suits a face or a logo; go wider for a landscape, but remember that a Discord message holds only 2,000 characters.
  • Invert flips the ink for light text on a dark background: terminals, dark mode and Discord. The preview switches to black so you see what you'll get. Transparent parts of a PNG or SVG stay blank either way.
  • Dither spreads each character's rounding error to its neighbors (Floyd–Steinberg), which keeps soft shading with few characters and helps Braille most.
  • Braille dots pack 2 × 4 dots into each character (the Unicode Braille Patterns block): eight dots where the other sets have one character, so outlines come out far sharper at the same width. Braille characters share one width in most fonts, so the art usually holds together even outside a code block.
  • Color keeps each character's color. Plain text can't carry color, so use Download .html for a web page or Download .png for a picture to post anywhere.

Pictures with big shapes and strong contrast convert best: logos, silhouettes, a portrait against a plain wall. Crop tightly first with the image cropper, and if a photo looks flat, raise Contrast. Phone photos in HEIC format open only in Safari, so convert them with HEIC to JPG first in other browsers.

ASCII art for code comments and READMEs

A banner makes a file, a section or a startup log easy to spot. Pick the comment style for your language under Format and every line gets its marker. A Python file header in the Mini font:

#  _   _   _   _
# |_) |_  |_| | \ \_/
# | \ |_  | | |_/  |

And a JavaScript version tag in Classic:

//       ___
//      /   \     /|
//         _/    / |
// \  /   /     /__|_
//  \/   /___ .    |
  • Trailing spaces are removed by default, because linters such as flake8 (W291) and ESLint (no-trailing-spaces) flag them.
  • C and C++: a backslash at the end of a // line joins the next line into the comment, which can silently comment out real code (GCC warns about it with -Wcomment). The tool warns you when a line ends that way; /* … */ avoids it.
  • Block comments end at the first */, and HTML comments at the first -->; the tool checks for both.
  • README files: put the art in a fenced code block (three backticks) so GitHub, GitLab and other Markdown viewers show it in a monospaced font (GitHub Docs).
  • Width: 80 columns is the safe choice for code. Python's PEP 8 asks for 79 characters, and 72 suits Git commit messages.

ASCII art in Discord, Slack and the terminal

Chat apps show messages in a proportional font, where an i is narrower than a W, so ASCII art falls apart unless it sits in a code block. Copy as code block adds the three backticks for you:

```
  ██████      ██████
██      ██  ██      ██
██          ██
██  ██████  ██  ██████
██      ██  ██      ██
██      ██  ██      ██
  ██████      ██████
```
  • Discord renders text between ``` lines as a code block (Discord's Markdown guide). A message holds 2,000 characters, or 4,000 with Nitro; the counter under the art tells you whether it fits.
  • Slack shows a code block when the message starts and ends with three backticks; in the message box you can also type ``` first and paste inside it (Slack Help).
  • Shell scripts: the Bash format prints the art with a quoted heredoc, which leaves $ and backslashes alone:
cat <<'BANNER'
|   |
|___| .
|   | |
|   | |
BANNER
  • PowerShell: wrap the art in a single-quoted here-string, @' on the line before and '@ on the line after, for the same effect.
  • Server login message: on most Linux systems, text in /etc/motd appears after you log in over SSH. Keep it within 80 columns so it fits any terminal.
  • Python and JavaScript: the print formats use a raw string (r"""…""") and String.raw, so backslashes in the art aren't read as escape sequences.

A short history of ASCII art

Pictures built from typed characters are older than computers: typists drew them on typewriters, and early programmers printed them on line printers. ASCII, the character set this art is named after, was published in 1963 and has 95 printable characters, from the space (code 32) to the tilde (code 126). In 1991 Glenn Chappell and Ian Chai wrote FIGlet (Frank, Ian and Glenn's letters), the command-line tool that made big text banners a staple of Unix, and the bulletin board systems of the era added ANSI art, drawn with the shaded blocks of the IBM PC's code page 437. Block, Shadow and Compact borrow that look using today's Unicode block elements.

More text tools: change letter case with the case converter, turn words into 0s and 1s with the binary translator, repeat a line of art with the text repeater, or check a message's length in the word counter.

Frequently asked questions

How do I turn text into ASCII art?

Type your text, pick one of the 10 fonts (or press Use on any font in the gallery) and press Copy. The art updates as you type. Set a width and long text wraps onto several lines; you can also center it, add a frame, wrap it in a code comment or download it as a .txt file.

How do I convert an image to ASCII art?

Open the Image tab and choose a photo, drop one on the box or paste a screenshot, then set the width in characters. Each character stands for a small patch of the picture: dark patches get dense characters like @ and #, light ones get dots and spaces. Turn on Invert for dark backgrounds or Colour for a colored HTML version, then copy it or download it as .txt, .html or .png.

How do I paste ASCII art in Discord without it breaking?

Press Copy as code block. It wraps the art in three backticks (```), so Discord shows it in a monospaced font where every character is the same width; outside a code block Discord uses a proportional font and the art falls apart. A message holds 2,000 characters (4,000 with Nitro). The tool tells you whether your art fits, and Fit a Discord message shrinks image art until it does. Narrow phone screens may wrap long lines, so 40 to 60 columns travels best.

Why does my ASCII art look misaligned?

ASCII art only lines up in a monospaced font such as Courier, Consolas or Menlo, where every character is the same width. Proportional fonts, the default in most chat apps and email, make i narrow and W wide. Tabs instead of spaces, an app that trims leading spaces, line wrapping in a narrow window and a font without block characters (█ ═ ║) also break it. Paste into a code block, a <pre> tag or a plain-text editor, or use one of the ASCII-only fonts.

What is FIGlet?

FIGlet is the classic command-line program for big text banners, written in 1991 by Glenn Chappell and Ian Chai; the name stands for Frank, Ian and Glenn's letters. Its fonts are .flf files that many websites reuse. The fonts on this page are not FIGlet fonts: they were drawn for this site, but they work the same way, building each letter out of ordinary characters.

How do I add an ASCII art banner to a code comment?

Pick your language's comment style under Format: // for JavaScript, C, Java or Go, # for Python, shell scripts and YAML, /* */ for CSS, <!-- --> for HTML or -- for SQL. Every line gets the comment marker and trailing spaces are removed so linters don't complain. One gotcha: in C and C++ a backslash at the end of a // line carries the comment on to the next line, so the tool warns you when that happens.

How wide should ASCII art be?

80 columns is the safe default. It is the classic terminal width, inherited from 80-column punched cards and terminals like the VT100, and many style guides keep code near it (Python's PEP 8 asks for 79 characters). Use 72 for commit messages and 40 to 60 for chats read on phones. Choose a width and the text wraps to fit.

Is ASCII art only made of ASCII characters?

Strictly speaking, yes: ASCII has 95 printable characters (letters, digits, punctuation and the space, codes 32 to 126), and art made only of those works everywhere. The Block, Shadow, Pipes and Compact fonts use Unicode block and box-drawing characters (█ ═ ║ ▀ ▄) instead, which look bolder but need a font that includes them. The font table on this page marks which fonts are pure ASCII.

What is the difference between ASCII art and ANSI art?

ANSI art comes from the bulletin board systems (BBSes) of the late 1980s and 1990s. It used the IBM PC's extended character set, code page 437, with its shaded blocks and line-drawing pieces, plus ANSI escape codes for color. ASCII art sticks to plain printable characters, so it survives copy and paste anywhere.

Can I use the ASCII art I make here, even commercially?

Yes. The fonts were made for this site, and the banners and pictures you create are yours to use in code, products, streams or print, with no credit needed. If you convert someone else's photo or logo, their rights in the original still apply.

How do I print ASCII art from a script?

Choose a Print format. Python print() uses a raw string so backslashes stay as they are, Bash uses a quoted heredoc (cat <<'BANNER') so $ and \ aren't expanded, and JavaScript uses String.raw. Pasting a banner into an ordinary string breaks it, because every backslash starts an escape sequence; Python 3.12 and later even warn about sequences like \_.

Is my text or photo uploaded?

No. Everything happens in your browser: the text is drawn with code on this page and the picture is measured on a canvas, so nothing is uploaded. Your settings (font, width, characters) are remembered on this device, but your text and pictures are not.

Advertisement