ASCII Box Generator

Wrap any text in an ASCII or Unicode box with adjustable borders, padding and alignment.

Paste into a monospace font (code, README, terminal) or the borders will not line up.

Side spacing
1
Top and bottom spacing
0
More options
No uploads. Your files stay on your device.

Free forever, no sign-up, no cookies. Buy me a coffee

How it works

Type or paste any text and this ASCII box generator wraps it in a border made from plain ASCII characters (+ - |) or Unicode box-drawing characters (┌ ─ ┐ ╔ ═ ╗ ╭ ╮ ┏ ━ ┓). The box width is taken from your longest line, then grown by the horizontal padding and by any minimum inner width you set; each line is padded with spaces so the right-hand border always lines up. Choose left, centre or right alignment, add vertical padding for breathing room, and optionally drop a title into the top border — handy for code comment banners and README headers.

Boxes only line up in a monospace font, so paste the result into code, a terminal, a README or a <pre> block rather than a proportional-font document. If a tool or terminal shows the Unicode borders as question marks, switch to the ASCII +--+ style, which is safe everywhere. Everything is generated in your browser with JavaScript — no signup, no ads, and nothing you type is uploaded.

Frequently asked questions

How do I make a box around text in ASCII?

Paste your text into the box above and pick a border style. The generator measures your longest line, adds the padding you choose and pads every other line with spaces so the right-hand border lines up. Plain ASCII uses +, - and | and works in any terminal or editor; the Unicode styles use box-drawing characters such as ┌ ─ ┐ and ╔ ═ ╗ for a cleaner look.

Why does my box look crooked when I paste it?

Box borders only line up in a monospace font. If you paste the result into a word processor, email or chat app that uses a proportional font, the right-hand edge will look ragged. Paste it into code, a terminal, a README or a code block instead. If your terminal shows the Unicode borders as question marks, switch to the ASCII +--+ style, which is safe everywhere.

Is my text sent anywhere?

No. The box is built entirely in your browser with JavaScript, so nothing you type is uploaded, logged or stored, and there is no signup. You can copy the finished box to your clipboard or download it as a .txt file, and the page keeps working offline once it has loaded.

Report a bug