Skip to content

Add Line Breaks

Wrap text to a set width, or break it after every sentence, without splitting words.

Runs in your browserNo account neededFree
Loading tool…

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

  1. Paste your text.
  2. Choose the options.
  3. 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