About the Text Wrapper
Hard-wrap text at a chosen line width, such as 72 or 80 characters, without splitting words. Paragraphs can be re-flowed and long words optionally broken.
Key features
- Wrap text at any line width (10–500 characters)
- Never splits words unless you ask it to
- Re-flow paragraphs that were already wrapped
- Keeps blank lines between paragraphs
- Optional hard break for very long words or URLs
- Copy or download the result
Hard-wrap text at a fixed width
Some places expect text with real line breaks at a fixed width: Git commit messages, plain-text emails, code comments, README files, terminal output and fixed-width forms. The wrapper inserts line breaks between words so no line exceeds your chosen width.
Example (width 30)
Before:
Plain-text emails and commit messages are easier to read when lines are kept short.
After:
Plain-text emails and commit
messages are easier to read
when lines are kept short.
Common widths
| Use | Width |
|---|---|
| Git commit body | 72 |
| Git commit subject | 50 |
| Plain-text email (RFC 5322 recommends) | 78 |
| Python (PEP 8) code and comments | 79 (docstrings 72) |
| Terminal default | 80 |
| Comfortable reading | 60–75 |
Soft wrap vs hard wrap
- Soft wrap is what editors do on screen: lines are displayed wrapped but the file has no line breaks.
- Hard wrap (this tool) inserts real line breaks, so the text stays wrapped wherever you paste it.
Related tools
Undo wrapping with Remove Line Breaks, split text into chunks with the Text Splitter, or count characters per line with the Character Counter.
How to use the Text Wrapper
- Type or paste your text into the input box.
- Choose the options you want.
- The result updates instantly as you type.
- Copy the output or download it as a .txt file.