Diff Checker

Paste two versions of text or code and see added and removed lines highlighted side by side. Ignore whitespace or case. Runs in your browser — nothing is uploaded.

+3 added−2 removed
1const greeting = 'Hello';1const greeting = 'Hello';
2− const name = 'World';2+ const name = 'Dhruv';
3− console.log(greeting + ', ' + name);3+ console.log(`${greeting}, ${name}!`);
4+ export default greeting;
45

Frequently asked questions

How does the comparison work?

It finds the longest common sequence of lines between the two texts, then marks everything else as added or removed — the same idea behind git diff.

Is there a size limit?

It comfortably handles a few thousand lines. Very large files are better compared with git diff or a desktop tool.

Theme