Home › Text Tools › Text Border Generator

Text Border Generator

Type a few lines and get them framed in a neat box made of Unicode box-drawing characters or plain ASCII. Pick single, double, rounded, heavy, dashed, stars or your own characters, then set alignment, padding, a title and word wrap.

Last updated:

Border style
Boxed text

      
      

Box drawing only lines up in a monospaced font. In chat apps paste it with Copy as code block (adds ``` fences), in code use it inside a comment.

Advertisement
Advertisement

How to use the Text Border Generator

  1. Type or paste your text; each line becomes a line inside the box.
  2. Choose a border style from the gallery, or pick Custom and enter your own corner and edge characters.
  3. Set alignment and padding, and optionally a title, a wrap width or a minimum width.
  4. Check the live preview, which uses a monospaced font like most code editors and terminals.
  5. Copy the box or copy it as a code block, then paste it into your code comment, README, chat or notes.

Box-drawing characters reference

Unicode has a dedicated Box Drawing block (U+2500 to U+257F) designed so that lines join seamlessly in monospaced fonts. These are the characters the main styles use.

StyleCornersHorizontalVerticalT-joinsCode points
Single (light)┌ ┐ └ ┘─│├ ┤U+250C, U+2510, U+2514, U+2518, U+2500, U+2502
Double╔ ╗ ╚ ╝═║╠ ╣U+2554, U+2557, U+255A, U+255D, U+2550, U+2551
Rounded╭ ╮ ╰ ╯─│├ ┤U+256D to U+2570
Heavy┏ ┓ ┗ ┛━┃┣ ┫U+250F, U+2513, U+2517, U+251B, U+2501, U+2503
Dashed┌ ┐ └ ┘┄┆├ ┤U+2504, U+2506
Double top and bottom╒ ╕ ╘ ╛═│╞ ╡U+2552, U+2555, U+2558, U+255B
Blocks▛ ▜ ▙ ▟▀ ▄▌ ▐noneBlock Elements U+2580 to U+259F

How the box is measured

The generator finds the widest line, adds the side padding on both sides, and draws the top and bottom edges to exactly that width plus the two side characters. Shorter lines are padded with spaces according to the alignment you choose; with center alignment an odd leftover space goes to the right. Width is counted in terminal columns, not characters: emoji, Chinese, Japanese and Korean characters count as two columns, combining accents and zero-width characters count as zero, and tabs are expanded to four spaces. That is the same rule most code editors and terminals use, so the right edge stays straight when you paste.

Where boxed text works well

  • Code comments and file headers: a boxed title makes sections easy to spot when scrolling through a long file.
  • README files and docs: put the box inside a fenced code block so it keeps its shape on GitHub and in Markdown viewers.
  • Terminal and CLI output: banners and warnings in scripts, help screens and log summaries.
  • Chat and forums: use Copy as code block so Discord, Slack and similar apps render it in a monospaced font.
  • Plain-text email and notes: choose an ASCII style when you are not sure the reader's font supports box-drawing characters.

Frequently asked questions

Why does my box look broken after pasting?

Box drawing only lines up in a monospaced font, where every character has the same width. Paste it into a code editor, terminal, or a code block (```) in chat apps such as Discord, Slack or GitHub. In proportional fonts the edges will drift.

Which style is safest to use everywhere?

The ASCII styles (+ - |, stars and hash) use only basic keyboard characters, so they display correctly in any monospaced font, old terminals and plain-text email. Unicode box-drawing styles look smoother but need a font that includes those characters, which nearly all modern fonts do.

Why are emoji treated as double width?

Most terminals and code editors draw emoji and Chinese, Japanese and Korean characters two columns wide. Counting them as two keeps the right edge straight. If your editor draws them single width, untick that option.

Can I put a title in the border?

Yes. Type it in Title in top border and it appears inside the top edge, for example ┌─ Notes ──────┐. The box grows if the title is longer than the text.

How do I make all my boxes the same width?

Set a Minimum inner width. Every box is at least that wide, which helps when you stack several boxed notes or comment banners in a file.

Can I use this for code comments?

Yes. Make the box, copy it, and add your language's comment marker in front of each line, or use the Add Prefix and Suffix to Lines tool to add // or # to every line at once.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Text Divider GeneratorCopy aesthetic Unicode line dividers like ─── ⋆⋅☆⋅⋆ ─── or build your own symmetric divider.ASCII Art GeneratorTurn text into big ASCII banners or convert any image into ASCII art you can copy.Special CharactersCopy and paste 1,500+ symbols: arrows, math, currency, stars, checkmarks, © ® ™ and more.Add Prefix and Suffix to LinesAdd text to the start and end of every line: quotes, commas, bullets or SQL lists.Fancy Text GeneratorTurn text into cool Unicode fonts for bios.Reverse Text GeneratorWrite text backwards, reverse words or lines, mirror or flip it upside down.Upside Down Text GeneratorFlip text upside down with Unicode characters, or turn it back to normal.Emoji CounterCount every emoji in your text, including flags, skin tones and ZWJ sequences.Small Text GeneratorTurn text into tiny superscript, subscript and small caps letters you can copy and paste.Zalgo Text GeneratorMake creepy glitch text with separate up, middle and down sliders, or clean zalgo back to normal.Invisible CharacterCopy blank and invisible characters (ㅤ U+3164, U+2800, zero width space) for names and messages.Emoji PickerSearch 1,900+ emoji by name, pick skin tones and copy and paste them with one click.Word UnscramblerUnscramble letters into every possible word, with blank tiles, length filters and Scrabble scores.Braille TranslatorTranslate English text to Grade 1 Unicode braille and back, with dot numbers and printing.Bold Text GeneratorConvert text to bold Unicode letters you can copy and paste anywhere.Italic Text GeneratorConvert text to italic Unicode letters you can copy and paste anywhere.Cursive Text GeneratorConvert text to cursive Unicode letters you can copy and paste anywhere.Strikethrough Text GeneratorConvert text to strikethrough Unicode letters you can copy and paste anywhere.Underline Text GeneratorConvert text to underlined Unicode letters you can copy and paste anywhere.Bubble Text GeneratorConvert text to bubble Unicode letters you can copy and paste anywhere.Wide Text GeneratorConvert text to wide Unicode letters you can copy and paste anywhere.Old English Text GeneratorConvert text to Old English Unicode letters you can copy and paste anywhere.Superscript GeneratorConvert text to superscript Unicode letters you can copy and paste anywhere.Subscript GeneratorConvert text to subscript Unicode letters you can copy and paste anywhere.Remove Special CharactersStrip symbols, emoji and odd characters, keeping only letters, numbers, spaces and what you allow.Emoji TranslatorTranslate text to emoji: words like love, pizza and dog become ❤️ 🍕 🐶, with a density slider.Monospace Text GeneratorTurn text into 𝚖𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎 typewriter-style Unicode letters to copy and paste.Aesthetic Text GeneratorMake aesthetic text with vaporwave letters, sparkles, hearts and frames to copy.Emoji Letters GeneratorTurn words into 🇭 🇪 🇱 🇱 🇴 regional indicator, 🅰️ block and keycap 1️⃣ emoji letters.Discord Colored Text GeneratorColor, bold and underline text for Discord with ANSI code blocks and a live preview.Discord Font GeneratorFancy fonts for Discord names and bios, plus ready-made Discord markdown formatting.Remove Emojis from TextStrip every emoji, flag, skin tone and ZWJ sequence from text, with a count of what was removed.Fill in the Blank GeneratorTurn any text into a printable fill-in-the-blank worksheet with word bank and answer key.Instagram Font GeneratorMake bold, cursive and aesthetic fonts for your Instagram bio, name and captions.Stylish Name GeneratorDecorate your name with ꧁ ꧂, ★彡, 亗 and other symbols for games and profiles.Tattoo Font GeneratorPreview a word or name in gothic, script and other tattoo-style fonts to copy.Alt Codes ListSearchable Windows Alt code chart (Alt+0176 °, Alt+0169 ©) with Mac shortcuts and one-click copy.Check Mark SymbolCopy and paste check marks and ballot boxes ✓ ✔ ☑ ✅ ☐ ✗ with Alt, Unicode and HTML codes.Emoji MeaningsLook up what an emoji means: meaning, slang use, Unicode name, version and related emojis.Fancy Text to Normal Text ConverterTurn bold, cursive, bubble, small caps, fullwidth and zalgo Unicode text back into plain text.Mail Merge Text GeneratorFill a {placeholder} template with CSV rows to create a personalized message for each person.Mirror Text GeneratorCreate mirrored and reflected text with Unicode look-alike letters (ɘ, ꓘ, Я) and copy it.Shrug EmoticonCopy ¯\_(ツ)_/¯ in one click, plus Discord, Reddit and Markdown-safe versions and 30 shrug variants.Vertical Text GeneratorTurn text into vertical columns, one character per line, to copy into posts, bios and chats.Arrow SymbolsCopy and paste 600+ arrow symbols → ⇒ ➜ ↑ ↻ by direction and style, with Alt and HTML codes.Fraction SymbolsCopy fraction symbols ½ ¼ ¾ ⅓ ⅛ or build any fraction like ¹⁵⁄₁₆ with superscript digits.Heart SymbolsCopy and paste heart symbols ♥ ❤ ♡ ❥ 💕 and decorative hearts with Alt, Unicode and HTML codes.Star SymbolsCopy and paste star symbols ★ ☆ ✦ ✩ ✪ ⭐ ✨ and asterisms with Unicode, Alt and HTML codes.Unicode NormalizerNormalize text to NFC, NFD, NFKC or NFKD and see exactly which code points changed.Bullet Point SymbolsCopy and paste bullet symbols • ◦ ▪ ➤ ✓ ‣ for lists and resumes, plus a bulleted list maker.Copyright and Trademark SymbolsCopy © ® ™ ℠ ℗ with Alt and HTML codes, when to use each, and a copyright notice maker.Currency SymbolsCopy and paste $ € £ ¥ ₹ ₿ and 80+ world currency signs with ISO codes and Alt codes.Em Dash Copy and PasteCopy the em dash —, en dash – and every hyphen or minus sign, with when to use each.Emoji CipherTurn secret messages into emoji with a shared key, then decode them back to text.Text Pixel Width CalculatorMeasure how many pixels wide text renders in any font and size, and check it against a limit.Degree SymbolCopy the degree sign ° (and °C, °F) in one click, with Alt code and how to type it anywhere.Kaomoji Copy and Paste2,000+ Japanese kaomoji text faces by emotion and animal. Search and copy with one click.LaTeX Equation EditorWrite LaTeX math with a symbol palette and live preview; export PNG, SVG or MathML for Word.Lenny Face GeneratorBuild your own ( ͡° ͜ʖ ͡°) by picking ears, eyes and mouth, or copy 60+ ready-made Lenny faces.Math Symbols Copy and PasteCopy math symbols like ∑ √ ∞ ≤ ∫ π ∈ with their Unicode, HTML entity and LaTeX command.Copy and Paste Text ArtCute one-line and multi-line text art (animals, hearts, faces, borders) to search and copy.
See all 61 Fonts, Symbols & Emoji →