Word Wrap

Wrap text to a fixed column width, keeping whole words on their own line by default or hard-breaking overlong words like URLs when you turn that on.

Wrapped result
Result: 3 lines, 44 characters
The quick brown fox
jumps over the lazy
dog.

3 lines · 42 characters · longest line 19

Reflowing text to a column width

Word Wrap reflows a block of text so no line is longer than the column width you choose. Type or paste your text, set the maximum width in the box or with the slider beside it, and the wrapped result updates live. Words are moved to the next line only at spaces, so whole words stay intact and nothing is chopped in the middle unless you ask for it. Existing line breaks are respected — blank lines that separate paragraphs are kept, each line is wrapped on its own, and the indentation a line starts with stays put and carries onto the lines it wraps onto, so your structure survives the reflow. One click copies the result. Type a prefix into “Start every line with” — “> ” to quote, “// ” or “# ” to comment — and every wrapped line opens with it; the width counts the prefix, so no line runs past it, and a blank line gets the prefix without its trailing space. Tick “Show the length of each line” to see each line’s length beside the result, with any line longer than the width marked in red. The width, the mode, “Break long words” and the line breaks are kept in the page address, so a reload keeps them, and “Copy link” gives a link that also carries the text.

Break long words

Sometimes a single token — a long URL, a hash, or a run of characters with no spaces — is wider than your chosen width. By default such a word is left alone on its own line so it stays readable and unbroken. Turn on "Break long words" and any word longer than the width is hard-split into chunks exactly that wide, guaranteeing every line fits. This is handy for fixed-width formats like plain-text emails, code comments, or terminal output where lines must never exceed a set number of columns.

Frequently asked questions

What does the width number mean?

It is the maximum number of characters allowed on one line. The tool fills each line with as many whole words as fit within that many columns before moving to the next line.

What happens to a word that is longer than the width?

With "Break long words" off, the over-long word is placed alone on its own line and left unbroken. With it on, the word is hard-split into pieces exactly as wide as the width so every line fits.

Can it wrap by characters, or undo wrapping?

Yes. The mode can wrap by words, cut every line at exactly the width in characters, or unwrap hard-wrapped text back into paragraphs.

Can I share a wrap as a link, or see how long each line is?

Yes. The width, the mode, “Break long words” and the line-break choice are kept in the page address, so a reload keeps them and a bookmark opens at the same settings. “Copy link” copies a link that carries the text as well; the text itself is not left in the address bar. Tick “Show the length of each line” and each line’s length appears in a column beside the result, with any line that runs past the width — a word too long to break while “Break long words” is off — marked in red. The column is separate, so Copy still copies only the text.

Can I quote or comment out a paragraph while wrapping it?

Yes. Type the prefix into “Start every line with” — “> ” to quote, “// ” or “# ” to comment — and every line of the result opens with it. The text is wrapped to the width less the prefix, so no line runs past the width, and a blank line takes the prefix without its trailing space. A prefix of spaces indents every line. The box is empty by default, takes only a short prefix, and is off while the mode unwraps into paragraphs.