Truncate Text
Shorten text to a character or word limit, with an optional ellipsis.
Browser onlyYour data never leaves this device.
Runs entirely in your browser. Your text never leaves this device and is never stored.
Details: Privacy policy
Input
Updates live. Nothing is stored.
Result
No text yet.
Paste text above to start.
Truncate Text shortens a string to a maximum length and optionally appends an ellipsis, without touching the beginning. It is the precise version of cutting a paragraph by eye: choose characters or words, set the limit, and the page returns the prefix that fits. Character mode counts code points, so an emoji or a CJK glyph is one unit; word mode splits on whitespace and rejoins the kept words with single spaces, which means the original spacing is not preserved. The ellipsis is added only when something was actually removed, so a short string comes back unchanged rather than gaining a misleading marker. The result reports whether truncation happened and the original length. It is the tool for fitting a summary into a fixed field, producing a preview from a long description, and checking how much of a title survives a character limit. A character limit and a byte limit are not the same: a string of emoji can fit a hundred-character field and still exceed a hundred bytes. The page reports the original length so the cost of the cut is visible, and it leaves text shorter than the limit alone rather than adding an ellipsis to something that was never shortened. A word limit is friendlier to prose because it never leaves a half-word, while a character limit is exact; choose by what the destination actually enforces, not by which number looks smaller. The ellipsis counts toward the destination's limit in most systems, so a field of exactly N characters may need N minus one plus the marker. The original is never modified; the result is a new string.
How to use Truncate Text
- Paste the text and set the limit.
- Choose characters or words and whether to add an ellipsis.
- Copy the result or clear to start over.
What you get
- The truncated prefix, with an optional ellipsis.
- Whether anything was removed and the original length.
- Code-point-accurate character counts or whitespace-normalised words.
When to use Truncate Text
- Fit a summary into a field with a hard character limit.
- Create a preview from a long description.
- Check how much of a title survives a platform limit.
Frequently asked questions about Truncate Text
Does it cut from the start or the middle?
Neither. It keeps a prefix and removes the end only.
Is the ellipsis always added?
No. It is added only when the text was actually truncated, so short input is unchanged.
Does word mode keep my spacing?
No. Kept words are rejoined with single spaces, so runs of whitespace collapse.
Is my text uploaded?
No. Truncation runs in your browser; nothing is sent to a server or stored.
Tools related to Truncate Text
- Word Wrap
Wrap text at a chosen character width, breaking at spaces or inside long words.
- Justify Text — wrap text to a width and distribute spaces so both
Wrap text to a width and distribute spaces so both edges line up.
- Add Line Numbers
Prefix every line with a counter: custom start, step, and separator.
- Case Converter — switch text between uppercase
Switch text between uppercase, lowercase, title, and sentence case.
- Split Text into Chunks
Cut text into fixed-size chunks of characters, separated by a visible divider.
- Strip HTML Tags — remove HTML tags and comments
Remove HTML tags and comments, optionally dropping scripts and decoding entities.
⚡Embed Truncate Text on Your Site & Get Badge↓
Embed this in-browser tool into any blog, documentation, or dashboard. Includes an optional dofollow backlink badge to credit Tools Hub.
<iframe src="https://salaq.com/embed/text/truncate-text" title="Truncate Text — Tools Hub" width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden;max-width:100%;" loading="lazy"></iframe>
<p style="font-size:12px;color:#6b7280;margin-top:6px;font-family:system-ui,-apple-system,sans-serif;">Powered by <a href="https://salaq.com/tools/text/truncate-text" target="_blank" rel="noopener" style="color:#2563eb;text-decoration:underline;">Truncate Text on Tools Hub</a></p>Feedback
Send feedback about this tool (placeholder — feedback collection is not wired up yet).