Skip to content

格式化与代码

移除空格

免费的空格移除工具。修剪、折叠连续的空格、去除所有空格,或移除空行。选择模式并复制清理后的文本。

Runs in your browser
Input · source
lines: 0chars: 0size: 0 B
Cleaned · result
lines: 0chars: 0size: 0 B
live

编辑注

Understanding · Whitespace, trimmed.

本深度章节目前仅有英文版本。上方的转换工具支持您的语言;长篇说明文章尚未翻译。

常见问题

Quick answers.

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.

大家也在搜索

相关工具

More in this room.

查看所有 格式化与代码