Add Line Breaks
Wrap text to a set width, or break it after every sentence, without splitting words.
Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.
How to use the add line breaks
- Paste your text.
- Choose the options.
- Copy the result.
About this tool
Hard-wrapping inserts real line breaks rather than letting the display wrap the text. That matters for places that do not wrap for you: plain-text email, code comments, commit messages, and subtitle files.
Words are never split. If a single word is longer than the width, it goes on its own line and overhangs, which is the conventional behaviour and preferable to breaking a URL in half where the break might be mistaken for part of the address.
Breaking after each sentence is the other useful mode, and it is worth knowing about: keeping one sentence per line makes version control diffs readable, because editing one sentence changes one line rather than reflowing the whole paragraph.
Common uses
- Wrapping a commit message body to 72 characters.
- Preparing plain-text email that will not wrap itself.
- One sentence per line, so diffs stay readable.
Frequently asked questions
- What width should I use?
- 72 characters for commit message bodies and plain-text email, 80 for code comments. Those are conventions rather than rules.
- Will it split long words?
- No. A word longer than the width goes on its own line and overhangs, which avoids breaking a URL in a way that looks like part of the address.
- Why break after each sentence?
- It keeps version control diffs readable — editing one sentence changes one line instead of reflowing the paragraph.
Related tools
Text Cleaner
Strip extra spaces, blank lines, line breaks, smart quotes and unwanted characters.
Remove Duplicate Lines
Remove repeated lines from a list, with options to sort, trim whitespace and ignore case.
Word Counter
Count words, characters, sentences, paragraphs and estimated reading time as you type.
Sort Lines
Sort lines alphabetically, numerically, by length, in reverse or shuffled.