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 codeOutput
highlighted diff with +/- statsKeyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Git Command Cheatsheet
Dev Utilities
Searchable reference of common git commands with copy buttons.
JSON Diff Viewer
Dev Utilities
Compare two JSON documents and see added, removed and changed keys.
Semver Checker
Dev Utilities
Compare versions and test semver ranges (^, ~, >=).
.editorconfig Generator
Dev Utilities
Create an .editorconfig file with per-language overrides.
.htaccess Redirect Generator
Dev Utilities
Generate Apache .htaccess redirect and rewrite rules.
Android APK Analyzer & Explorer
Dev Utilities
Open an APK, decode its manifest and browse or download every file inside.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser