convert

Wrap Text

Hard-wrap long lines at a fixed column width without breaking words, like a plain-text email formatter.

Runs on your deviceBatch readyPaste textNew

Paste or drop

Paste text below, or drop a file instead.

0 chars · 0 lines
…or drop a file
Drag and drop, or choose files
TXTMDCSVTSVLOGJSONXML+10

Choose an output

Hard-wrap long lines at a fixed column width without breaking words, like a plain-text email formatter.

Fine-tune

Optional — sensible defaults are already set.

About Wrap Text

Hard-wrap long lines so none goes over a set width, breaking at spaces so words stay whole. This is how plain-text email, commit messages, README files and fixed-width documents have traditionally been formatted. Lines already shorter than the width are left unchanged.

When it helps

  • Wrapping a git commit message body at 72 characters.
  • Formatting plain-text email or newsletter content at a fixed width.
  • Preparing text for terminals, printers or forms with a fixed column limit.
  • Keeping lines in Markdown or code comments at the length a style guide asks for.

Tips

  • 80 characters is the classic terminal width, and 72 is common for email and commit messages so that quoting or indenting still fits.
  • Turn on 'Split words longer than the width' for long URLs or hashes that would otherwise stick out past the limit.
  • Each existing line is wrapped separately, so paragraphs stay separate. To re-wrap text that is already broken unevenly, remove the line breaks first.
  • Extra spaces between words are collapsed on lines that get wrapped.

Good to know

Quick answers about wrap text in your browser.

Soft wrap is when an editor displays long lines across several rows without changing the file. Hard wrap inserts real line breaks into the text, so it keeps the same shape in any program.

Characters. The width is a count of visible characters per line, which lines up evenly only in a monospaced font.

Yes. There is no sign-up, no watermark and no limit on how many files you process.

No. Files are read and processed locally in your browser, so they never leave your device.

Related tools