Trim Lines

Remove leading and trailing whitespace from each line without changing the line order.

Trim Options
Total Lines 0
Trimmed Lines 0
Removed Lines 0

How it works

Line-by-line trim: Each line is processed independently to remove leading and trailing whitespace.
Flexible options: Choose whether to trim left, right, or remove empty lines entirely.
Formatting safe: Line order and content stay intact except for the whitespace you remove.
100% local: Your text never leaves the browser.

How helpful was this tool?

Loading rating...