Skip to content
Convertto

Text Wrap & Truncate

Hard-wrap text at a line width, or truncate it to a maximum length.

To wrap or truncate text, paste it and choose a mode. Wrapping breaks lines at word boundaries so no word is split, truncation cuts at a word boundary and adds an ellipsis, and unwrapping joins soft-wrapped lines while preserving real paragraph breaks.

Runs in your browser
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

What line width should I wrap to?

72 characters for email and commit messages, 80 for plain-text files and code comments. Both come from terminal widths and remain the convention because lines much longer than that are measurably harder to read.

What is a hard wrap?

Inserting real newline characters at the wrap point, rather than letting the display wrap the text. Hard wrapping fixes the layout permanently, which is right for email and wrong for anything that will be shown at different widths.

How to use the text wrap & truncate

  1. 1Enter or paste your text.
  2. 2Choose the mode.
  3. 3Set the width.
  4. 4The result appears immediately — copy or download it.

Embed this tool

Put the working text wrap & truncate on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More text tools