Text Tools Runs in your browser Free · no account

Text Wrap

The text wrapper breaks text into lines no longer than a width you choose, splitting only at spaces so words stay intact. Blank lines between paragraphs are preserved and each block is rewrapped independently. An optional prefix on every line produces quoted email replies or block comments in one step.

Options
Text 0 characters
Wrapped

Your result will appear here.

Not sure where to start? Use Load example.

Results update automatically and are calculated on your device. Nothing you type is sent to a server.

Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.

How to use the Text Wrap

  1. Paste the text you want to rewrap.
  2. Set the width — 72 or 80 is the convention for plain-text email and code comments.
  3. Add a prefix if you want quoted lines or a comment block.
  4. Copy or download the result.

Example

Input
The quick brown fox jumps over the lazy dog.
Output
The quick brown fox jumps
over the lazy dog.

Common use cases

  • Formatting a plain-text email or a commit message to 72 characters.
  • Turning a paragraph into a block comment with // or * on every line.
  • Quoting text for a reply by prefixing each line with a chevron.
  • Fitting text into a fixed-width terminal or a legacy system.

Limitations and things to watch for

  • Words are never split. A URL or identifier longer than the width is left on its own line rather than broken, because a broken URL is worse than a long line. The note says when this happened.
  • The prefix counts towards the width, so a two-character prefix at width 72 leaves 70 characters of text.
  • Existing line breaks inside a paragraph are removed and the paragraph is rewrapped. Blank lines between paragraphs are kept, so structure survives.
  • This wraps by character count, not display width. Wide CJK characters occupy two columns in a terminal and are counted as one here.

Frequently asked questions

What width should I use?
Seventy-two is the convention for plain-text email and Git commit messages, leaving room for quote markers on replies. Eighty matches the traditional terminal. For code comments, match whatever line length your project already uses.
What happens to a word longer than the width?
It stays on a line of its own, unbroken. Splitting a long URL or identifier across lines usually breaks it for whoever copies it, so a single over-long line is the lesser problem. The note tells you when this occurred.
Are my paragraphs preserved?
Yes. Blank lines separate blocks, and each block is rewrapped on its own. Single line breaks inside a paragraph are treated as soft and removed, which is what makes rewrapping useful.
Can I use this for code comments?
Yes — set the prefix to // or * and the width to your project's line length. Note the prefix counts towards the width, so the text itself gets the remainder.

Share this tool