Convert trailing spaces in each line into nothing

Please log in or register to do it.

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.

Processing Modes:


Removes any whitespace at the end of every line.

Removes trailing spaces only from the specified lines. Enter a comma‑separated list of line numbers (e.g., 1,3,5).

Removes trailing spaces from every line except for those you explicitly allow. Enter a comma‑separated list of line numbers (e.g., 2,4).

Replaces trailing spaces in each line with a custom placeholder string. Enter the placeholder text below.

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]
Convert hexadecimal encoding into readable text
Convert text to CamelCase

Your email address will not be published. Required fields are marked *