Skip to content
TextArray
100% local

ASCII box generator

Draw a clean border — single, double, rounded or classic ASCII — around any text.

Input
Output

ASCII box generator

A box around a line of text is the oldest trick in plain-text design, and it still works: a README banner, a warning block in a code comment, a header in a config file, a framed quote in a terminal MOTD. Drawing it by hand means counting characters and re-counting them after every edit. Here the box draws itself: paste the text, and the widest line sets the frame, live, as you type.

Seven border styles cover the usual tastes. The single, double, rounded and bold styles use proper Unicode box-drawing characters, which line up perfectly in any monospaced font. Plain ASCII (+---+) is the conservative choice for environments where only 7-bit characters are safe — old terminals, strict linters, e-mail. Stars and hashes give the classic banner look of C and shell comment blocks respectively.

Inside the frame the text can sit centered — the default, right for banners — or left- or right-aligned for content that reads as prose or numbers. Padding adds breathing room between text and border, from a tight zero to a spacious twenty columns. Multi-line input is welcome: every line is padded to the width of the longest, empty lines stay as visual gaps, and trailing whitespace is trimmed so it cannot skew the width.

Everything runs locally in your browser. One thing to know: character-cell fonts render emoji at double width, so a box around emoji-heavy text may look slightly off in some editors — letters, digits and accented characters line up exactly.

FAQ

Why does my box look crooked when the text has emoji?
Monospaced fonts render most emoji two columns wide, but the box math counts them as one character. Letters, digits and accented characters align perfectly; for emoji-heavy content expect a column of drift in some editors.
Which style is safest for code comments and e-mail?
Plain ASCII (+---+). It uses only 7-bit characters, so every terminal, linter, diff tool and mail client renders it identically. The Unicode styles look better wherever UTF-8 is a given — which today is almost everywhere.
How do I make a comment block for my code?
Draw the box with the stars or hash style, then add your language's comment prefix in front of each line — with the add prefix and suffix tool, or by pasting inside a block comment where no prefix is needed.
What happens to empty lines and trailing spaces?
Empty lines inside the text stay as blank rows in the box — useful for spacing a title from a subtitle. Trailing spaces are trimmed before measuring so an invisible character cannot make the box wider than it looks.
Is my text uploaded anywhere?
No. The box is drawn entirely in your browser and your text never leaves your device.