跳到正文Skip to content

文本差异比较Text Diff Checker

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

理念:Idea: 改了哪里一目了然,核对不再靠眼力。See every change at once, no squinting.

解决:Solves: 两版文字哪里改了,直接高亮出来Highlights exactly what changed between two versions

适合:For: 改稿、核对合同或代码版本的人Editors and anyone comparing versions

可用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 original text on the left and the changed text on the right.
  2. 2按 Compare。删掉的行是红色,新增的行是绿色,改过的行里变化的词会高亮。Press Compare. Removed lines are red, added lines are green, and changed words inside a modified line are highlighted.
  3. 3把结果复制成 unified diff。Copy the result as a unified diff.

说明Good to know

  • 一行被删、紧接着一行被加,算作修改,并标出变化的词。中文按字比较。A removed line directly replaced by an added line counts as modified, and the changed words are highlighted. Chinese is compared character by character.
  • 每一边最多 20,000 行。Up to 20,000 lines per side are supported.
  • 文本查找与替换Find and Replace

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

    可用Available文字工具Text
  • 文本去重Remove Duplicate Lines

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

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

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

    可用Available文字工具Text
  • 文本清理Text Cleaner

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

    可用Available文字工具Text