Text Line Wrapper

Hard-wrap text to a fixed character width without splitting words, for plain-text emails, commit messages and fixed-width output.

187Longest line in
3Lines out

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Text Line Wrapper does

Use this text line wrapper to hard-wrap text to a fixed character width without splitting words, for plain-text emails, commit messages and fixed-width output. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for formatting a git commit message body to convention. There are more free online tools on FreeToolStation.org.

How to use it

  1. Paste the text you want wrapped.
  2. Set the column width — 72 is the plain-text email convention, 50 is typical for git commit bodies.
  3. Words are never split; a word longer than the width gets its own line.
  4. Copy the wrapped text.

How it works

Wrapping is greedy: words are added to a line until the next one would exceed the width, then a new line starts. Paragraph breaks are preserved, so blank lines between paragraphs survive the operation.

The 72-character convention for email comes from leaving room for quote markers as a message is replied to repeatedly; 80 is the traditional terminal width; git commit bodies are conventionally wrapped at 72 with a 50-character subject line.

When to use it

  • Formatting a git commit message body to convention.
  • Preparing a plain-text email that will display consistently.
  • Wrapping a README or changelog entry to a fixed width.

Common mistakes to avoid

  • Wrapping code or Markdown tables, where a hard line break changes the meaning.
  • Wrapping text that will be displayed in a responsive layout, which does its own wrapping and will look ragged.

Frequently asked questions

What width should I use?

72 for plain-text email and git commit bodies, 80 for terminal output and traditional source files. For anything displayed in a browser, do not hard-wrap at all — let the layout handle it.

Does it break long words?

No. A word longer than the wrap width is placed on its own line and allowed to overflow, which is almost always preferable to splitting a URL or identifier in half.

Related tools

See all text & writing tools →