The text changes in this tab
Wrap text to a column width
Words are moved onto the next line when the current line would pass the width.
A single word longer than the width stays unbroken.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
Wrap lines
The sample is fixed. It uses the same rule as the form.
- Input
- one two three four
- Width
- 12
- Result
- one two three four
How to use it
- 1Edit the text.
- 2Read the result beside it.
- 3Copy what you need.
Good to know
- The width counts characters, not screen pixels.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
The width counts characters, not screen pixels.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- Sort, trim, and count lines
Lists in a text box are awkward to clean by hand. This page trims, filters, sorts, or reverses the lines, and always shows the counts.
- Remove the shared indent
The shortest indent on a non-empty line is removed from every line.
- Collapse repeated spaces
Runs of spaces and tabs become one space. Space around a line break is removed.