By Maya Chen, lettering designer and type educator · Checked by Jordan Hale · · How we review content
Key facts
- Box drawing characters are the Unicode block U+2500 to U+257F: 128 line pieces including straight lines, corners, tees and crosses in light, heavy and double weights.
- The block also holds dashed lines, four rounded corners (╭ ╮ ╰ ╯) and diagonals.
- Block elements (U+2580 to U+259F) are filled areas such as █, half blocks and the shades ░ ▒ ▓, used for progress bars and terminal bar charts.
- Box lines only join when every character has the same width and the line height leaves no gap, as in monospace fonts such as Consolas, Menlo or DejaVu Sans Mono.
- Box drawing characters are Unicode, not ASCII: ASCII has only - | + and _ for drawing lines.
- In Microsoft Word, type a code point such as 2500 and press Alt+X to insert the matching box drawing character.
How are box drawing characters organised?
| Weight | Example | Use |
|---|---|---|
| Light | ┌─┬─┐ │ └─┴─┘ |
Tables, trees, simple boxes |
| Heavy | ┏━┳━┓ ┃ |
Headings, emphasis |
| Double | ╔═╦═╗ ║ |
Titles, retro game menus |
| Mixed | ┝ ┿ ╞ |
Joining a heavy or double line to a light one |
| Dashed | ┄ ┆ ┈ ┊ |
Dotted guides |
| Rounded | ╭ ╮ ╰ ╯ |
Friendly, modern boxes |
Each corner, tee and cross exists in every combination of weights, which is why there are 128 of them: a light vertical line can meet a heavy horizontal one, a double line can turn into a single one, and so on. Pick the piece whose name matches the lines it joins.
What are block elements and shades?
The block elements (U+2580 to U+259F) are not lines but filled areas: full block █, half blocks ▀ ▄ ▌ ▐, quarter blocks and the three shades ░ ▒ ▓. They are used for progress bars, bar charts in terminals and the big text generator.
Where should I start?
- Want a box around your words? The ASCII border maker offers 12 border styles with alignment and padding, ready to copy.
- Want a separator line? The ASCII divider maker has 20 styles from plain dashes to hearts and sparkles.
- Want large block lettering? The big text generator builds banners from block elements, with five fill styles.
- Want to look up a plain keyboard code? The ASCII table lists all 128 ASCII codes, and the ASCII art galleries show what is possible with them.
How do I draw a folder tree?
The folder tree in the examples uses only four pieces: ├── for an item with more below it, └── for the last item, │ to continue a level and spaces to indent. It is the style used by the tree command and in many README files.
For boxes around your own words, use the ASCII border maker, which frames text with box drawing characters; for single lines, the ASCII divider maker.