Back to tools
Diff Checker
Compare two blocks of text or code and see the differences highlighted line by line.
+5 added-4 removed2 unchanged
| + | function greet(name, greeting = "Hello") { |
| + | return greeting + ", " + name + "!"; |
| - | function greet(name) { |
| - | return "Hello, " + name; |
| } | |
| + | const user = "Bob"; |
| + | const result = greet(user); |
| + | console.log(result); |
| - | const user = "Alice"; |
| - | console.log(greet(user)); |
About This Tool
Diff Checker compares two blocks of text and highlights the differences line by line. Added lines are shown in green, removed lines in red, and unchanged lines in gray. Useful for spotting changes between versions of code, documents, or configs.
The comparison uses a longest-common-subsequence algorithm to find the minimal set of changes, similar to the output of the Unix diff command or Git change detection.
Useful for reviewing edits to documents, comparing API responses, checking configuration changes, or auditing code modifications. All comparison runs in your browser. No text is sent anywhere.