Text Truncator
Free online text truncator tool, no installation required
About Text Truncator
Text Truncator shortens your text to a maximum character length and appends a suffix (such as "...") when truncation occurs. If the input is already within the limit, it is returned unchanged.
How to Use
1. Set Max Length (the character limit, default 100) and Suffix (the string appended after truncation, default "..."). 2. Paste your text into the Input area. 3. Click the Truncate button to produce the output. 4. Review the result, including a before/after character count (for example 156 -> 103 characters), and use Copy to copy it.
Truncation Logic
When input.length is less than or equal to Max Length, the output equals the input exactly, with no suffix added. When input.length exceeds Max Length, the output is the first Max Length characters of the input followed by the Suffix verbatim. The suffix counts toward the visible output length but does not reduce the slice, so the final string length is Max Length plus the suffix length. A multi-character or empty suffix is accepted.
▶What happens when my text is shorter than Max Length?
▶Does the suffix count against the Max Length?
▶Can I use a custom suffix or no suffix at all?
▶Does truncation run automatically as I type?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee