Code Diff Merger
Side-by-side line diff of two code snippets with stats.
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.
Popular uses
- diff
- code diff
- compare
- merge
- line diff
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
JSON Diff Viewer
Dev Utilities
Compare two JSON documents and see added, removed and changed keys.
Android APK Analyzer & Explorer
Dev Utilities
Open an APK, decode its manifest and browse or download every file inside.
Archive Extractor & File Explorer
Dev Utilities
Unzip ZIP, TAR, GZ, 7Z, RAR and more in your browser — browse folders, preview and download files.
Code Line Counter (SLOC)
Dev Utilities
Count code, comment and blank lines in any source file.
Source Code Explorer & Editor
Dev Utilities
Browse and edit source archives with syntax colors, code search, syntax trees and dependency graphs.
JSON Compare
JSON
Diff two JSON documents and list added, removed, and changed paths.
Works well with
Next steps from other categories.
JSON Merger
JSON
Merge two or more JSON documents with shallow/deep strategies.
Diff Checker
Text & String
Compare two texts line-by-line with an LCS diff.
JSON Formatter
JSON
Pretty-print and beautify JSON with custom indentation.
JSON Key Sorter
JSON
Sort JSON object keys alphabetically, naturally, or by array field.
Frequently asked questions
Read more
- Reviewing code diffs side by side: spotting changes and merging snippets offline
Compare two versions of code in your browser, read side-by-side and line diffs correctly, pick the right granularity and keep private code on your device.
Version 1.1.0 · Updated 2026-10-24 · Runs entirely in your browser