移除空格
免费的空格移除工具。修剪、折叠连续的空格、去除所有空格,或移除空行。选择模式并复制清理后的文本。
Runs in your browserUpdated Apr 26, 2026
Trim each line
Input
Output
常见问题
›What's the difference between trim and strip?
Trim removes leading/trailing spaces only. Strip removes every whitespace character including those between words.
›Does it handle tabs?
Yes — tabs, regular spaces, non-breaking spaces and other Unicode whitespace are all handled.
›Will it remove blank lines?
Yes — pick the 'remove blank lines' mode to drop any line containing only whitespace.
›Is my text uploaded?
No — runs entirely in your browser.
›Is the tool free?
Yes — fully free, no signup.