Trim Lines
Trim Lines: Remove leading and trailing whitespace from each line without collapsing the line structure.
Trim Lines
Trim Lines: Paste your text and select Trim lines.
Loading the tool...
✓ Your inputs stay in this browser
How to use Trim Lines
Paste your text and select Trim lines.
Example
apple becomes apple; blank lines remain blank.
What to know
Whitespace inside each line is preserved; line endings become LF.