Developer Tools

Diff Checker

Compare two texts or code snippets side-by-side. Additions, deletions, and unchanged context, all in your browser.

+3 · -2 · 4 unchanged
function greet(name) {function greet(name) {
return "Hello, " + name; return `Hello, ${name}!`;
}}
const message = greet("World");const message = greet("World");
console.log(message);console.log(message);
console.log("Done");

Compare anything, fast

Paste two versions of any text — code, config, JSON, prose — and see exactly what changed. Side-by-side view shows both versions aligned; unified view shows the diff in one column with +/- prefixes (like git).

Frequently Asked Questions

What is a diff?
A diff (short for "difference") shows what changed between two versions of text or code. Lines added, removed, or modified are highlighted. Diffs are the foundation of version control (git, svn) and code review.
How is the diff computed?
We use the standard Myers diff algorithm (1986) — the same algorithm used by git and most modern diff tools. It finds the shortest sequence of edits to transform text A into text B.
Is my text sent to a server?
No — everything runs in your browser via JavaScript. Your text never leaves your machine. Safe for proprietary code, sensitive logs, or confidential documents.
Can I diff JSON or code?
Yes — the diff is line-by-line, so it works for any text format. For best JSON results, format both inputs first (use our JSON formatter) — that way semantic equality lines up.
How is this different from git diff?
Git diff is for version-controlled files; ours is for any two text snippets you paste. The output format is similar (additions in green, removals in red), but ours gives you a side-by-side view + a unified view.

Related Calculators