Text Truncator
Free online text truncator. Cut text to N characters or words. Optional ellipsis, character or word mode. Instant preview with length stats.
Why Use Our Text Truncator?
Our text truncator helps you shorten text to a specific length, whether measured in characters or words. Perfect for creating previews, fitting text into limited UI spaces, generating meta descriptions, or preparing social media posts with character limits. The optional ellipsis makes truncated text visually clear.
Key Features
- Truncate by character count or word count
- Configurable limit with instant preview
- Optional ellipsis (...) to indicate truncation
- Live statistics showing original vs. result length
- Truncation indicator badge for clear feedback
How to Use This Tool
- Enter or paste the text you want to truncate
- Choose truncation mode: characters or words
- Set the limit and toggle ellipsis option
- Copy the truncated text for your use
Technical Details
Character truncation uses String.slice() for efficient substring extraction. Word truncation preserves whitespace segments (spaces, tabs) between words while counting only actual words, ensuring the output maintains proper formatting. The ellipsis is appended only when actual truncation occurs, not when the text is shorter than the limit.
Frequently Asked Questions
Does word truncation preserve spacing?
Yes, word truncation preserves the original spacing between words, including multiple spaces and tabs, while counting only actual words toward the limit.
Is the ellipsis counted in the character limit?
No, the ellipsis (...) is added after truncation and doesn't count toward your specified character limit.
What happens if my text is shorter than the limit?
If your text is already within the specified limit, it remains unchanged and no ellipsis is added.
Related tools
Text Compare
Compare two texts side by side and find differences with highlighted word-by-word diff
Word Counter
Count words, characters, sentences, paragraphs and estimate reading time instantly
Case Converter
Convert text to UPPER CASE, lower case, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case
Text Repeater
Repeat text multiple times with customizable separator options
Remove Duplicates
Remove duplicate lines from text with options for case sensitivity, trimming, and order preservation
Find & Replace
Find and replace text with support for case sensitivity, whole word matching, and regular expressions