Skip to main content
ASCII Art Generator

ASCII Art for Developers and READMEs

Add a text banner to a README or terminal without losing spaces or backslashes. Start with the working examples below, then generate your own project name.

Create a project-name banner

Use FIGlet for words. For a project logo, use the image converter instead.

Create a text banner

Why plain-text art still works in code

Text banners and diagrams live in the same file as the code, so they are versioned, diffed and reviewed like everything else, and displaying them needs no image or library. Alignment still depends on a monospace font and preserved whitespace. The box-drawing examples below use Unicode, not strict ASCII; test terminal font support.

Formatters and editors that trim trailing spaces or convert tabs can damage the layout, so review whitespace changes in the diff before committing.

Where developers use it

README files and documentation

For a single labeled section separator, use the ASCII divider generator. Choose an exact width and copy the fenced Markdown to keep the line literal.

If blocks or emoji shift in your README, compare the ASCII/Unicode font-width specimens. Check actual glyph widths and wrapping, not just character counts.

To show a project's file structure, use the directory tree generator. Indent an outline with two spaces per level, or follow the worked Git-to-README tree example to list selected tracked paths locally and copy the branches as fenced Markdown.

Add a month, quarter or year to release notes with the ASCII calendar generator. Show 1, 3, 6 or 12 months, starting with your chosen month. Choose Monday, Sunday or Saturday first; ISO week numbers require Monday. Copy fenced Markdown or download TXT. It lays out dates, not events or holidays.

To connect a short process with arrows, use the ASCII flowchart generator. Stack up to eight steps and optionally end with a yes/no question. Copy fenced Markdown or download the aligned TXT.

To align a small spreadsheet selection in a README, use the ASCII and Markdown table generator. Paste CSV or tab-separated rows, choose the input format, then generate fenced ASCII or a GitHub-style Markdown table with column alignment.

To show counts or timings alongside your banner, use the ASCII bar chart generator. It turns labeled numbers into a scaled text chart with copyable Markdown and TXT output. Follow the worked README chart lesson to compare two widths, handle sub-cell values and preserve the scale. For an equally spaced sequence, the line chart generator exports the trend with its range and indexed exact values.

Paste this complete source into README.md, including both lines of triple backticks. The text code fence preserves whitespace in rendered Markdown. Outside a code block, spaces and line breaks can collapse. Keep a normal project heading and description so the banner is not the only way to identify the project.

# Build tool

A local build helper for this project.

```text
  ____  _   _ ___ _     ____  
 | __ )| | | |_ _| |   |  _ \ 
 |  _ \| | | || || |   | | | |
 | |_) | |_| || || |___| |_| |
 |____/ \___/|___|_____|____/ 
                              
```

The banner is generated from BUILD in the installed FIGlet Standard font, with default layouts and Max Width 80. Its widest row is 30 characters; 80 is a wrapping setting, not the measured output width. Preserve the leading spaces and the font's final blank row.

  1. Open the text generator using the button above. A font link does not supply your text; the editor starts with Hello unless this tab has a text handoff.
  2. Replace Your text with BUILD to reproduce this example, or enter your own project name. Standard is the first font.
  3. Use Copy as Markdown on the Standard card, then paste below your README heading. It includes the code fence, not a project description.
  4. Preview the rendered README. For narrow screens, shorten the name or choose a smaller font; the generator does not promise a fit in every app.

Before committing the README

  • The banner sits in a fenced code block, so leading spaces survive.
  • No line wraps at the width where the README is read.
  • A normal Markdown heading still names the project for search and screen readers.

Section headers in code comments

A boxed comment makes a section boundary easy to spot when scrolling a long file.

For an editable plain-ASCII frame, use the ASCII box generator. It keeps spaces and blank lines and measures the whole border width. Add your language's comment markers separately.

For a fixed-width sidebar, menu bar, tabs or dialog screen, sketch it as plain text with the terminal UI mockup builder. It exports the grid as text, not a working interface or library code.

/*
 * ╔══════════════════════════════════════╗
 * ║           USER AUTHENTICATION        ║
 * ╚══════════════════════════════════════╝
 */

function authenticateUser(credentials) {
    // Implementation here...
}

/*
 * ┌──────────────────────────────────────┐
 * │           DATABASE HELPERS           │
 * └──────────────────────────────────────┘
 */

Print ASCII art in Python

With Python 3 installed, save this complete example as banner.py. Run python3 banner.py, or py -3 banner.py on Windows. It prints the same BUILD banner used in the README above.

rows = [
    "  ____  _   _ ___ _     ____  ",
    " | __ )| | | |_ _| |   |  _ \\ ",
    " |  _ \\| | | || || |   | | | |",
    " | |_) | |_| || || |___| |_| |",
    " |____/ \\___/|___|_____|____/ ",
    "                              "
]

print("\n".join(rows))

Each quoted string holds one row. \\ in the source prints one backslash; spaces inside the quotes remain part of the drawing. "\n".join(rows) puts a line break between rows, and print adds a newline after the last row. Keep the banner's final blank row.

Keep paths and quotes literal

This original box includes a path with \n and \t, both kinds of quotes, and braces. Run it as a separate Python file:

rows = [
    "+------------------------------+",
    "| Path: C:\\new\\tools\\          |",
    "| \"ready\" isn't {status}       |",
    "+------------------------------+"
]

print("\n".join(rows))

Expected output: 32 columns, including the border

+------------------------------+
| Path: C:\new\tools\          |
| "ready" isn't {status}       |
+------------------------------+

In an ordinary Python string, an unescaped \n becomes a new line and \t becomes a tab. Double the backslashes to keep those pairs visible. Escape a double quote as \" inside a double-quoted string. Braces stay literal here because these are ordinary strings, not f-strings.

Raw strings can help with pasted art, but a raw string cannot end with an odd number of backslashes. Triple quotes allow multiple lines; they do not turn off escape sequences, and matching triple quotes inside the art can close the string. For these examples, separately quoted rows avoid those delimiter problems. See Python's string literal rules.

Recreate the box with your own text

Open the ASCII box generator, choose Classic and width 32. Use left alignment, one space of side padding, zero rows of top/bottom padding, and no title. Paste these two lines:

Path: C:\new\tools\
"ready" isn't {status}

A TXT export contains art, not Python source. Either escape each row as shown above or use the file-display commands below. The site does not run Python; run only code you have reviewed.

Terminal applications and CLI tools

Save the JavaScript below as banner.cjs and run node banner.cjs. It prints the same BUILD banner as the README, followed by one line-feed character. Each row is a quoted string: \\ in the source becomes one literal backslash in the output. Spaces inside the quotes are part of the art.

const banner = [
  "  ____  _   _ ___ _     ____  ",
  " | __ )| | | |_ _| |   |  _ \\ ",
  " |  _ \\| | | || || |   | | | |",
  " | |_) | |_| || || |___| |_| |",
  " |____/ \\___/|___|_____|____/ ",
  "                              "
].join("\n");

process.stdout.write(banner + "\n");

This standalone example prints unconditionally. In a real CLI, keep decorative output out of JSON, CSV and piped stdout: show it only on an appropriate interactive path or provide a banner-off option. Do not use a banner as the only help or error message.

Display a saved ASCII file without running it

Display a TXT export from the box, tree or image generator by reading the file, not pasting its contents at the prompt. This worked box includes $HOME, $(...), backticks, quotes and pipes as file contents. A file reader prints those characters; it does not ask the shell to evaluate them.

Open the ASCII box generator and paste this exact input:

ASCII file: $HOME | $(echo text) | `echo text`
"quoted text" and 'single quotes' stay text too.

Set total width to 52, keep Classic borders, then Generate box and Download TXT. Rename ascii-box.txt to ascii-art.txt. The complete result is four rows, each 52 columns wide, with no final newline:

+--------------------------------------------------+
| ASCII file: $HOME | $(echo text) | `echo text`   |
| "quoted text" and 'single quotes' stay text too. |
+--------------------------------------------------+
PowerShell

Read the UTF-8 file as one string and display its text:

Get-Content -Raw -Encoding utf8 -LiteralPath .\ascii-art.txt
POSIX shell

Redirect the file to cat's standard input:

cat < ./ascii-art.txt

The ASCII characters in the sample are also valid UTF-8. For other text, the file encoding and terminal font must agree. POSIX cat writes the file bytes without adding a newline; if the file has no final line feed, the prompt follows the last row. PowerShell's -Raw keeps stored line breaks in its result, while the console may add a display separator, so check the saved file when its final byte matters. A terminal can still interpret escape sequences in untrusted files. Never source, dot-source or eval a text export.

See the official PowerShell Get-Content reference, the POSIX cat specification, and the POSIX shell language.

Keep a banner short enough for an 80-column terminal, check that it still reads when color is off, and give users a way to turn it off.

API documentation and tutorials

Show the order of requests and responses, then explain the same relationships in ordinary text. Follow the worked request-flow lesson below for a diagram, complete HTML and Markdown examples, and a PNG export recipe.

Display ASCII art in HTML without losing characters

A monospace font alone will not fix a drawing inside an ordinary paragraph or div: HTML normally collapses spaces and line breaks. Use a pre element with white-space: pre and horizontal scrolling. Avoid pre-wrap when wrapping would break the drawing.

There is a separate trap: pre still parses HTML. A literal <b> can become a tag, and &lt; becomes an angle bracket. In HTML source, write &lt; for <, &gt; for > and &amp; for &. To display the four characters &lt;, write &amp;lt;.

Try a literal-character box

Paste this input into the ASCII box generator. Set total width to 28, keep Classic borders, left alignment and one space of side padding. Leave the title empty and top/bottom padding at zero. The second input line starts with two spaces.

<b> & "quoted"
  &lt; stays literal

Generate box. This four-row result is 28 columns wide, including borders and padding:

+--------------------------+
| <b> & "quoted"           |
|   &lt; stays literal     |
+--------------------------+

Save this complete example as ascii.html

Copy the source below into a UTF-8 file and open it in your browser. It needs no JavaScript, images or downloaded fonts. The escaped source renders the same box above; the entity spellings belong in the HTML file, not in the box generator.

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ASCII text in HTML</title>
<style>
  body { margin: 1rem; }
  pre {
    font: 16px/1.25 monospace;
    white-space: pre;
    overflow: auto;
  }
</style>
<h1>Literal characters in a box</h1>
<pre role="img" tabindex="0" aria-label="Box containing literal HTML characters">
+--------------------------+
| &lt;b&gt; &amp; "quoted"           |
|   &amp;lt; stays literal     |
+--------------------------+</pre>
<p>The box shows a literal b tag, an ampersand and quoted text.
The text &amp;lt; stays literal has two extra leading spaces inside the border.</p>
</html>

Keep the drawing flush left in the source. Indenting its rows adds visible spaces. HTML strips one newline immediately after the opening pre tag; the example uses that newline before its top border. The closing tag follows the last border so it adds no final line break. Quotes and backslashes need no escaping in HTML text, though attribute values and JavaScript strings have different rules.

If JavaScript already holds the drawing in a string, assign that string to the element's textContent, not innerHTML. Do not HTML-escape it first: textContent inserts text rather than parsing tags or character references. For an informative drawing, also follow the text-alternative example below.

References: MDN's pre element and textContent.

Give an ASCII diagram a text alternative

A diagram made of text is not automatically understandable when read aloud. Arrows, borders and layout can carry relationships that a list of characters does not explain. Keep those relationships in ordinary prose too. Here is a complete request-and-response example for a README, a web page or an exported PNG.

The top row runs left to right; the second row returns right to left. This simplified flow shows one successful request, not authentication, failure paths or concurrent requests. The border is decorative; the direction and order are information.

Request and response through an API. Read the request flow steps.

Short description and full equivalent

A request travels from Client through API to Database; the result returns through API to Client.

  1. The Client sends a request to the API.
  2. The API sends a query to the Database.
  3. The Database returns a result to the API.
  4. The API sends a response to the Client.

The short description identifies the route and return direction. The numbered steps spell out who sends what, in order, without asking the reader to interpret arrowheads. For your own diagram, describe its actual labels, branches and exceptions; do not reuse this successful-request explanation for a different process.

HTML: name the diagram, keep the steps outside it

This is the pattern used above. role="img" treats the character drawing as one image, and aria-label supplies its short text alternative. The visible link leads to a real ordered list outside the image role, so the steps retain their structure. The focusable scrolling drawing also works in a narrow viewport. Do not put links or controls inside the image role.

<figure>
  <pre role="img" aria-label="A request travels from Client through API to Database; the result returns through API to Client." tabindex="0" style="overflow:auto">
+---------------------------+
| Client -> API -> Database |
| Client <- API <- Database |
+---------------------------+
</pre>
  <figcaption><a href="#request-flow-description">Read the request flow steps</a></figcaption>
</figure>
<ol id="request-flow-description">
  <li>The Client sends a request to the API.</li>
  <li>The API sends a query to the Database.</li>
  <li>The Database returns a result to the API.</li>
  <li>The API sends a response to the Client.</li>
</ol>

Copy this into an HTML page with a monospace, whitespace-preserving pre. Keep the matching link and list IDs unique if you add more diagrams. A long structured description should stay visible and navigable, not be flattened into a large aria-label or aria-describedby string.

README: include the explanation with the fence

Markdown hosts differ in the HTML and ARIA attributes they retain. Use this complete source when you do not control the markup: explanation, fenced diagram and ordered steps together. A code fence preserves spacing; it does not turn punctuation into a meaningful description or guarantee a screen reader will skip it.

### Request flow

A request travels from Client through API to Database; the result returns through API to Client.

```text
+---------------------------+
| Client -> API -> Database |
| Client <- API <- Database |
+---------------------------+
```

1. The Client sends a request to the API.
2. The API sends a query to the Database.
3. The Database returns a result to the API.
4. The API sends a response to the Client.

Select the whole example, not just the drawing. Preview it in the receiving README renderer. For a chart, keep exact values and units in ordinary text or a data table too; a trend summary alone may omit information readers need.

Reproduce the drawing and export a PNG

  1. Open the ASCII box generator. Replace its text with the two lines below, choose Classic and set Total columns to 29. Generate the box.
  2. Copy text. It must match the four-row drawing above, including its spaces and 29-character border.
  3. Open ASCII to PNG and paste that result. Keep 16 px, 24 px padding and White. Choose Render PNG, inspect all edges, then Download PNG.
  4. Save the file as request-flow.png for the HTML example below. Add the description in the receiving page or app, and keep the full steps nearby.
Client -> API -> Database
Client <- API <- Database
<figure>
  <img src="request-flow.png" alt="A request travels from Client through API to Database; the result returns through API to Client.">
  <figcaption><a href="#request-flow-description">Read the request flow steps</a></figcaption>
</figure>
<ol id="request-flow-description">
  <li>The Client sends a request to the API.</li>
  <li>The API sends a query to the Database.</li>
  <li>The Database returns a result to the API.</li>
  <li>The API sends a response to the Client.</li>
</ol>

PNG preserves the rendered layout, not selectable text or an accessible description. This tool does not embed alt text in the download; the receiving page or app supplies it. Save input TXT as an editable copy, but remember that the same arrows in a TXT file are still not the equivalent explanation. Pixel size depends on the local monospace font.

Decorative banner or informative diagram?

If a banner only repeats a nearby project name, keep the ordinary heading and consider omitting the art. On a web page you control, a purely decorative image can use empty alt=""; a purely decorative character drawing can be hidden from assistive technology with aria-hidden="true". Never hide instructions, status, unique labels or focusable content this way. The request diagram is informative, so it needs an equivalent explanation rather than empty alt text.

Before publishing, read the explanation without looking at the drawing: can you recover every important relationship? Check keyboard access to the description and test the actual destination with the assistive technologies your audience uses. These examples demonstrate markup and content choices, not an accessibility certification.

Sources: W3C H86: text alternatives for ASCII art, WAI: complex images and structured descriptions and WAI: decorative images.

Checklist before you commit

  • Lines fit the narrowest place the text will be read, usually 80 columns.
  • The art sits in a fenced code block or a comment, so leading spaces survive.
  • An equivalent text description accompanies any diagram that carries information.
  • Decorative banners stay out of machine-readable output such as JSON, CSV and piped stdout.
  • The diff shows no unintended whitespace changes.

Getting started

1

Choose your content

Start with a project name, a logo you own or a diagram that explains something.

2

Generate the art

For words, open the text generator, enter your project name and choose a FIGlet font. For an image, start in the image converter with a 60-80 column width. Measure the result against the space available; neither starting value guarantees a fit.

3

Test, then commit

Preview it where it will be read, such as the rendered README or a real terminal, then commit.

Related guides

Text-to-ASCII Guide

Create a text banner with FIGlet fonts, then copy or download the output.

Terminal Width Guide

Compare 40- and 80-column output before choosing a terminal-friendly width.

Create a project banner

Type the project name, pick a FIGlet font, then copy the result into a code block.