±
Diff Checker
Compare two texts and highlight the differences line by line
+2 added-3 removed
Diff Output
| − | function greet(name) { |
| − | console.log("Hello, " + name); |
| − | return true; |
| + | function greet(name, greeting = "Hello") { |
| + | console.log(greeting + ", " + name + "!"); |
| } |
About this tool
A free online diff checker that compares two blocks of text and shows you exactly what changed. Differences are highlighted line by line: green for added lines, red for removed lines, and white for unchanged lines. Everything runs in your browser — no text is ever uploaded to a server.