AZ Tools

Word Wrap — Reflow Text to a Column Width

Text

Paste text and wrap it to a maximum line width. Each line is greedily filled with as many words as fit, then a line break is inserted at the next word boundary — ideal for commit message bodies, emails, code comments and plain-text formatting. Existing line breaks and blank lines are kept, and you can optionally break words longer than the width. Everything runs locally in your browser — nothing is uploaded.

Wrapped text

Lines: 2 · Longest: 39

How to use

  1. Paste or type your text into the input box.
  2. Set the line width and choose whether to break overly long words.
  3. Copy the wrapped text from the output box.

Frequently asked questions

Does it merge my existing lines?
No. Each input line is wrapped independently, so existing line breaks and blank lines are preserved. It only adds breaks, never removes them.
What happens to a word longer than the width?
By default it stays on its own line and overflows the width. Turn on 'Break long words' to split such words across lines at the width.
How is wrapping decided?
Words are packed greedily: each line takes as many whole words as fit within the width, then the next word starts a new line. Runs of spaces within a line collapse to single spaces.
Is my text sent anywhere?
No. Wrapping happens entirely in your browser; nothing is uploaded.

Related tools