Truncate text to a maximum character length with optional ellipsis. Preview the result before applying and adjust the limit to fit your display requirements.
This example demonstrates text truncation from String Tools, pre-loaded with a long sentence and a 50-character limit. Paste any text, set a maximum length, and see the truncated result instantly.
The tool counts characters from the beginning of your input up to the specified maximum length. Everything beyond that limit is removed and replaced with an ellipsis. The original text is not modified; the truncated version appears in the output area.
Character counting includes all visible characters: letters, digits, spaces, and punctuation. Each character, regardless of its byte size in Unicode, counts as one. A space is one character, an emoji is one character (though it may render as two columns in a monospace font).
Without word-boundary mode, truncation is precise: if the limit is 50 characters, you get exactly 50 characters. With word-boundary mode enabled, the tool scans backward from the limit to find the last space, then truncates there. This produces cleaner output but slightly shorter results.
Text truncation is essential for:
The tool operates on character count for precision. To truncate by words, count your words manually and set the character limit to roughly the average word length times the desired word count. For example, 20 words at an average of 5 characters each is approximately 100 characters.
Yes. Newlines count as characters. If your text spans multiple lines and the character limit falls within a line, that line is truncated. Lines beyond the limit are completely removed.
The tool shows both the input and the truncated output. The full original text remains in the input area so you can adjust the limit and see different truncation lengths.
Nothing you paste leaves this tab. Every tool runs entirely in your browser — no upload, no server, no account.