Box Drawing ASCII

Wrap text in a box using ASCII or Unicode line characters.

The Box Drawing tool wraps your text in a border. Choose a plain ASCII, single-line, double-line or rounded style, set the padding, and copy the result into code comments, READMEs or terminal output. Multi-line text is supported and lines are padded to the same width.

What is box drawing text?

Text boxes are a long-standing way to make notes stand out in plain text, such as banners in source files, console messages and documentation. The simplest style uses plus signs, hyphens and vertical bars, which works everywhere. Unicode adds dedicated box-drawing characters in the range U+2500 to U+257F, giving straight single lines, double lines and rounded corners. They look cleaner but need a monospaced font that includes those glyphs, and they are not ASCII, so a file containing them is no longer pure ASCII. The width of a box depends on the longest line, and the tool measures it in code points, so characters that render wider, such as CJK text or some emoji, can still make the right border look misaligned.

How to use Box Drawing ASCII

  1. Enter text Type or paste into the Text box. The default is Hello and World on two lines.
  2. Pick a style Choose ASCII, Single, Double or Rounded under Border style.
  3. Set padding Enter Padding (0-10).
  4. Copy the box Draw box is the selected operation, so the Boxed text box updates as you type or change an option. Copy the result.

Frequently asked questions

Why does the right edge look crooked?

The font may not be monospaced, or some characters (CJK, certain emoji) are wider than one cell while the tool counts one per code point.

Can I make the text centered?

No. Lines are left aligned inside the box.

Is the output pure ASCII?

Only with the ASCII style. The other styles use Unicode box-drawing characters.

Why is there extra empty space above and below with larger padding?

Vertical padding is added as blank rows, half the horizontal value, rounded up.

Is my text sent anywhere?

No. The box is drawn in the page and your text stays on your device.