InputTestHub

Text Truncator

Cuts text to an exact character or word limit on a clean word boundary and adds an ellipsis.

Text Nothing uploaded No sign-up Free, unlimited
Text tool
Paste something on the left to see the result.
In short Truncating text cuts it to a character or word limit at a clean word boundary and adds an ellipsis, which is the difference between a usable excerpt and one that ends mid-word. Cutting at exactly 155 characters gives you something ending "…the conve"; backing up to the last complete word gives "…the" and reads properly. The everyday use is meta descriptions and social previews, where the limits are real and the truncation will happen whether you do it or not — a meta description over about 155 characters is cut by the search engine, and it cuts wherever it lands. Doing it yourself means choosing where. The same applies to card titles, list previews and anything with a fixed height. Two details. The ellipsis counts toward the limit, so a 155-character budget gives about 152 characters of text plus the ellipsis, and this tool accounts for it. And a single ellipsis character is one character while three full stops are three, which matters when the budget is tight and is a reason to prefer the real character.

How to use the Text Truncator

  1. Paste your text into the input box on the left.
  2. Adjust the options above the box if you need a different behaviour.
  3. The converted text appears on the right; press Copy to put it on your clipboard.

About the Text Truncator

The Text Truncator cuts text to an exact character or word limit on a clean word boundary and adds an ellipsis. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Trimming meta descriptions to 155 characters.
  • Creating excerpt text for a card layout.
  • Fitting copy into a fixed database column.

Frequently asked questions

Is the Text Truncator free, or is there a paid tier?
Free, unlimited, and no email address required. You can use it a hundred times a day and nothing changes.
Can you see what I put into this utility?
No. The Text Truncator runs entirely in your browser using JavaScript. Your input never reaches inputtesthub.com or any third party — open your browser's Network tab while you use it and you will see no request go out.
When would I actually need the Text Truncator?
The jobs it is built for: trimming meta descriptions to 155 characters. Creating excerpt text for a card layout. Fitting copy into a fixed database column. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Is there an app version?
Yes. The page is responsive and the utility works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related text tools

All 92
01

Case Converter

Converts text between twelve cases: UPPER, lower, Title, Sentence, camelCase, PascalCase…

02

Uppercase Converter

Converts any text to UPPERCASE instantly, keeping numbers, punctuation and line breaks exactly…

03

Lowercase Converter

Converts any text to lowercase, including text that was typed with Caps Lock on by mistake.

04

Title Case Converter

Converts headings to proper Title Case using AP and Chicago rules, keeping short words like…

05

Sentence Case Converter

Rewrites text in sentence case: first letter of each sentence capitalised, the rest lowercase…

06

camelCase Converter

Turns any phrase into camelCase for JavaScript, Java and JSON keys, stripping spaces, hyphens…

07

PascalCase Converter

Converts phrases to PascalCase (UpperCamelCase) for class names, React components and type…

08

snake_case Converter

Converts text to snake_case for Python variables, database columns and file names.

09

kebab-case Converter

Converts text to kebab-case for URLs, CSS class names and HTML attributes.

10

CONSTANT_CASE Converter

Converts text to SCREAMING_SNAKE_CASE for environment variables, constants and configuration…