How to Compare Text with a Unified Diff
Text Diff
When to Use Text Diff
Compare config snippets, log excerpts, API responses, or any two text blocks to see exactly which lines were added or removed — without installing a desktop diff tool.
Reading the Output
- Lines prefixed with
-were removed from the original. - Lines prefixed with
+were added in the modified version. - Unchanged lines appear without a prefix.
Frequently asked questions
Is this a word-level or line-level diff?
Line-level. Each line is compared as a whole unit, which works well for configs, code, and logs.
Is my text sent to a server?
No. The diff runs entirely in your browser.