What Is an ASCII Diagram Editor?
An ASCII diagram editor lets you draw boxes, lines, arrows, and text directly on a character grid. The output is plain Unicode text you can paste into code comments, README files, documentation, Slack messages, or any plain-text context. Unlike image-based diagrams, text diagrams live inline with your code and show up in terminals, editors, and version control diffs.
When to Use ASCII Diagrams
ASCII diagrams are ideal when you need lightweight visuals that don't require external tools or image hosting. Use them for architecture overviews in code comments, data flow diagrams in technical specs and file structure trees in READMEs. They diff cleanly in version control and need no dependencies.
How to Use This Tool
- Select a drawing tool — Choose Box, Line, Arrow, Draw, Erase, or Text from the toolbar.
- Click and drag on the grid — For boxes and lines, click a start point and drag to the end point. The shape is previewed as you move.
- Add text labels — Select the Text tool, click a grid cell, type your label, and press Enter or click Place.
- Copy the output — Click 'Copy ASCII' to copy the trimmed diagram to your clipboard. Paste it into your code, docs, or chat.
What the output is made of, and where it can misalign
Despite the name, apart from the text you type, the diagrams are not ASCII. Boxes and lines use Unicode box-drawing characters, and arrowheads come from the Geometric Shapes block. That's why the output looks cleaner than +--+ art, and it's also the reason it can break in some places. We read the character list from the editor's code and checked each one against the Unicode Character Database and two common monospace fonts on October 12, 2026:
| Used for | Characters | Code points | East Asian Width |
|---|---|---|---|
| Box corners | ┌ ┐ └ ┘ | U+250C, U+2510, U+2514, U+2518 | Ambiguous |
| Lines and box edges | ─ │ | U+2500, U+2502 | Ambiguous |
| Vertical arrowheads | ▲ ▼ | U+25B2, U+25BC | Ambiguous |
| Horizontal arrowheads | ◄ ► | U+25C4, U+25BA | Neutral |
| Draw tool | █ | U+2588 | Ambiguous |
In DejaVu Sans Mono and Liberation Mono, every one of these characters is exactly as wide as a space, so diagrams line up. The risk is the "Ambiguous" column. Unicode's East Asian Width annex (UAX #11) defines Ambiguous characters as ones that can be either narrow or wide depending on context. Terminals and editors set up for Chinese, Japanese or Korean often draw them two cells wide. In that setting, the box edges and ▲ ▼ double in width while spaces, ◄ ► and your typed letters don't, and the right-hand side of every box drifts. If your readers may use such a setup, or the target is strict ASCII, redraw with +, - and | using the Text tool.
Editor behaviour worth knowing
- Crossings overwrite. Lines don't merge into junctions (┼ ├ ┬). A line drawn across a box edge replaces the border characters it crosses, so draw boxes last, or retype junctions with the Text tool.
- One character per cell. The Text tool puts each character you type in its own cell. CJK characters and most emoji display two cells wide in monospace fonts, so a label containing them pushes everything after it to the right.
- Diagonals: type
/and\with the Text tool. The Draw tool only places the full block █. - Elbows in every direction: an L-shaped line or arrow runs along the row where you start, then up or down to where you release. Until October 13, 2026 the corner was picked from the vertical direction only, so lines dragged right to left got ┐ or ┘ where ┌ or └ belonged. The corner now joins the actual arms; checked in Chromium for all four drag directions with lines and arrows (8 of 8).
- Grid and copy: the canvas is 60 columns × 30 rows. Copy ASCII trims trailing spaces from each line and blank lines from the end, so the pasted block is no wider than your drawing.
Sources
Checked on .
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools