How to Use
Paste the original text in the left box and the modified text in the right box. The diff output will show:
- Added — new content in green
- Removed — deleted content in red with strikethrough
- Unchanged lines appear in normal text
What Is a Diff?
Diff is a file comparison utility that computes the differences between two text inputs. It is a fundamental tool in software development for code reviews, version control, and change management.
This tool uses a line-based Longest Common Subsequence (LCS) algorithm to identify added, removed, and unchanged lines, similar to how git diff works.
Frequently Asked Questions
Is this as accurate as git diff?
This tool uses a standard LCS-based diff algorithm (similar to the Myers algorithm used by Git). For most use cases it produces the same output, though very large files may show minor differences in how ambiguous edits are resolved.
Is my data sent to a server?
No. Everything runs entirely in your browser. No data is sent anywhere — your text never leaves your device.