Skip to content

Text Box Generator

Wrap any text in a neat box made of characters, from classic +---+ ASCII to smooth Unicode lines. Great for READMEs, CLI output and code comments.

Border style
chars

      

How to use the Text Box Generator

  1. Type your text. Each line in the input becomes a line in the box.
  2. Pick a border style. ASCII styles work everywhere; Unicode styles look smoother in modern editors and terminals.
  3. Set padding, alignment and, if you like, a title that sits in the top border.
  4. Turn on word wrap and set a width to keep long text inside a fixed-width box.
  5. Copy the result, or wrap it in a comment for your programming language.

ASCII or Unicode borders?

ASCII styles (+, -, |, *, #) are safe anywhere: old terminals, plain-text emails, any font. Unicode box-drawing characters (┌─┐, ╔═╗, ╭─╮) join into continuous lines and look much cleaner, but need a font that includes them. All common coding fonts do.

Keeping boxes aligned

Boxes rely on every character having the same width. Emoji and Chinese, Japanese or Korean characters are usually twice as wide, which pushes the right border out of line. For those, use a plain style and check the result in the app you paste into.

Frequently asked questions

Choose a style, then pick your language in Comment wrap. The box is prefixed with // or # on every line, or wrapped in /* */, so it compiles.

Those apps use proportional fonts. Switch the text to a monospaced font such as Courier New or Consolas, or paste it inside a code block.

Yes. Fill in Title and it appears inside the top border, for example ┌─ Notes ─────┐.