Text Line Wrapper
Automatically wrap long lines of text at a specific character length for better readability and formatting.
Runs in your browser Your input never leaves your device.
Report a problem with this tool
About this tool
This tool breaks long lines so none is longer than the width you set (80 characters by default, minimum 10). It wraps at spaces, so words are never split. Lines that already fit are left alone, and existing line breaks are kept, so each paragraph or line is wrapped on its own. A word longer than the width is kept whole on a line of its own. In lines that are wrapped, runs of spaces are reduced to a single space, so leading indentation on a wrapped line is not kept. It is useful for emails, code comments and plain-text files. Everything runs in your browser.
How to use it
- Paste your text.
- Set the Width in characters.
- Read the wrapped text in the output.
- Press Copy to use it.
Example
Width set to 20.
The quick brown fox jumps over the lazy dog again and again.
The quick brown fox jumps over the lazy dog again and again.
Common problems
- Very long words exceed the width
- Words are never broken. A long URL or word stays on one line even if it is longer than the width.
- Indentation is lost on wrapped lines
- Lines that need wrapping are rebuilt from their words, so leading spaces and runs of spaces are reduced. Lines that already fit keep their spacing.
- Width below 10 is ignored
- The smallest width the tool uses is 10 characters.