Code Diff Merger

Side-by-side line diff of two code snippets with stats.

Works Offline
Privacy First
No Login
No API

Original

Modified

Diff

Side-by-side line diff

Added
+2
Removed
-1
Unchanged
3
function greet(name) {
console.log('Hello ' + name);
 
 
}
function greet(name) {
 
console.log(`Hello, ${name}!`);
return true;
}

About the Code Diff Merger

Compare two blocks of code or text line by line with a side-by-side highlighted diff, and see counts of added, removed, and unchanged lines.

Examples

Compare functions

old code

Output

highlighted diff with +/- stats

Related tools

Frequently asked questions

Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser