Truncate Text

Cut text down to a maximum length. The default is 15 characters, taken from the right (the start of the string is kept). Switch to the left side to keep the end instead. You can add an indicator, such as `...`, which is included inside that length. An option can truncate each line separately.

This tool runs in your web browser: your files and text are processed on your device and are not uploaded to TidyKit servers. Free, no sign-up.

How to truncate

1. Paste the text. 2. Set the maximum length and choose the left or right side. 3. Optionally add an indicator. 4. Copy the result.

The sentence `The quick brown fox jumps` truncated on the right to 15 characters becomes `The quick brown`. With an indicator `...`, the visible text is shortened further so the three dots still fit inside those 15 characters.

Privacy and limits

Truncation runs in this tab. A negative length is rejected. If the indicator is longer than the truncated result, the tool reports an error. The default does not process line by line; turn that option on to shorten each line on its own.

Frequently asked questions

Does the indicator count toward the length?

Yes. The indicator is placed inside the maximum length, replacing the last (or first) characters of the cut string.

Is my text uploaded?

No.

What does “left” vs “right” mean?

Right (the default) keeps the beginning and cuts the end. Left keeps the end and cuts the beginning.

Can I truncate each line of a list?

Yes. Turn on the line-by-line option.

More Text Tools