Text Wrapper
Insert real line breaks so that no line is longer than the width you choose. Use it to format plain-text email, commit messages, README files or text for a terminal at 72 or 80 columns, and optionally indent the continuation lines or reflow paragraphs that were wrapped badly before.
Wrap Text at a Column Width
Wrapped text
How to Use the Text Wrapper
- Paste your text.
- Set the maximum line width and, if you like, an indent for wrapped lines.
- Keep Reflow paragraphs ticked to rewrap old line breaks, or untick it to keep every existing line break and only shorten long lines.
- Copy or download the wrapped text.
About This Tool
Developers writing commit messages and documentation, people sending plain-text email, and anyone preparing text for fixed-width displays or printouts.
Input: Plain text · Output: Wrapped plain text.
Features and Limitations
Features
- Breaks at spaces, so words stay whole whenever they fit.
- Hanging indent for continuation lines, counted inside the width.
- Paragraphs separated by blank lines are kept separate.
- Long words or URLs can be split, or left intact on their own line.
Limitations
- Width is counted in characters, so wide characters such as Chinese or emoji take more room on screen than the count suggests.
- Lists and tables are reflowed like ordinary paragraphs when reflow is on; untick it to protect their line breaks.
- Tabs count as one character.
- Results are computed in your browser; nothing you enter is sent to a server.
Example
With width 20, “The quick brown fox jumps over the lazy dog” becomes “The quick brown fox” / “jumps over the lazy” / “dog”.
Frequently Asked Questions
What width should I use?
72 is common for email and Git commit messages, 80 for terminals and code, and 60 to 66 is comfortable for reading.
What does reflow do?
It first joins the lines of each paragraph into one, then wraps again. Without it, existing line breaks stay and only lines that are too long are broken.
Does the indent count towards the width?
Yes. With width 72 and indent 4, a continuation line has 4 spaces and up to 68 characters of text.
What happens to a very long URL?
If Split words is ticked it is cut at the width. Untick it to keep the URL whole on a line of its own, even if that line is longer than the width.
Related Tools
More like this: all Case & Formatting tools, all Text & Writing tools or the TinySandy home page.