Text Box Generator
This text box generator draws a frame of Unicode box-drawing characters around your text, so you can paste a boxed note into a README, a code comment or a chat.
Side padding 0 to 8, top and bottom padding 0 to 4. The input holds up to 5,000 characters, counted by code points.
Type something to box.
Edges line up exactly only in a monospace font. Wide characters such as CJK and some emoji can take two columns and shift the right edge.
Why use this text box generator
Plain text, not an image
The box is made of characters, so it pastes anywhere text goes and stays selectable, searchable and editable.
Five frame styles
Single, double, rounded, heavy and plain ASCII, for places that cannot show Unicode.
Control over spacing
Set the padding and align the text left, centre or right inside the frame.
What the text box generator makes
The generator measures your longest line, then draws a top edge, side edges for each line and a bottom edge. Each line is padded with spaces so the right edge stays straight. The frame uses characters from the Unicode Box Drawing block, the same ones terminals and text interfaces use for tables and panels.
Alignment is exact only in a monospace font. In a proportional font the frame will look ragged, and wide characters such as CJK ideographs and some emoji can take two columns and shift the edge. The tool counts one grapheme cluster as one column.
Frame styles and settings
- SingleThin lines, the default look for notes and comments.
- DoubleTwo-line frame for headings and callouts.
- RoundedThin lines with curved corners.
- HeavyThick lines for emphasis.
- Plain ASCIIPlus signs, hyphens and bars, for terminals and tools that cannot show Unicode. Compare them in the ASCII table.
- Side paddingZero to 8 spaces between the text and each side edge. The default is 1.
- Top and bottom paddingZero to 4 blank framed lines above and below the text. The default is 0.
- Align textLeft, Center or Right inside the frame. When the leftover space is odd, the extra space goes on the right.
- WidthThe longest line plus the padding on both sides. Shorter lines are filled with spaces.
- Tabs and line breaksA tab becomes four spaces, every line break becomes one new line and a single trailing line break is ignored.
Common Use Cases
Worked example
Two lines, Hello and Quick Note, in the Single style with padding 1 and left alignment:┌────────────┐ │ Hello │ │ Quick Note │ └────────────┘The same text in the Double style with Center alignment starts with this top edge: ╔════════════╗
Code comments and README files
Frame a warning or a title block.
Chat and notes
Make a boxed announcement without an image.
Terminals and logs
Use the plain ASCII style where Unicode is not safe.
Plain-text documents
Mark a section in an email or a text file.
How to make a text box
Type or paste your text
Use the first box. The frame updates as you type, and each line break starts a new line in the box.
Choose a frame style
Pick Single, Double, Rounded, Heavy or Plain ASCII. Each button shows its top edge.
Set padding and alignment
Enter the side and top and bottom padding, then choose Left, Center or Right.
Copy or download
Copy the box, or download it as a text file named text-box.txt.
Benefits
Text stays here
The box is drawn by your browser. The page does not send your text anywhere.
Grapheme-aware
It counts grapheme clusters, so a letter with a combining accent or an emoji with a skin tone counts as one column and does not break the width.
What you see is what you paste
The preview and the copied output are the same text.
Tips
- •Use a monospace font. Paste into a code editor or terminal, where every character takes the same width.
- •Check the target. If an app shows empty squares or question marks instead of the frame, switch to the Plain ASCII style.
- •Make the text first. Style the words first with the fancy text generator, then paste them in to box them.
Type a line and see the frame appear
Type or paste up to 5,000 characters, pick a style and copy the box.
For numbered lines before framing, use number lines, or add a fixed start or end to every line with add prefix and suffix.
Related tools
Frequently Asked Questions
Why is my box crooked when I paste it?
The place you pasted into is not using a monospace font. Switch to one, or use the plain ASCII style.
Are these real characters or an image?
Real Unicode characters from the Box Drawing block, so they copy as text.
Will CJK text or emoji line up?
Not always. Some are drawn two columns wide, and the generator counts one column per grapheme cluster.
Can I make a game dialogue box?
This tool makes plain-text frames, not pictures or animated dialogue boxes.
Is there a size limit?
5,000 characters of input.