⚡ Text · Client-side · No data sent to server

Text Truncator

Cut text to a set number of characters or words, with an optional word-boundary break and a custom suffix. Runs in your browser, so your text stays on your machine.

Limit
Unit
Suffix
Input
Truncated output
Waiting for input… ✓ Copied!
Private by design. The text is truncated in your browser with plain JavaScript. Nothing is uploaded or logged.

About the Text Truncator

Text Truncator cuts text down to a set length, measured in characters or words, and adds a suffix such as an ellipsis to mark where it was trimmed. It is built for WordPress users and writers who need meta descriptions, title tags, post excerpts, and social card text to fit a fixed length without breaking words apart. Everything runs in your browser with plain JavaScript, so your text is never uploaded or stored.

How it works

  1. Paste or type your text into the input area.
  2. Set the limit, pick Characters or Words, and edit the suffix if you want something other than an ellipsis.
  3. Turn on 'Do not cut words' to trim at the nearest word boundary instead of mid-word.
  4. Read the truncated output and its length, then click Copy to grab the result.

Features

  • Truncate by character count or by word count.
  • Word-boundary mode that trims at the last full word so no word is split.
  • Editable suffix, defaulting to an ellipsis, appended only when the text is actually cut.
  • Live output and length readout that update as you type or change settings.
  • One-click copy of the truncated text.

Frequently asked questions

Is my text uploaded anywhere?

No. The text is truncated in your browser with plain JavaScript. Nothing is sent to a server or stored.

What does 'Do not cut words' do?

When on, the tool trims back to the last full word before the limit so no word is split in the middle. When off, it cuts at the exact character count even if that falls inside a word. This setting applies to character mode; word mode always keeps whole words.

Is the suffix counted in the limit?

No. The limit applies to the text itself. The suffix is added after the cut, so the final output can be a few characters longer than the limit. The length readout shows the full output length, including the suffix.

When is the suffix added?

Only when the text is longer than the limit and gets cut. If your text already fits within the limit, it is returned unchanged with no suffix.

How are words counted?

Words are split on whitespace, so runs of spaces, tabs, and line breaks all count as one separator. A single block of text with no spaces counts as one word.