This tool removes trailing spaces from each line of your text. It provides flexible options so you can remove trailing spaces from every line, remove them only from specified lines, remove them from all lines except those you allow, or replace them with a custom placeholder.
Examples:
Remove Trailing Spaces from All Lines
Every line is processed to remove any whitespace at the end.
Before:
Hello world This is a test
After:
Hello world This is a test
Remove Trailing Spaces Only from Specified Lines
Only the specified lines (e.g., line 2) have their trailing spaces removed.
Before:
Line one Line two Line three
After (removing trailing spaces from line 2):
Line one Line two Line three
Remove Trailing Spaces from All Except Allowed Lines
Removes trailing spaces from every line except for the allowed ones (e.g., line 2 remains unchanged).
Before:
Line one Line two Line three
After (allowing line 2):
Line one Line two Line three
Replace Trailing Spaces with a Placeholder
Every trailing whitespace sequence is replaced with a custom placeholder (e.g., [TS]).
Before:
Hello world Test line
After (with placeholder "[TS]"):
Hello world[TS] Test line[TS]