DevTools Logo

Figlet ASCII Typography & ANSI Banner Studio

Figlet ASCII Typography & ANSI Banner Studio

Create monospace banners with the real FIGlet fonts, rendered in your browser.

Runs in your browser
Try an example

Text

1 line · 3 chars

Letters, digits, punctuation and spaces. Line breaks start a new banner row.

ASCII banner

Working…

Examples

Multi-line banner stacks blocks

Input
renderFiglet("A\nB", "Standard")
Output
10 newline-joined rows (5 per line) containing "A" then "B"

Each source line expands to height rows, so two lines in Standard yield 10 output lines.

Width limit truncates Big text

Input
renderFiglet("ABCDEFGHIJ", "Big", 20)
Output
truncated: true, width: 20, every row ≤ 20 chars

Big doubles each cell so the block exceeds 20 columns; rows slice at 20 and truncated flags the clip.

About this tool

ASCII Figlet Banner Designer renders banner text with renderFiglet(text, font, maxWidth) using five embedded fonts (Standard, Slant, Small, Big, Mini) over an A-Z glyph set transformed per font: Standard is verbatim, Mini keeps 3 rows, Small keeps 4 rows with collapsed doubles, Big doubles every cell, and Slant shifts rows with a 4-index indent. Spaces emit 3 blank columns, sequences normalize to , and each input line renders a stacked height-row block (5 rows, 3 for Mini).

Unknown characters never throw: each one is recorded once in unknownCharacters and drawn as a ? placeholder box (??? on the first/last row, ? ? inside). Empty input returns { output: "", unknownCharacters: [], width: 0 } with the font height, and rendering is fully deterministic — the same text and font always produce an equal FigletResult. When a block is wider than maxWidth (default 120) every row is sliced to maxWidth, truncated is set true, and width reports min(maxWidth, longest row).

Layout details matter for banners: glyph cells join with a single trailing space per character, non-truncated rows have trailing spaces stripped, and width is measured over the joined output lines. A B C in every font therefore preserves the letters across newline-joined rows of exactly height lines, while long Big-font strings truncate cleanly at the requested column.

How to use this tool

  1. Type banner text

    Enter one or more lines (multi-line input stacks height-row blocks) and pick a font — Standard, Slant, Small, Big, or Mini — via renderFiglet(text, font).

  2. Watch for unknown characters

    Check unknownCharacters: unsupported symbols like ? render as a ? box. Replace or accept them before copying the banner.

  3. Fit the width

    Pass maxWidth (default 120) to slice every row at that column; truncated: true and width: maxWidth tell you the banner was clipped.

  4. Copy the deterministic output

    The same input always yields the same output string, so re-rendering or re-running the tool reproduces the identical banner.

Use cases

Decorating CLI help output

Render a Standard or Slant header for --help screens and README code fences with predictable row counts.

Fitting banners into fixed-width terminals

Use maxWidth plus the truncated flag to guarantee every row fits an 80- or 120-column terminal.

Spotting unsupported glyphs early

Read unknownCharacters to find digits or punctuation the embedded A-Z set cannot draw before shipping the banner.

Common mistakes

Mistake:Expecting lowercase or punctuation to render distinctly.

Fix:Only A-Z (case-insensitive) plus space have real glyphs; anything else becomes a ? box and is listed in unknownCharacters.

Mistake:Assuming output rows equal input lines.

Fix:Each input line expands to height rows (5, or 3 for Mini) — a 2-line Standard input produces 10 output lines.

Mistake:Ignoring the truncated flag.

Fix:When width hits maxWidth every row is sliced; widen maxWidth or shorten the text instead of shipping a clipped banner.

Frequently asked questions

What does this tool do?

It renders banner text with renderFiglet(text, font, maxWidth) across five embedded fonts (Standard, Slant, Small, Big, Mini) over an A-Z glyph set: multi-line input stacks height-row blocks (5 rows, 3 for Mini), spaces emit blank columns, and output joins rows with newlines plus a width/height/truncated report.

How do unknown characters, empty input, and width limits behave?

Unsupported symbols are recorded once in unknownCharacters and drawn as ? boxes (e.g. A? yields ["?"]); empty input returns output "" with width 0; and a Big-font ABCDEFGHIJ at maxWidth 20 sets truncated: true with width 20 and every row sliced to 20 columns.

Is my text uploaded or stored?

No. Glyph lookup, transformation, and layout are pure client-side string math — banner text never leaves your browser.

Is the output deterministic?

Yes. The same text plus font always returns an equal FigletResult, so re-rendering A B C in any font reproduces the identical banner byte-for-byte.

References & standards