<link rel="stylesheet" type="text/css" href="/mirawhite.css">

Wrap text at a character count

Paste a text and choose the line width: it is rewrapped without cutting words, ready for a plain-text email, a commit message or a fixed-width file. Free, no sign-up.

Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.

Wrap text

Options
For example “> ” to quote an email

How to use it

  1. Paste or type your text.
  2. Pick a width (40, 60, 72 or 80 characters) or type your own.
  3. Choose whether to keep paragraphs, justify the lines or add a prefix such as “>” to quote an email, then copy the result.

Example

Input

Thanks for your message. I checked the delivery dates with the warehouse this morning, and every order is on schedule for next week.

If anything changes, I will let you know right away.

Output

Thanks for your message. I checked the delivery dates with the warehouse
this morning, and every order is on schedule for next week.

If anything changes, I will let you know right away.

Good to know

  • By default, line breaks inside a paragraph are rewrapped: a list or an address on several lines is joined. Tick “Keep existing line breaks” to wrap each line on its own.
  • A word longer than the width (a long link, for example) is cut and flagged under the result. Untick “Cut words longer than the width” to keep it whole on its own line.
  • The width counts characters, prefix included. Non-breaking spaces (as in “10 km”) never become line breaks, and indentation at the start of a paragraph is removed.

Frequently asked questions

How do I wrap text in Excel?

Select the cells and click Home > Wrap Text: Excel shows the text on several lines inside the cell, but adds no real line break. Press Alt+Enter to insert one by hand. To break a long text into lines of a fixed number of characters, wrap it here and paste the result.

How many characters per line for a plain-text email?

Around 72 is the usual choice, and it is the default here: it leaves room for “> ” quote marks when someone replies. The email standard (RFC 5322) recommends no more than 78 characters per line.

How do I wrap a Git commit message?

The common convention is a summary line of about 50 characters, an empty line, then a body wrapped at 72 characters. Paste the body here with the 72 preset: paragraphs separated by an empty line stay apart.

How do I quote an email with “>” at the start of each line?

Type “> ” in “Line prefix”: every line starts with it, and the prefix is counted in the width, so a 72-character setting still gives lines of 72 characters at most.

What happens to words longer than the line width?

A word that does not fit on a line on its own, such as a long link, is cut at the width and the tool tells you how many words were cut. Untick “Cut words longer than the width” to keep such a link whole on its own line. Non-breaking spaces, as in “10 km”, never become line breaks.

← Back to all tools