Wrap text to a fixed width
Plain-text email, code comments, README files, and terminal output often need a fixed line width. This word wrap tool reflows your text so every line stays within the character width you choose, breaking only at word boundaries so words are never split mid-letter (unless you ask it to).
How it works
The tool reads your text word by word and packs as many words as will fit on each line without exceeding your chosen width, then starts a new line. Real newline characters are inserted, so it is a hard wrap that stays put wherever you paste the result. If a single word is longer than the width, it normally sits on its own line; turning on break long words hard-splits it across lines instead, which is handy for long URLs and identifiers.
| Option | Behaviour |
|---|---|
| Width | Maximum characters per line |
| Break long words off | Over-long words stay whole on one line |
| Break long words on | Over-long words are hard-split to fit |
Example
Wrapping “The quick brown fox jumps over the lazy dog” to a width of 20 produces:
The quick brown fox
jumps over the lazy
dog
Each line stays at or under 20 characters, and every break falls between words.
Everything runs in your browser — nothing is uploaded.