Repeat Text
Repeat every line a set number of times, in place.
Trim whitespace, or cut every line down to a maximum length.
Trim Text does both things the word means: clearing the leading and trailing whitespace that makes identical-looking values fail to match, and cutting lines down to a maximum character or word count at a word boundary. Both can run in the same pass.
Trim means two different things and this tool does both. The first is removing the whitespace at the ends of a string, which is the invisible fault that makes two identical-looking values fail to match. The second is cutting text down to a maximum length, which is what a meta description, a product title or a database column needs.
Whitespace trimming works on each line or on the whole text, and covers the invisible Unicode spaces as well as ordinary ones. Length trimming cuts to a character or word count and can step back to the last whole word rather than ending mid-word, with an ellipsis appended if you want one. Both can run in the same pass, which is usually what messy data actually needs.
Non-breaking and zero-width spaces are cleared alongside ordinary ones, which a plain trim misses.
Cuts step back to the last whole word, unless that would throw away too much of the allowance.
The text is shortened enough that an appended ellipsis still fits under the cap.
Trim every row of a column independently, or treat the whole block as one value.
How many lines were truncated and how many characters were trimmed away.
A list of values, a set of titles or a document.
Clear leading and trailing spaces from each line, including the invisible ones.
Cut each line to a character or word count, breaking at a word boundary rather than mid-word.
Append … to any line that was actually cut, so truncation is visible.
Because comparisons are exact. "apple " and "apple" are different strings, so a lookup fails, a join misses rows and a duplicate check does not spot the duplicate — all because of a character you cannot see.
Yes. Non-breaking spaces, zero-width spaces and the other Unicode whitespace characters are trimmed alongside ordinary spaces and tabs, which a plain trim function usually misses.
The text is cut at the limit, then stepped back to the last complete word unless that would remove more than about a third of the allowance. That avoids both mid-word cuts and absurdly short results.
Yes, when you switch that on. The text is cut short enough that the ellipsis fits inside the limit, which is what a meta description or a database column requires.
What people who use the Trim Text think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Trim Text. It takes half a minute and no account.
Write the first reviewRepeat every line a set number of times, in place.
Count the distinct characters a text uses, listed with frequencies.
Spell out text using Alfa, Bravo, Charlie and the rest.
Count every punctuation mark and see how a text is paced.
Strip HTML markup and get clean, readable plain text.
Strip extra spaces, tabs, blank lines and invisible characters.
Randomise word order, across the text or within each line.
See which words were added, removed or kept between two drafts.