Skip to content

Truncate text

Cut text down to a set number of characters or words and trim line edges.

Input
Output

Truncate text

Paste text and cut it down to a fixed length: a set number of characters or a set number of words. It is the quickest way to fit a meta description, keep a product blurb inside a CMS field limit, shorten a headline for a social post, or clip a long exported column down to preview snippets.

Choose whether the limit counts characters or words, then set the number. "Keep whole words" stops the cut landing in the middle of a word: the text backs off to the last complete word before the limit. Turn on the ellipsis and a single … is appended. In character mode it counts inside the limit, so a setting of 160 returns at most 160 characters, ellipsis included. Switch on per-line truncation to apply the limit to every line on its own, which turns a pasted column into equal-length snippets. A third mode cuts at a keyword instead of a length, matched exactly including letter case, and keeps the text before or after it.

Characters are counted as the glyphs you see, not as code units. An accented letter or an emoji counts once and is never split in half, even when it is built from several code points. Typical limits are roughly 50 to 60 characters for a title, 150 to 160 for a meta description and a few hundred for a social post, but platform rules change, so check the current limit where you publish.

If you only need to shorten text on screen, CSS text-overflow: ellipsis does that without changing the text. Use this tool when the stored text itself must be shorter. Two extra fields remove characters from the start or end of every line before the limit is applied.

Everything runs in your browser and nothing is uploaded.

FAQ

Does the ellipsis count toward the limit?
In character mode, yes. The … is included, so a limit of 160 returns at most 160 characters. That is what a meta description or a database field needs. In word mode it is simply added after the last kept word.
How are characters counted: does an emoji count as one?
Yes. Characters are counted as visible glyphs, so an emoji or an accented letter counts once and is never split in half. This can differ from code units, where one emoji may count as two or more.
Will it cut a word in half?
Not with "Keep whole words" enabled: the text backs off to the last full word before the limit. A single word longer than the whole limit is still cut, because there is no earlier boundary.
When should I use CSS text-overflow instead?
When the full text should stay in the page and only the display needs shortening, CSS text-overflow: ellipsis is the better tool. Use this one when the stored text, such as a meta description, a field value or a snippet, must itself be shorter.
Is my text uploaded anywhere?
No. Truncation runs entirely in your browser, so unpublished copy and customer data stay private.