Word Wrap & Line Numbers
Wrap text to a set line width between 10 and 500 characters and optionally add formatted line numbers.
Run tool
This online tool formats plain text by wrapping long paragraphs to a specified character width and optionally prepending aligned line numbers to every line. When you paste text into the input field, the tool evaluates each line individually. Existing line breaks are preserved, while longer lines are wrapped across word boundaries so words are not broken apart unnecessarily. You can adjust the target column width between 10 and 500 characters, with 80 characters set as the standard default. If an individual word exceeds the selected line width, it remains unbroken on its own line to prevent awkward hyphenation or corrupted tokens like URLs and code variables. Enabling line numbers prefixes each output line with a right-aligned number in a four-space column followed by two spaces, making it straightforward to review drafts, inspect scripts, or prepare plaintext documentation. Alongside the wrapped output, you can view line counts for both the original input and the final formatted text.
Instructions
- Enter or paste your text into the Text field.
- Set the desired maximum line width between 10 and 500 characters, or leave it at the default of 80.
- Check Add Line Numbers if you want aligned numbers prepended to each line.
- Run the tool to view the formatted text along with original and resulting line counts.
Examples
- Wrap a continuous paragraph of text to a maximum width of 40 characters per line without adding line numbers.
- Format a list of configuration instructions at 60 characters per line with line numbers enabled for team reference.
FAQ
What happens if a single word is longer than the selected width?
Words longer than the specified width remain intact on their own line without being split across hyphens.
What is the allowed range for the line width setting?
The line width accepts values from 10 to 500 characters. If left empty, it defaults to 80 characters.
How are line numbers formatted when enabled?
Each line receives a 1-based number aligned within a 4-character column followed by 2 spaces.