Text Diff Checker
Compare two texts with highlighted differences.
Examples
| Input | Result |
|---|---|
| Original: "line one\nline two" / Modified: "line one\nline three" | line one (unchanged), - line two (removed), + line three (added) |
| Original: "function hello()" / Modified: "function hello()\n return true" | function hello() (unchanged), + return true (added) |
| Original: "apple\nbanana\ncherry" / Modified: "apple\ncherry" | apple (unchanged), - banana (removed), cherry (unchanged) |
About this tool
The text diff checker compares two blocks of text and shows you exactly what changed between them. Added lines show up in green, removed lines in red, and unchanged lines stay neutral. You also get a summary count of additions, removals, and unchanged lines.
This is useful for comparing config files, reviewing copy edits, or checking what changed between two versions of a document. Paste your original text on the left and the modified version on the right, and the diff updates instantly. Since it runs in the browser, your content stays private.
Frequently asked questions
How does the diff comparison work?
The tool compares texts line by line. Lines present only in the original are marked as removed (red), lines present only in the modified version are marked as added (green), and matching lines appear as unchanged.
Can I compare code with this tool?
Yes. It works on any plain text, including source code. The monospace display and color-coded diff output make it easy to spot code changes.
Is there a size limit for the text I can compare?
There is no hard limit, but very large texts (tens of thousands of lines) may slow down your browser since the diff runs entirely client-side.
