Diff Checker
Compare text and code side by side with word-level highlighting.
+5 added-4 removed3 unchanged
1function greet(name) {
2 console.log("Hello, " + name);
3 return "Hi " + name;
6}
7
8// old comment
9const items = [1, 2, 3];
1function greet(name) {
4 console.log("Hello, " + name + "!");
5 return `Hi ${name}`;
6}
7
10// new comment
11const items = [1, 2, 3, 4];
12const extra = true;
//Share this tool
//Related tools
JSON Formatter
Format, validate, minify, and prettify JSON data instantly.
JWT Decoder
Decode and inspect JWT tokens: header, payload, signature, expiration.
Base64 Encoder/Decoder
Encode text or files to Base64 and decode back. UTF-8 safe.
Regex Tester
Test regular expressions in real-time with match highlighting and groups.
Compare two blocks of text or code and see exactly what changed. Line-based diff with inline highlighting, ignore-whitespace mode, and copyable results — all computed in your browser.
[x]Features
- -Side-by-side and inline diff views
- -Line-level diff with inline word highlighting
- -Ignore whitespace and blank lines options
- -Change statistics (added, removed, unchanged)
- -Swap inputs and export results
- -100% client-side — nothing is uploaded
>Use Cases
- >Reviewing config or code changes before applying them
- >Comparing two versions of the same file
- >Spotting formatting differences in generated output
- >Verifying that a migration or transform changed what you expected