逐行差异高亮,支持并排 / 内联视图与行内字符级高亮,本地处理更安全
逐行高亮增删改,行内字符级精准定位差异。
了解文本对比工具的功能、如何对比文本,以及常见问题解答。What the text diff does, how to compare texts, and answers to common questions.
文本对比工具可快速找出两段文本之间的差异,逐行高亮新增、删除与修改内容,帮助你比对代码、文档或配置文件的版本变化。
A text diff tool that spots differences between two texts, highlighting additions, deletions and edits line by line — perfect for comparing code, documents or config versions.
支持并排(Side-by-Side)与内联(Inline)两种视图,并能进行行内字符级高亮,让细微改动也无所遁形。
It offers side-by-side and inline views, plus intra-line character-level highlighting so even subtle changes stand out.
适合代码审查、合同 / 文档修订、配置变更核对等需要精确差异定位的场景。
Ideal for code review, contract/document revision and config change verification that need precise diff location.
粘贴即比对,无需上传,结果直观,是开发者与编辑的高频工具。
Paste and compare instantly with no upload; an intuitive result that makes it a go-to tool for developers and editors.
开发者进行代码 review 与版本差异比对。
Developers doing code review and version comparison.
法务、编辑、产品等需要比对文档或合同修订的人群。
Legal, editorial and product people who compare document or contract revisions.
采用逐行 + 行内字符级差异算法(如最长公共子序列)计算新增、删除与修改。
Uses line-level plus intra-line character diff algorithms (such as longest common subsequence) to compute additions, deletions and edits.
差异计算与高亮渲染均在浏览器本地完成。
Diff computation and highlight rendering both run locally in the browser.
两段文本仅在本地比对,不上传、不留存,可放心粘贴敏感内容。
Both texts are compared locally only, never uploaded or retained, so sensitive content is safe to paste.
支持,无论是代码、JSON、配置文件还是普通文本,都可逐行对比并高亮差异。Yes — code, JSON, config or plain text all work.
可以,工具支持行内字符级高亮,精确到具体改动字符。Yes, intra-line char-level highlighting pinpoints exact changes.
结果可复制到剪贴板,便于保存或分享。You can copy the diff result to your clipboard.