跳到正文Skip to content

文本清理Text Cleaner

清理多余空格、空行和不可见字符,统一换行符。Remove extra spaces, blank lines and invisible characters, and fix line endings.

理念:Idea: 把杂乱清掉,让文字回到本来的样子。Clear the clutter so the words read as they should.

解决:Solves: 去掉多余空格、空行和乱码字符Strips extra spaces, blank lines and invisible characters

适合:For: 从网页、PDF 复制文字的人Anyone pasting text from web pages or PDFs

可用Available在浏览器中运行Runs in your browser
Loading tool…

在你的设备上本地处理。这里输入的内容不会上传。Processed locally on your device. Nothing you enter here is uploaded.

使用方法How to use

  1. 1粘贴杂乱的文字。Paste the messy text.
  2. 2选择要清理的项目,结果会立刻更新。Choose what to clean; the result updates instantly.
  3. 3对比前后,再复制结果。Compare before and after, then copy the result.

说明Good to know

  • 只合并多余空格时,行首缩进会保留;打开 Trim lines 才会一起去掉。Leading indentation is kept when only extra spaces are collapsed; turn on Trim lines to remove it too.
  • 不可见字符包括零宽空格、字节顺序标记和软连字符,从网页或 PDF 复制时经常混进来。Invisible characters include zero-width spaces, byte order marks and soft hyphens, which often sneak in when copying from web pages or PDFs.
  • 文本去重Remove Duplicate Lines

    删除重复行,保留每行第一次出现的位置。Delete repeated lines and keep the first occurrence of each.

    可用Available文字工具Text
  • 文本查找与替换Find and Replace

    查找文本并一次全部替换,显示替换次数,可撤销。Find text and replace every occurrence at once, with match count and undo.

    可用Available文字工具Text
  • 大小写转换Text Case Converter

    在大写、小写、标题格式和句子格式之间转换。Switch text between UPPERCASE, lowercase, Title Case and Sentence case.

    可用Available文字工具Text
  • 文本差异比较Text Diff Checker

    比较两段文本,高亮新增、删除和修改的行与词。Compare two texts and highlight added, removed and modified lines and words.

    可用Available文字工具Text