_ _ _ _
| | | | ___| | | ___
| |_| |/ _ \ | |/ _ \
| _ | __/ | | (_) |
|_| |_|\___|_|_|\___/
About ASCII Banner (Figlet)
Want an eye-catching startup banner for a command-line tool, or a fun large title in a README or code comment? This tool turns your input into ASCII art lettering (FIGlet style) with multiple selectable font styles. Type HELLO to get a multi-line FIGlet banner you can drop straight into a script header or README as a divider.
The prerequisite is monospaced display, so confirm the target font before use. In a monospaced face every character occupies the same width and the drawing lines up, while in a proportional face widths vary and it deforms immediately. That fits code comments, logs and terminal output, not body text or rich-text editors where the font is usually out of your control.
Width must be planned in characters rather than visual width, which matters when widths mix. A line holding both single and double width characters, such as CJK glyphs or full-width symbols, exceeds the expected total and leaves a ragged right edge. Confirm the content is single-width before drawing a border, or reserve two positions for double-width characters.
The width ceiling follows the display width of the target, not taste. Terminals, review interfaces and chat windows wrap at different points, and a wrap destroys a carefully arranged figure entirely. Design to the smallest common width, usually a few dozen characters, and switch a wide figure to a vertical layout rather than spreading it horizontally.
Verify alignment after copying, since the damage usually happens in transit. Some editors strip trailing whitespace that the right border depends on, and others alter indentation or convert line endings. Paste into the target environment and check the border is intact rather than trusting your own editor view.
Its value is signalling a clear separation with minimal information, so elaborate figures are unnecessary. Character resolution is limited by the grid and detail is quickly lost, leaving a rough look, while simple rules, boxes and block letters do the job of separating and emphasising. Restraint in code comments reads as more professional and stays maintainable.
Finally, remember the figure is unreadable to search engines and assistive tools. It is built from symbols that a screen reader reads individually or skips, so a visually impaired user gets nothing from it. Use real text for meaningful headings in documents and pages, keep character art decorative, and never let it carry essential information.
How It Works Internally
A banner builds glyphs from a character matrix, so width depends on the font definition and charset: the same letter occupies a different number of columns per font, and text that is too long wraps in the terminal and scrambles the artwork entirely. Work backwards from the target terminal width instead of generating and trimming afterwards.
20 characters in an 80-column terminalMost fonts use about six to eight columns per character, so 20 characters approaches or exceeds 80 columns and wraps — shorten the text or pick a narrower fontMeasured on This Page
| Character-exact | All 12 outputs are identical to npm figlet's textSync |
|---|---|
| Font coverage | Four built-in fonts; Banner3-D and Doom are solid-block styles while Standard and Slant are line styles |
| Multi-line | Output is multi-line ASCII (6 lines for Standard, 8 for Banner3-D) with line breaks preserved on copy |
| Empty text | Renders a single space without error |
| Non-Latin | figlet fonts carry no CJK glyphs, so Chinese yields missing blocks — an inherent limit of the figlet ecosystem |
All 12 renders (4 fonts x 3 texts) match npm figlet character for character, verifying that the library is wired correctly rather than figlet itself. Two practical notes: Chinese and other non-Latin scripts have no standard figlet glyphs, so CJK banners need a dedicated font package; and banners from different tools may differ by a space or two (measured: pyfiglet and npm figlet diverge by one line count and one column of left margin on the same input), so compare line by line, not pixel by pixel.
How to Use
- Open "ASCII Banner (Figlet)"
- Type the letters or digits to enlarge
- Pick a font such as Standard or Slant
- Watch the banner render live in the preview
- Copy it into your script or README
Use Cases
- CLI banners — Generate a big logo shown at startup to make a command-line program recognizable.
- README titles — Place a large ASCII heading atop a project to give the repo homepage character.
- Terminal markers — Mark key stages in script output with large text like DONE or ERROR.
- Comment dividers — Label module sections in code with ASCII text to navigate long files at a glance.
- MOTD welcome — Craft a personalized character-art message of the day for server logins.
- Code review markers — Insert large ASCII banners like SECTION or TODO between logical blocks so reviewers can navigate diffs faster.
- Conference badges — Generate text-art badges with attendee names or team names for virtual event screenshots or terminal-based presentations.
FAQ
Does it support CJK characters?
ASCII art assembles glyphs from Latin letters and digits, so CJK usually will not render correctly — use letters, numbers, or symbols.
Why must it be shown in a monospace font?
The art relies on every character being equal width to form the shape; in proportional fonts it misaligns, so use a terminal or code block.
Can I switch fonts?
Yes. Several FIGlet-style fonts are built in, changing the stroke weight and height of the letters.
What about very long text?
Long text exceeds typical terminal width and wraps into a mess; keep it short — a few words works best.
Can the banner go straight into code?
Yes, drop it in a multi-line comment; just watch for characters like backslash that may need escaping in some languages.
Letters work as ASCII art but Chinese does not — why?
ASCII art relies on shape similarity using monospace glyphs defined only for Latin letters and digits. Chinese characters have far more complex strokes and no matching templates — use graphical fonts or SVG for Chinese headings.
The ASCII art misaligns after pasting elsewhere?
The art assumes a monospace font. Proportional fonts in chat apps or web pages change character widths and break alignment. Paste into code comments, monospace text boxes or wrap it in <pre> to keep the shape.
Can I control the width and style of the banner?
Style comes from the font template (standard, slant, small, block) — switching fonts changes the look more than any parameter. Width is fixed by the template; for long text pick a compact font or split into multiple lines and generate each.