PasteZap
🌐 简体中文
免费 · 无需注册

免费 · 文本

文本清理.

清理粘贴的文本:多余空格、行首行尾空格、不可见字符和不换行空格、空行,或把断开的行重新合并为段落,不会改动文字内容。

开始之前

部分技术控件使用英语。支持 Unicode 文本;文件格式和输出语言取决于具体工具。

下面以英语列出技术限制。处理大型文件或使用结果之前,请先查看这些限制。

Loading the calculator…

清理工具会修正什么

  • 行内重复的空格和制表符合并为一个空格,并删除每行开头和结尾的空格。
  • 删除不可见字符:零宽空格、字节顺序标记(BOM)、软连字符和方向标记,这些字符会干扰搜索、表单和代码。
  • 不换行空格和其他特殊空格替换为普通空格。
  • 可选:把弯引号和弯撇号改为直引号。

不会改写任何文字和标点,并会用表格列出每类修改的次数。

选择换行的处理方式

选项适用场景
Keep line breaks笔记和列表:保留原有行,段落之间最多保留一个空行
Remove empty lines复制时条目之间夹杂空行的列表
Join wrapped lines into paragraphs从 PDF 或电子邮件复制、每行都提前断开的文本
Put everything on one line表单字段、表格单元格和标题

示例: Hello world 会变成 Hello world。如还需替换长破折号或删除 Markdown 符号,请使用 AI 文本清理工具;如只想找出隐藏字符而不删除,请使用隐藏字符检测工具。

限制与支持格式

输入内容在您的设备上处理。

英语技术说明

Up to 1,000,000 characters. Words and punctuation are kept; dashes and Markdown are not changed (use the AI Text Cleaner for that). Hyphenated line breaks are joined with a space, not repaired.

Clean pasted text: collapse repeated spaces, trim line edges, remove invisible characters and non-breaking spaces, delete empty lines or rejoin wrapped lines into paragraphs, without changing words. Up to 1,000,000 characters. Words and punctuation are kept; dashes and Markdown are not changed (use the AI Text Cleaner for that). Hyphenated line breaks are joined with a space, not repaired.

Hello world, this text was pasted from a PDF. → Hello world, this text was pasted from a PDF.

常见问题

如何去掉从 PDF 复制的文本中的换行?

选择“Join wrapped lines into paragraphs”。同一段落内的行会用空格连接,段落之间的空行会保留。

会改动我的文字或标点吗?

不会。只会改动空格、隐藏字符、换行,以及您选择时的引号。

我的文本会被上传吗?

不会。清理在浏览器中完成,不会发送到任何服务器。