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?
What is a hard wrap?
How to use the text wrap & truncate
- 1Enter or paste your text.
- 2Choose the mode.
- 3Set the width.
- 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
Related tools
Add Line NumbersPrefix every line with a sequential number, with a custom start, separator and zero padding.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more.Columns to Lines ConverterSwitch between a delimited single line and one item per line, in either direction.Whitespace RemoverStrip extra spaces, tabs, blank lines and trailing whitespace from any text.ASCII Art Text GeneratorTurn words into large ASCII banner text for terminals, READMEs and code comments.ASCII Table FormatterTurn CSV or tab-separated text into an aligned plain-text, Markdown or box-drawing table.
Last updated
More text tools