What is Text Wrapper?

Text Wrapper reformats text to fit within a specified line width by inserting line breaks at the right positions. It breaks at word boundaries to keep text readable. Useful for formatting code comments, emails, README files, and terminal output.

Set a column width — 72 for git commit bodies, 80 for old terminals, 100 for code review comments — and the tool inserts soft line breaks at word boundaries. Long words can be hard-broken if you want, paragraph breaks are kept intact, and you can indent every wrapped continuation line so the output looks like a quoted email reply or formatted code comment.

How to use

  1. Paste the text you want to wrap in the input area.
  2. Set the desired line width (e.g., 80 characters for terminal output, 72 for git commits).
  3. Choose whether to break long words or preserve them, then copy the wrapped output.

When to use

  • Formatting a multi-paragraph git commit body so 'git log' renders cleanly in any terminal.
  • Wrapping a JSDoc or Python docstring so a code review reads naturally on a narrow diff column.
  • Reflowing a chunk of pasted prose to a fixed 80-column width before shipping an ASCII README.

Result

You have a long paragraph for a git commit message and need it wrapped at 72 characters. Paste the text, set width to 72 with word-boundary breaking, and get perfectly formatted commit body text.

FAQ

Why is 80 characters the default line width?
Eighty columns is the classic VT100 terminal width and still the default in tmux, vim, less, and most diff viewers. Code style guides (PEP 8, Linux kernel) often sit at 80 or 100. For commit messages, the convention is 72 so 'git log' indents render comfortably.
What does the 'break long words' option do?
Without it, words longer than the line width (URLs, long identifiers) just overflow and break the visual alignment. Switch it on to slice oversize words across multiple lines. Useful when you can't trust the input to contain only short words.
Does the tool keep paragraph breaks intact?
Yes — with 'preserve paragraphs' on, any blank line in the input is treated as a paragraph divider and stays unchanged in the output. Only the prose inside each paragraph is reflowed to the new width.
What does the indent-wrapped option produce?
Every continuation line of a wrapped paragraph gets two leading spaces, so the first line is flush left and the rest is indented. The effect mimics email quoting or hanging-indent bibliography style, useful for visually grouping wrapped output.
How is this different from manually pressing Enter at the end of lines?
Manual breaks land at arbitrary positions and create awkwardly short lines whenever you add or remove a word later. The tool always wraps at word boundaries based on a fixed width, so when you edit the source the output reflows cleanly.

Related Tools