文本对比

对比两段文本,高亮显示差异

🔒 100% client-side — your data never leaves this page
Original
Modified
Diff Result
Diff will appear once you fill both panels

About this tool

对比两段文字之间的差异,新增行绿色高亮,删除行红色高亮。适合对比代码片段、配置文件、文章草稿等场景,完全在浏览器中运行。

Frequently Asked Questions

What does this tool compare?

It performs a line-by-line comparison of two text blocks, highlighting added lines, removed lines, and unchanged lines.

Is my text sent to any server?

No. The comparison runs entirely in your browser using JavaScript. Nothing is uploaded.

Can I use this to compare code?

Yes. Paste any code, config file, or plain text into both panels and the differences will be highlighted immediately.