文本差异比较
在浏览器中按词、Unicode码点字符或整行比较两段文本,安全高亮新增/删除/未变内容并报告各类数量;支持交换、清空和多行视图,限制总输入和差异计算工作量。
使用步骤
如何使用
- Paste the original and revised text into the two fields.
- Choose words, characters, or lines, then select Compare text.
- Review the additions, removals, unchanged context, and change summary.
Choose the right level of detail
Word mode is a readable default for prose and preserves spaces around edits. Character mode exposes small spelling or punctuation changes. Line mode groups multi-line additions and removals so you can scan notes, copy, or snippets one line at a time.
See the change in context
The comparison presents both passages together, marks additions and removals, and reports how many units changed or stayed the same. Swap the two inputs to reverse the perspective, or clear them to start a new comparison.
Useful for everyday revisions
Use it for copy edits, instructions, messages, or configuration snippets. The comparison runs in the page so your pasted text stays in the current browser session.
常见问题
你可能还想知道
Which comparison mode should I use?
Use words for most writing, characters for tiny edits such as punctuation or spelling, and lines when each line is a meaningful unit.
Can I compare multi-line text?
Yes. Paste paragraphs or multiple lines into the two input areas, then choose Lines to group the result by complete lines.
What do the summary counts mean?
They count added, removed, and unchanged words, characters, or lines for the selected mode. Spacing stays visible in word mode but is not counted as a word.
Does it change either input?
No. The two inputs remain available while the comparison is shown. Swap only exchanges their positions.