DuckyTools
Home Text Text Truncator

Text Truncator Text

Cut text to a character or word limit without chopping a word in half.

Text Truncator is a free online tool that cut text to a character or word limit without chopping a word in half. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.

Price
Free — no account, no quota, no watermark
Category
Text
Where it runs
In your browser, on your device
Files uploaded
None
Technology
plain JavaScript
Settings
5
Works offline
Yes, after the first visit

About Text Truncator

The limits worth knowing are specific. A meta description is cut at roughly 155–160 characters on desktop and less on mobile. A title tag is measured in pixels rather than characters — about 580 — which works out near 60 characters for typical text but fewer if it is full of wide letters. Cutting mid-word is the mistake: it reads as broken rather than deliberately shortened, so truncation always falls back to the previous word boundary here.

How to use it

  1. Paste the text you want to run through text truncator.
  2. Set limit by, limit and append when truncated and the remaining options.

The 5 settings

SettingWhat it doesDefault
Limit byChoose from 3: Characters, Words, Sentences.Characters
LimitRange 1–5000.155
Append when truncatedFree text.
Truncate each line separatelyOn or off. Off by default.Off
Never cut a word in halfOn or off. On by default.On

Under the hood

Runs onplain JavaScript — runs the whole thing
ControlsLimit by, Limit, Append when truncated, Truncate each line separately, Never cut a word in half

Questions

Does the ellipsis count toward the limit?

Yes. The cut reserves room for whatever suffix you set, so the total output respects the number you gave. A tool that appends after truncating quietly overshoots by one to three characters, which matters when the limit is a hard one.

What limit should I use for a meta description?

155 is the usual advice for desktop. Bear in mind search engines rewrite descriptions most of the time anyway, and the front-loaded first 120 characters do the work regardless of where the cut lands.

Why truncate by sentences?

Because an excerpt that ends mid-thought reads badly however cleanly it was cut. Taking the first two sentences gives a summary that stands on its own, which is what a preview or a card needs.