Text Tools
Word Wrap
Wrap text to any column width in your browser. Choose 72, 80, 100, or custom columns. Preserve paragraphs, break long words, or reflow prose.
Quick presets
One click sets the column width and the long-word and reflow rules for the most common targets. Tweak any option below afterwards.
3 lines in the input exceed 80 characters and will be wrapped in the output.
The ruler above counts columns in fives and tens so you can verify that no line exceeds 80 characters.
Input lines
5
Input characters
735
Output lines
13
Longest output line
80
Target width
Pick anywhere between 10 and 500 columns. Common targets: 40 (mobile), 72 (RFC email), 80 (terminal), 100 (Markdown), 120 (modern code).
Output options
Long words
What to do when a single token (URL, hash, base64 string) is wider than the target column.
Rewrap mode
How to treat existing single newlines inside paragraphs. Blank lines between paragraphs are always preserved.
How the wrapper picks line breaks
The wrapper walks each paragraph word by word and emits a line break only when the next word would push the current line past the target column count. Whitespace inside the line is preserved exactly so that indented bullets and list markers keep their shape.
Blank lines in the input act as paragraph breaks. Any number of consecutive blank lines collapses to a single blank line in the output. This matches Markdown conventions and most plain-text formatting tools.
Long tokens (URLs, hashes, base64 strings, identifiers) are the only case where the column target can be violated. The Long words option on the left decides whether to slice the token at the target width or leave it whole on its own line.
Preserve mode wraps each existing line independently and leaves short lines untouched. Reflow mode joins lines inside a paragraph back together before wrapping, which is what you want when the source text was wrapped at a different width than the target.
How to use
- Paste the block of text you need wrapped into the input area on the left.
- Pick a preset for the most common widths, or drag the slider (or type into the box) to set any column count from 10 to 500.
- Choose Break long words to slice URLs and hashes at the column width, or Keep long words whole to leave them intact on a single line.
- Choose Preserve existing line breaks for code, addresses, and poetry, or Reflow paragraphs for prose that was wrapped at the wrong width.
- Read the wrapped result on the right with a column ruler above the output to verify no line exceeds your target width.
- Click Copy output to grab the wrapped text, or Replace with output to load it back into the input for another pass.
About this tool
Word Wrap rewraps a block of text so every output line fits inside a target column count. Choose a width from 10 to 500 characters with a slider and a numeric field, and the output updates as you type. Five one-click presets cover the most-searched targets: 72 columns for plain-text email bodies (the classic RFC 5322 width), 80 columns for terminals and code comments, 100 columns for GitHub Markdown prose, 160 columns for short posts and SMS bodies, and 40 columns for narrow mobile previews and thermal printer receipts. Two long-word modes decide what happens when a single token (a URL, a hash, a base64 string, an identifier) is wider than the target: Break long words slices the token at exactly the column width so even the longest URL fits, and Keep long words whole leaves the token intact on its own line so links remain clickable. Two rewrap modes decide how to treat existing single newlines: Preserve keeps each source line distinct and only splits lines that are too long (right for poetry, addresses, code, and already-formatted text), and Reflow collapses single newlines inside a paragraph back into spaces and rewraps the whole paragraph as one stream of words (right for prose that was wrapped at an awkward width and needs to be reflowed at a new one). Blank lines between paragraphs are always preserved as a single blank line in the output, regardless of how many were in the input. A monospaced column ruler appears above the output panel with marks every five and every ten columns so you can eyeball that no line overflows the target. Stat tiles below the panes report input lines, input characters, output lines, and the longest output line so you can confirm the result at a glance. Useful for fitting prose into 72-character email bodies, wrapping comment blocks for terminals at 80 columns, reformatting Markdown to a 100-column repo style, hard-wrapping long base64 or PEM blocks for legacy systems, reflowing paragraphs from PDFs that paste with awkward line breaks, and preparing text for any fixed-width display. Everything runs locally in your browser; the text you paste here is never uploaded.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
Text Cleaner
Remove duplicate lines, blank lines, extra spaces, tabs, and invisible characters.
Open tool
TextPrefix and Suffix Lines
Add text to the start or end of every line, with presets for SQL, JSON, and Markdown.
Open tool
DeveloperLine Ending Converter
Convert between LF, CRLF, and CR line endings with detection, counts, and download.
Open tool
TextAdd Line Numbers
Number every line with decimal, padded, Roman, alpha, hex, or Markdown styles.
Open tool
TextCharacter Counter
Detailed character, letter, number, space, and line counts.
Open tool
TextWord Counter
Live word, character, sentence, paragraph, and reading time stats.
Open tool