Text & Data
Text Diff
Compare two text blocks and highlight the differences.
Click Compare to see differences.
Related Tools
Frequently Asked Questions
How does the diff algorithm work?
The tool uses a line-by-line diff algorithm similar to the Unix diff command. Added lines are highlighted in green, removed lines in red, and unchanged lines are shown in grey for context.
Does my text leave the browser?
No. The diff runs entirely in your browser. Your text is never sent to any server.
Can I compare code files?
Yes. Paste any text content — code, prose, config files — into the two panels. The diff is purely text-based and works with any language or format.