Diff Checker
Compare two pieces of text
Runs in your browser.
Compare two texts line by line — updates as you type.
Original
6 lines
Changed
7 lines
- Added
- 2
- Removed
- 1
- Unchanged
- 4
·
function greet(name) {−
return "Hello, " + name;
+
const label = name.trim() || "friend";
+
return `Hello, ${label}!`;·
}
·
·
console.log(greet("world"));How to use
- 1
Paste the original
Put the first text on the left.
- 2
Paste the changed text
Put the second text on the right.
- 3
Compare
Added and removed lines are marked.
What you get
- Two editors
- Line diff
- Added and removed lines
- This runs in your browser. Nothing is uploaded.
FAQ
Is the text uploaded?
This runs in your browser. Nothing is uploaded.
Does this compare files?
Paste the contents. The comparison is line by line.
