How to Truncate Text to a Character or Word Limit

How to Truncate Text to a Character or Word Limit

When you need to truncate text to fit a meta description, a page title, a card preview, or a tweet, the goal is simple: cut the text down to a set length, add an ellipsis if there is more, and avoid slicing a word in half. Here is how to do it cleanly in your browser.

Why truncate text at all

Plenty of places have hard or soft length limits, and overflowing them looks broken or gets cut off by something you do not control:

  • Meta descriptions: search engines display roughly 155 characters before trimming.
  • Page titles: around 60 characters show in results before they are cut.
  • Excerpts and previews: list views and cards often allow only a line or two.
  • Tweets and social posts: strict character limits per platform.

Truncating yourself, with a tidy ellipsis, keeps you in charge of where the cut happens.

Characters vs words

You can limit by characters or by words, and the right one depends on the target.

  • By characters is best when the limit is exact, like a 155-character meta description or a 60-character title.
  • By words is best for readable previews, where you want a clean snippet like the first 20 words rather than a precise byte count.

Either way, a good truncator stops on a word boundary so you do not end up with something like “introducti…” mid-word, and it adds an ellipsis only when text was actually removed.

How to truncate text in three steps

  1. Open the Text Truncator and paste your text.
  2. Choose a character or word limit, and turn on the ellipsis if you want one.
  3. Keep word-boundary trimming on so the cut lands between words, then copy the result.

It runs entirely in your browser, so nothing you paste is ever uploaded or stored on a server.

Getting the limit right

Set the limit a touch under the hard cap to leave room for the ellipsis. For a meta description, aim for about 150 characters before the ellipsis so the full string stays near 155. For titles, target roughly 57 so you stay under 60. Preview the result, and if a word lands awkwardly, nudge the limit by one or two and let the Text Truncator re-trim on the nearest word boundary.

Paste your text, set the limit, keep the cut on a word boundary, and copy a clean snippet that fits.

← All posts