Word Wrap Text Online to a Fixed Width
Word wrap text online by reflowing long lines into shorter ones at the exact column width you choose. The tool inserts real line break characters, so the wrapping is permanent and travels with your text into any editor, email, or terminal.
This is hard wrapping, not the soft, screen-only wrapping that text editors do. You stay in control with options to preserve paragraphs, break long words, find natural break points, and add a prefix to every line — handy for code comments at 80 characters, git commit bodies, or email quotes.
How to Wrap Text
Add your text
Type into the Input panel or use the Paste button to drop in text from your clipboard. Wrapping starts the moment text appears.
Set the width
Enter the maximum characters per line in the Width box, or use the + and - steppers. The default is 20, and any value from 1 to 1000 is allowed.
Choose your modes
Toggle Preserve to keep paragraphs, Break to split long words at the limit, and Smart to break at punctuation. Add a string in Indent to prefix every line.
Edit and copy
The Output panel updates live and stays editable for quick fixes. When it looks right, hit Copy to send the wrapped text to your clipboard.
Features
Custom Line Width
Set the maximum characters per line anywhere from 1 to 1000. Common picks are 40 for narrow columns, 72 for emails and commits, and 80 for code.
Smart Break
Breaks lines near punctuation such as periods, commas, and brackets instead of cutting mid-phrase, giving prose a more natural flow.
Preserve Paragraphs
Keep your original line structure intact, or turn it off to merge everything into one continuous block before wrapping.
Break Long Words
Decide what happens when a word is longer than the width. Split it to enforce a strict limit, or keep it intact for readability.
Custom Indentation
Prefix every wrapped line with any string, like > for email quotes, // for code comments, or spaces for indentation.
Real-Time Processing
Results refresh instantly as you type or change any setting. There is no run button to press — just adjust and watch the output.
Editable Output
The result panel stays editable, so you can fine-tune the wrapped text by hand without starting over.
Live Counts
The status bars show the input character count and the output line count, so you can verify the result at a glance.
Paste, Clear & Copy
One-click buttons paste from the clipboard, clear the input, and copy the wrapped result back out in a single tap.
Saved Settings, Private
Your width, modes, and indent are remembered in your browser for next time, and your text never leaves your device.
Frequently Asked Questions
What is word wrap?
Word wrap reflows a block of text so each line fits within a chosen width. This tool does hard wrapping, meaning it inserts real line break characters that stay in the text permanently — not just visual wrapping that disappears when the text moves elsewhere.
How do I wrap text to 80 characters?
Paste your text, then set Width to 80. The output is reflowed so no line exceeds 80 characters. For strict enforcement on very long words, turn Break on; leave it off to keep long words whole even if a line runs over.
What is the difference between hard wrap and soft wrap?
Hard wrap inserts actual line break characters, so the breaks are permanent and appear in any program. Soft wrap is visual only — text editors fit text to the screen without adding real breaks. This tool performs hard wrapping.
What does "Break" do for long words?
When a single word is longer than the width, Break decides the outcome. Enabled, the word is split at the width limit. Disabled, the word stays on one line and that line may run past the width to keep the word intact.
Why use a column width like 72 or 80?
Fixed widths keep text readable and consistent across tools. 72 is the standard for plain-text emails and git commit messages, 80 is the classic terminal and code style-guide width, 40 suits narrow mobile columns, and 120 fits modern wide screens.
Does it keep my paragraphs?
Yes, while Preserve is on it respects your existing line breaks and wraps each paragraph separately. If paragraphs merge together, that means Preserve is off and the whole input is being treated as one continuous block.
How do I create email-style quotes?
Set Width to 72 and type > (a greater-than sign and a space) into the Indent field. Every wrapped line is prefixed with that string, producing standard email quote formatting ready to paste into a reply.
Does it work with non-English text?
Yes. The tool handles Unicode text, including Vietnamese, Chinese, Japanese, Arabic, emoji, and special symbols, and counts characters accurately across languages.
Is my text sent to a server?
No. Everything runs entirely in your browser with JavaScript, so your text never leaves your device. Nothing is uploaded, stored, or tracked, which makes it safe for private or sensitive content.
No comments yet. Be the first to comment!