Word Wrap

Wrap text to a maximum line width at word boundaries, great for fixed-width terminals, code comments and plain-text emails. Free and private, right in your browser.

Reflows plain text so no line runs past a character width you set, handy for tidying up commit messages, README paragraphs, code comments, or copy-pasted text that came in as one giant unbroken line. Everything happens in your browser, so nothing you paste ever leaves your machine.

How to use it

  1. Paste your text into the box
  2. Set your target line width (e.g. 80 characters)
  3. Copy the wrapped result

Frequently asked questions

How does it decide where to break lines?
It wraps at the last space before your line width, so words stay whole. If a single word is longer than the width itself, it gets cut mid-word so the line limit is never exceeded.
Does it touch existing line breaks in my text?
Paragraphs (text separated by blank lines) are re-wrapped as a unit. If you want your original line breaks preserved exactly, use hard-wrap mode instead of reflow, or turn off paragraph joining.
What line width should I use?
80 characters is the classic default for code comments, commit messages, and plain-text emails. Use 72 for git commit bodies, or match whatever your terminal, README, or man page convention expects.