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
- Base64 Encoder/Decoder – Encode or decode data using Base64.
- Bcrypt – Hash strings with Bcrypt
- Text Censor – Quickly mask bad words or replace them with alternative words.
- Create palindrome – Create text that reads the same forward and backward
- Email Extractor – Extract email addresses from text
- Extract substring – Extract a portion of text between specified positions
- Hidden Character Detector – Find hidden Unicode characters in text
- Join Text – Join text elements with a specified separator
- Palindrome – Check if text reads the same forward and backward
- Password Generator – Generate secure random passwords with custom options
- Text Quoter – Add quotes around text with various styles
- Randomize case – Randomize the case of letters in text
- Remove duplicate lines – Quickly delete all repeated lines from text
- Repeat Text – Repeat text multiple times
- Text Replacer – Quickly replace text in your content
- Reverse – Reverse any text character by character
- ROT13 Encoder/Decoder – Encode or decode text using ROT13 cipher.
- Rotate Text – Shift characters in text by position.
- Slug Generator – Generate URL-friendly slugs from text.
- Split – Split text into multiple parts using a separator
- Text Statistics – Get statistics about your text
- Table Text Converter – Convert tables between Markdown, CSV, HTML, MySQL, and JSON
- Compare Texts – Compare two texts and spot differences instantly
- String To morse – Quickly encode text to morse
- Unicode Encoder / Decoder – Encode or decode text using Unicode escape sequences.
- Convert to Uppercase – Convert text to uppercase
- String URL decoder – Quickly URL-unescape a string.
- URL Editor – Inspect and edit URL components and query parameters.
- String URL encoder – Quickly URL-escape a string.