清理雜亂的空白:修剪行、合併空格、刪除空行和換行。
如何使用 空白清除器
貼上文字,例如從 PDF 複製的內容。
選擇你需要的清理選項。
複製整理後的結果。
This is a whitespace cleaner for text that arrived messy, the kind you get when copying from a PDF, an email or a document, where stray line breaks, double spaces and blank lines are common.
It gives you a set of options you can combine: trim spaces from the ends of lines, collapse runs of spaces into one, remove blank lines, join everything onto a single line, or strip all whitespace entirely.
Everything runs in your browser, so your text never leaves your device.
The problem it solves most often is pasting from a PDF, which stores text with fixed line breaks and padding for layout. The result usually has line breaks in the middle of sentences and doubled spaces, which this tidies up.
Collapsing spaces replaces multiple spaces or tabs with a single space without touching line breaks, while removing blank lines drops the empty rows that pile up between paragraphs.
To turn broken lines back into flowing paragraphs, join them onto one line. To get a single continuous string with no spacing at all, remove all whitespace, which overrides the other options.
常見問題
PDF 為排版使用固定換行和填充儲存文字,因此複製的文字常在句子中間出現換行和雙空格。本工具會移除它們。
它將多個連續的空格或 Tab 替換為單個空格,而不影響換行。
它去除每個空格、Tab 和換行,留下一個連續的字元串。它會覆蓋其他選項。
嵌入此工具
將此工具加入你自己的網站。複製下方的程式碼片段,它會自動保持最新。
<iframe src="https://monu.tools/embed/zh-Hant/whitespace-remover" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相關工具