Toolstia / Text box generator

Text box generator

Wrap any text in a neat border made of box drawing characters or plain ASCII symbols. Useful for code comments, README files, terminal banners and plain text emails.

Box drawing characters line up best in a monospaced font, such as in code editors, terminals and code blocks.

How it works

  1. Type the text you want to box.
  2. Choose a border style, padding and alignment.
  3. Copy the finished box.

Border styles

Choose single, double, rounded or heavy line drawing characters, plain + - | characters that work anywhere, or stars and hashes.

Alignment and width

Lines can be left, centre or right aligned. A minimum width makes the box wider than its longest line.

Fonts

The box lines up only in a monospaced font. In proportional fonts the right side may look uneven.

Plain ASCII

If the box will pass through systems that mangle special characters, choose the plain ASCII, star or hash styles.

Questions

Does it work with emoji?

Wide emoji take two columns in many fonts, so boxes with emoji may look off. Everything happens in your browser, and nothing you enter is sent anywhere.

Can I box several lines?

Yes. Every line sits inside the same box.

What is padding?

The number of spaces between the text and the border on each side.