首页 视觉与设计内容详情

ASCII Art Generator: 6 Font Banks, Plus Image-to-ASCII - Type a line, pick from six fonts

2026-11-17 4 访客
ASCII Art Generator: 6 Font Banks, Plus Image-to-ASCII

站点名称:ASCII Art Generator: 6 Font Banks, Plus Image-to-ASCII

所属分类:视觉与设计

官方网址:https://www.9314.cn/tools/ascii-art/en/

SEO查询: 爱站网 站长工具

进入网站

站点介绍

ASCII Art Generator: 6 Font Banks, Plus Image-to-ASCII

The first ASCII banner I ever saw was on an old server's login screen: one figlet-rendered WELCOME, wider than the terminal. When I started running my own boxes, the first thing I did after SSH-ing in was swap the MOTD for my own letters — an old-school programmer pleasure. This page turns it into two terminals: type-to-art, and image-to-characters.

The short version

  • Six self-built fonts: block 5x7 (the classic), shadow 7x7 (drop shadow), slant (row-shifted italic), mini 3x5 (more letters per line), script 5x5 (compact), outline (skeleton strokes, lightest ink). All 95 printable ASCII characters covered.
  • The fonts are computed, not traced: every glyph is defined by stroke rules — horizontal, vertical and diagonal segments rasterized onto grids — with five styles derived by geometric transforms. No existing typeface is copied, zero licensing strings, fully inlined and offline-capable.
  • Swappable ink: # classic / @ bold / * stars / solid blocks / 8 digit-rain, plus one-tap invert for dark terminals.
  • Image-to-ASCII: luminance mapped onto a 70-level character ramp (dense @% to sparse dots and spaces), width 40–200 characters, light/dark invert, automatic 2:1 aspect correction so pictures don't stretch.
  • Copy or download .txt; non-Latin scripts aren't covered — said plainly, screenshot them and use the image panel.

Where the fonts come from

Classic FIGlet fonts carry assorted licensing terms — inlining them into a page asks for trouble. So these are built from scratch: each of the 95 characters gets a stroke-segment definition at coordinate level, rasterized into a 5x7 base grid, then five more styles derive from geometric transforms — slant shifts rows sideways, shadow adds a bottom-right 1px drop, mini window-samples rows and columns down. The generator is 300 lines of Python producing 6 × 95 = 570 glyphs in 24KB, generated once, inlined forever.

The light-dark logic of image conversion

Each pixel's weighted luminance (0.299R + 0.587G + 0.114B) maps onto the 70-level ramp: dark areas get dense characters like @%, light areas get dots and spaces. One detail is non-negotiable — monospace glyphs are rectangles about twice as tall as wide, so without correction every picture stretches; this page folds the aspect ratio 2:1 automatically. The invert toggle lets dark-terminal people play too.

FAQ

Does it support non-Latin scripts like Chinese or Arabic?

No, and said plainly: the six fonts cover exactly the 95 printable ASCII characters (letters, digits, common punctuation). Encoding thousands of CJK glyphs as page-embedded dot matrices isn't realistic. For non-Latin text, screenshot it and feed the image to the image-to-ASCII panel below — the effect is just as good.

What's the difference between the six fonts?

block is the classic 5x7 dot matrix, safest in terminals; shadow adds a bottom-right drop shadow for depth; slant shifts each row sideways for an italic lean; mini packs letters into 3x5 so more fit per line; script compresses to 5 rows for a casual feel; outline keeps only stroke skeletons — lightest ink. Switch fonts on the same line and see the difference live.

Where do the fonts come from?

Built from scratch: every glyph's shape is mathematically defined by stroke rules (horizontal, vertical and diagonal segments rasterized onto a grid) — not traced from any existing typeface, so there are no licensing strings. A generator script produced all 6 fonts × 95 characters, inlined into the page; it works offline.

How does image-to-ASCII work?

The image is resampled to your chosen width, then each pixel's luminance is computed (0.299R + 0.587G + 0.114B) and mapped onto a 70-level character ramp from @ down to a space — the classic @%#*+=-: ladder, dense characters for dark areas, sparse for light. Monospace glyphs are about twice as tall as wide, so the tool corrects the aspect ratio 2:1, otherwise everything comes out stretched.

What can I do with the output?

Paste it as a section banner in code comments, as a terminal MOTD welcome, or as a README sign — plain text holds its shape anywhere. Open downloaded .txt files with a monospace font (Consolas on Notepad, or just use VS Code); proportional fonts will scatter the picture.

Is my text or image uploaded anywhere?

No. Font rendering and grayscale mapping all run inside this device's browser — zero uploads, zero requests. Text and settings live in this browser's localStorage; the footer button clears them in one click.

中文版:https://www.9314.cn/tools/ascii-art/

 暂无评论,快来抢沙发吧~

发布评论