Word Wrap — Hard Wrap Text at N Columns
Hard-wrap text at 72, 80 or any column width with indent, hanging indent and comment prefixes. Rewrap paragraphs for commit messages, email and code.
🔒 Runs entirely in your browser — nothing is uploadedWrap text at a fixed column width
Plain-text formats still have line-length conventions. Git commit message bodies and plain-text email are traditionally wrapped at 72 characters, terminals and many code style guides use 80, and README files, docstrings and configuration comments are easier to read when they do not run off the screen. This word wrap tool inserts real line breaks so that no line is longer than the width you choose, breaking only between words.
Type any width or use the quick buttons for 50, 72, 80 and 100 columns. With "Reflow paragraphs" enabled, the tool first joins the lines inside each paragraph and then wraps them again, so text that was previously wrapped at another width comes out evenly. Blank lines are kept, so paragraphs stay separate. Turn reflow off to wrap each existing line on its own, which preserves short lines such as list items and headings.
Indents, hanging indents and comment prefixes
The indent adds spaces to the start of every output line and counts toward the width, so a 72-column wrap with a 4-space indent still produces lines of at most 72 characters. A hanging indent adds extra spaces to every line except the first, which is the classic layout for bibliography entries, command-line help text and numbered list items.
Choose a prefix to turn the wrapped text into an email quote (> ) or a code comment (# or // ). The prefix is written at the start of each line after the indent, so you can paste the result straight into source code or a reply. Long words such as URLs are never split unless you tick "Break words longer than the width"; the status line warns you when a word is wider than the limit.
Runs in your browser
All wrapping happens locally. Your text is not uploaded, and the result is ready to copy as soon as you type.
How to use
- Paste your textAdd paragraphs, a commit message, a comment block or any long lines.
- Set the widthType a column count or click 50, 72, 80 or 100.
- Add indentationChoose an indent, a hanging indent, and optionally a quote or comment prefix.
- Copy the wrapped textThe status line confirms the number of lines and the longest line length.