ASCII box generator
Draw a clean border — single, double, rounded or classic ASCII — around any text.
Related tools
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.