ToolsKit
Text & String Tools
In-Browser Privacy

Trim Lines

Remove leading and trailing spaces or tabs from every line in your text without affecting the text in between.

0words
·
0characters
·
0without spaces
·
0lines
Ready
0words
·
0characters
·
0without spaces
·
0lines

How to Use Trim Lines

1

Paste text with messy indentations or trailing spaces.

2

Each line is trimmed cleanly at both ends.

3

Copy the neatly trimmed lines.

Example & Output

Strips spaces and tabs from the start and end of each line.

Input Example
   First line with space   
	Second line with tab	
   Third line   
Resulting Output
First line with space
Second line with tab
Third line

Privacy-First & In-Browser Guarantee

Your confidential text, passwords, and data are processed entirely inside your browser using client-side JavaScript. Nothing is sent to our servers or saved in a remote database.

No registration requiredNo rate limits100% Free Forever

Frequently Asked Questions

Yes, you can choose Trim Both, Trim Start (leading), or Trim End (trailing).