Text Wrap Utility

Wrap text at a custom character width and control line endings for consistent output.

Text Wrap Utility Runs locally · No sign-up
Wrapped text

About Text Wrap Utility

Plain text has no automatic wrapping, so long lines run off the screen, get mangled in email clients, or break hard-coded formatting in code and documentation. Wrapping text at a chosen width makes it readable everywhere it lands.

Set a maximum width and the tool breaks lines at word boundaries so words are never split in half, and a break-long-words option handles the rare case where a single word exceeds the width. Line endings can be LF, CRLF, or left as they are, which matters when moving text between systems.

Writers preparing plain-text emails, developers formatting code and documentation, and anyone publishing to systems with strict line-width rules benefit. It also makes long pasted text much easier to review.

How to Use

  1. Paste the text you want to wrap.
  2. Set the maximum line width in characters.
  3. Copy the wrapped text, ready for email or plain-text formatting.

Example

"The quick brown fox jumps over the lazy dog." wrapped at 20 chars "The quick brown fox\njumps over the lazy\ndog."

Words that exceed the 20-character limit wrap to the next line without splitting words in half.

FAQ

What is a good wrap width?

72 characters is the classic email standard, and 80 is common for code. This tool defaults to 72.

Will long words be split?

By default no — the tool wraps at the nearest word boundary. Enable the break-long-words option only if needed.

What line endings can I use?

You can output LF (Unix), CRLF (Windows), or keep the original endings, which matters when moving text between systems.

What width should I use for different contexts?

72 characters is the classic email convention, 80 suits code, and 100 works well for newer terminals and review tools, so match the width to where the text will be read.

Does wrapping preserve paragraph breaks?

Yes, blank lines between paragraphs are preserved, so the wrapped output keeps its original structure rather than becoming one continuous block of text that is hard to read.