Text Truncator Online

Truncate text by character count, word count, or byte size.

Limit:
Ellipsis:
INPUT0 Chars · 0 Words · 0 Bytes
OUTPUT
0 Chars · 0 Words · 0 Bytes

When to use Text Truncator

Shorten a text sample by characters, words or a byte budget.

How to use Text Truncator

Choose the truncation mode, limit and suffix. Compare input and output statistics before copying.

Worked example

Example — verified tool behavior
Character limit 3, suffix ...: abcdef → abc...

How the tool handles input

Character mode counts graphemes, so a combined emoji counts as one character in supported browsers. Word mode counts non-whitespace tokens. Byte mode trims at character boundaries and reserves space for the UTF-8 suffix.

Limitations

Character and word limits apply to the input prefix. The byte limit applies to the entire UTF-8 output, including the suffix. If the suffix alone is too large, only the portion that fits is used. Older browsers without grapheme segmentation count Unicode code points.

Frequently asked questions

Does a character limit include the suffix?

The suffix is appended after taking the requested number of input characters. The output counter includes the suffix.

What are the main limitations?

Character and word limits apply to the input prefix. The byte limit applies to the entire UTF-8 output, including the suffix. If the suffix alone is too large, only the portion that fits is used. Older browsers without grapheme segmentation count Unicode code points.