Wrap Text
Set a maximum line length and instantly wrap your text to that width. Choose whether to break long words or move them to the next line, and optionally preserve existing paragraph breaks. Perfect for formatting code, emails, or plain text files. No signup, no uploads — everything runs right in your browser.
Why use this Wrap Text tool?
Long, unbroken lines of text are hard to read and may not display correctly in editors, email clients, or on the web. This tool inserts line breaks at a width you specify, making your text neat and professional. You can break words that exceed the limit or move them entirely to the next line. It's perfect for reformatting notes, code comments, or any plain text.
- Custom line width – set any width from 10 to 500 characters.
- Word break control – break long words to strictly fit the limit, or keep them whole for better readability.
- Paragraph preservation – treat double newlines as paragraph boundaries and wrap within each paragraph separately.
- Instant & private – all processing is local; your text never leaves your device.
How to wrap text (step‑by‑step)
1. Paste your text
Copy the text you want to wrap and drop it into the left box.
2. Set line width
Enter the maximum number of characters per line. Common values are 72 (for email) or 80 (for code).
3. Choose options
Enable "Break long words" to split words that exceed the width, or leave it off to move them to the next line. Toggle "Preserve paragraphs" to keep blank line separators.
4. Copy or download
The wrapped text appears on the right. Use the buttons to copy or download the result.
Example: before and after
| Input (long lines) | Output (wrapped at 40 chars, no word break) |
|---|---|
| The quick brown fox jumps over the lazy dog many times in a row without stopping for a break. | The quick brown fox jumps over the lazy dog many times in a row without stopping for a break. |
Common use cases
- Email formatting: Wrap plain text emails to 72 characters per line for better readability.
- Code comments: Reflow long comment blocks to a consistent width.
- Documentation: Format README files or manuals to a fixed column width.
- Terminal output: Ensure text fits within a specific terminal width.
- Plain text design: Create neatly aligned text for ASCII art or fixed‑width layouts.
Pro tips
- If you're wrapping text for email, a width of 72 characters is a widely accepted standard.
- When "Preserve paragraphs" is enabled, the tool treats blank lines as paragraph breaks and resets the line width for each paragraph.
- Enabling "Break long words" may split words mid‑syllable; use it only when strict width is required (e.g., code or data).
- After wrapping, you can use Whitespace Cleaner to remove any extra spaces that may have appeared.