Word Wrap Tool

Choose a line width and paste your text. Lines are broken at spaces so no word is cut, ready for an email, a text file or a code comment.

Worked examples

Wrapped at 20

The quick brown fox jumps over the lazy dog and keeps running

The quick brown fox jumps over the lazy dog and keeps running

No word is cut, so each line is at most 20 characters.

About Word Wrap Tool

Plain text still has a width. Emails are traditionally wrapped at 72 characters, code and documentation at 80, and some files and printers have a fixed number of columns. Text written in a word processor or copied from a web page has very long lines, or lines wrapped at a different width. This tool rewraps it at the width you choose, breaking only at spaces.

Each line is wrapped on its own, keeping your indentation, double spaces and empty lines. If your text is already wrapped at the wrong width, tick the join option: every paragraph, meaning text between empty lines, is first joined into one line and then wrapped again, so you do not end up with short ragged lines. A word longer than the width is cut by default, and you can leave long words, such as web addresses, whole instead. Width is measured in characters as people see them.

How to use Word Wrap Tool

  1. Paste your text into the box.
  2. Enter the line width in characters.
  3. Tick join if the text is already wrapped, and choose whether to cut long words.
  4. Copy the wrapped text.

Common uses

  • Wrapping a plain text email at 72 characters
  • Reflowing text that has odd line breaks from a PDF or an old file
  • Fitting text to the width of a fixed width page or a code comment
  • Preparing lyrics or captions with a maximum line length

Frequently asked questions

Does it split words?

Only a word longer than the whole line, and only if the cut option is ticked. Otherwise the long word is left on a line of its own.

Are my paragraphs kept?

Yes. Empty lines stay as they are, so paragraphs remain separate. With the join option, each paragraph is made into a single flowing block first.

Why do some lines come out shorter than the width?

A line is broken at the last space that fits, so the next word moves to the following line and the current line is a little shorter.

How is width measured?

In characters as people see them, so an accented letter or an emoji counts as one, which matches how a fixed width display shows them for the most part.