Word Wrap

Wrap text to a fixed line width, optionally hard-breaking overlong words, running 100% in your browser with no upload.

Wrapped result
The quick brown fox
jumps over the lazy
dog.

🔒 Wrapped in your browser — nothing is uploaded.

What this tool does

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, 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, and each line is wrapped on its own, so your structure survives the reflow. One click copies the result.

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

Is any of my text uploaded to a server?

No. All wrapping happens locally in your browser with JavaScript. Your text is never sent, stored, or uploaded anywhere, so it stays completely private.

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.