Diff Checker
Compare two code snippets.
Original Code
Modified Code
Line-by-Line Diff
Frequently Asked Questions
What diff algorithm does this use?
This tool uses a line-based longest common subsequence (LCS) algorithm to detect added, removed, and unchanged lines between the two inputs.
Does it detect changes within a line?
No, this tool compares whole lines. If a single character changes, the entire line is marked as removed and added.
