Text Truncator

Free online text truncator. Cut text to N characters or words. Optional ellipsis, character or word mode. Instant preview with length stats.

Everything runs in your browser — your data is never sent to any server.

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

  1. Enter or paste the text you want to truncate
  2. Choose truncation mode: characters or words
  3. Set the limit and toggle ellipsis option
  4. 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