Shorten text to a character or word limit, with an ellipsis

Set a limit in characters or words and the tool cuts your text to fit, adds an ending such as …, and avoids splitting a word in the middle.

Live demo · real result from this tool
Count

Result

ToolsRift is a collection of free tools that run…

Processed on your device — nothing is uploaded.

How to use the Text Truncator

  1. Paste your text into Your text.
  2. Set Maximum length, and choose whether to Count Characters or Words.
  3. Pick an Ending: … (one character), … (three dots), None, or Custom…. With Custom…, type it in Custom ending.
  4. Keep Do not cut words in half ticked for clean cuts.
  5. Tick Truncate each line separately to shorten a list of lines one by one.
  6. Copy the result.

What it does and when to use it

Many fields have a hard length limit: product titles in a marketplace feed, push notifications, SMS previews, card layouts on a web page, database columns and preview text on a social post. Cutting by hand means counting characters and often leaves half a word dangling. The truncator does the count and the clean cut for you.

Use Characters when a system enforces a character limit. Use Words for teasers and summaries, such as “the first 25 words of each article”. With Truncate each line separately, a whole column of titles pasted from a spreadsheet can be cut in one go and pasted back.

To check the length of the result, use the Character Counter. If you want the full text kept but broken into lines of a set width, use the Text Wrapper instead. To make short values longer, for example to fill a fixed-width column, see the Text Padder.

How it works

Characters mode. If the text fits, it is returned as is. Otherwise the tool works out the room left after the ending (limit minus ending length) and keeps that many characters. Emoji and accented letters count as one character each. If the cut lands inside a word and the word option is on, the cut moves back to the last space. Trailing spaces and the marks . , ; : ! ? - are removed, then the ending is added.

Words mode. The text is split at spaces. If it has more words than the limit, the first words up to the limit are kept, joined by single spaces, and the ending is added.

All of this runs in your browser.

Worked examples

The first three use “Our spring sale ends on Friday, so order your new running shoes today.” (70 characters).

40 characters, whole words. The result is Our spring sale ends on Friday, so…, 35 characters. The next word, “order”, would not fit.

40 characters, words may be cut. With the word option off, the result is Our spring sale ends on Friday, so orde…, exactly 40 characters.

Six words, custom ending. Words mode, limit 6, ending “ [more]” gives Our spring sale ends on Friday, [more]. The comma after “Friday” stays in Words mode.

Each line separately. “Short title” and “A much longer product title that needs cutting” at 20 characters give “Short title” unchanged and A much longer….

Limits and tips

  • A single word longer than the limit, or a long link, is cut mid-word because there is no space to fall back to.
  • Without “Truncate each line separately”, line breaks count as characters.

Frequently asked questions

Does the ellipsis count toward the limit?
In Characters mode, yes. With a limit of 40 and the one-character …, the text is cut to at most 39 characters before the … is added, so the result never goes over 40. In Words mode the ending is added after the chosen number of words and is not counted.
Why is my result shorter than the limit?
Because "Do not cut words in half" moves the cut back to the end of the last whole word, and trailing spaces, commas, full stops and similar marks are removed before the ending. Untick the option to use every allowed character.
What is the difference between … and ...?
… is one character (the ellipsis, U+2026); ... is three full stops. Use … when every character counts, and ... where a system only accepts basic keyboard characters.
What if my text is already short enough?
It is returned unchanged, with no ending added.
Can I cut a list of titles at once?
Yes. Put one title per line and tick "Truncate each line separately". Each line is checked against the limit on its own, and short lines stay as they are.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close