Text Truncator - Trim Text to Length
Truncate text to a specific character or word limit online. Add custom ellipsis, truncate at word boundary. Free tool, no signup.
Three steps to get started
Set your limit
Enter the maximum number of characters or words. Toggle between character and word mode to match your use case.
Configure options
Set a custom ellipsis and enable word boundary truncation for cleaner, more readable excerpts.
Paste and copy
Paste your text into the input area and copy the truncated result instantly.
When and why to truncate text
Truncating text means cutting it to a maximum length and signalling that something was removed, usually with an ellipsis. Nearly every content-driven application does it: card UIs show the first sentence of an article, databases impose column length limits, and social platforms enforce hard character caps. Doing it well - cutting at a word boundary, keeping the ellipsis inside the budget - is the difference between an excerpt that reads deliberately and one that looks broken.
The naive approach fails in two visible ways. Cutting at an exact index lands mid-word, so "the quarterly financial statement" becomes "the quarterly finan…". And appending an ellipsis after reaching the limit pushes the result over it, which is precisely what a database VARCHAR(255) or a strict API validator will reject. This tool cuts at the last complete word before the boundary and counts the ellipsis toward the limit, so a 100-character cap with a three-character suffix trims the visible text at 97.
Character vs. word limits
Character limits are enforced by APIs, databases, and platforms. A meta description longer than 160 characters gets cut by Google; a tweet over 280 characters is rejected. Character counting is exact and non-negotiable in these contexts.
Word limits are typically a UX choice. Showing "the first 50 words" of a blog post in a card preview is a readable, language-neutral way to create consistent-length excerpts regardless of word length variation.
Common applications
- SEO meta descriptions - trim to 155–160 characters for optimal search snippet display
- Social media posts - prepare content within platform character limits
- Email subject lines - stay under 50 characters for mobile preview
- Card/tile UI components - create consistent excerpt lengths for content feeds
- Database VARCHAR fields - ensure text fits within schema constraints
When CSS ellipsis is the better answer
If the text is being displayed in a browser and the full version should remain available, truncate visually with text-overflow: ellipsis rather than cutting the string. CSS clips to the actual rendered width, so it adapts to the viewport and to whatever font the user has, and the complete text stays in the DOM for search engines, screen readers, and copy-paste. Cut the string itself only when the limit is real - an API field, a database column, a meta tag, or a plain-text channel like SMS, where no rendering layer exists to do the job.
One subtlety worth knowing if you are reimplementing this in code: character limits are rarely counted the way you assume. Twitter/X weights most CJK characters as two, and any emoji or accented character built from a surrogate pair or a combining sequence can consume several units in JavaScript's String.length while looking like one character. Slicing a string blindly at index n can split a surrogate pair and produce a replacement glyph - which is why cutting on a word boundary is safer in practice as well as prettier.
All truncation is computed locally in your browser. Nothing is transmitted or retained, so unpublished copy and internal descriptions are safe to paste.