跳转到正文
␣

空白规范化

去首尾空白、合并空格、制表符转空格、可选按行修剪。

Hello world 
 Foo bar

关于空白规范化

Whitespace cleaning helps when pasted text carries extra spaces, tabs, or stray leading/trailing blanks. Newlines are preserved; consecutive ASCII spaces are collapsed to one so line structure stays intact. By default, trim ends, collapse spaces, and tabs→spaces are on. Enable “trim lines” to also strip spaces/tabs at the start and end of every line. Everything runs locally in your browser — nothing is uploaded.

使用方法

  1. Paste or type your text
  2. Toggle trim, collapse, or tabs→spaces as needed
  3. Copy the cleaned result

常见问题

Are newlines removed too?

No. Space collapsing only targets ASCII spaces; newlines are preserved.

How many spaces does a tab become?

Each tab becomes a single space. If collapse spaces is on, consecutive spaces are then squeezed to one.

Is my text sent anywhere?

No. Processing runs entirely in your browser; nothing is sent to toco.tools servers.