📊
Text Diff
Online text diff tool with line-level highlighting for added/deleted/unchanged lines
1 lines
1 lines
Enter text on both sides to compare
# Text Diff
Compare two texts side by side with line-level highlighting for added, deleted, and unchanged lines.
## Features
- ✅ Line-level LCS diff algorithm
- ✅ Side-by-side comparison view with line highlighting
- ✅ Unified diff view (git diff style)
- ✅ Added/deleted/unchanged line statistics
- ✅ File upload support
- ✅ One-click swap and clear
## How to Use
1. Paste or upload text into the left (original) and right (comparison) panels
2. Switch between side-by-side and unified view modes
3. Differences are automatically highlighted: green for added, red for deleted
4. Check the stats bar for the scale of changes
## FAQ
### How is the diff computed?
This tool uses a line-level LCS (Longest Common Subsequence) algorithm to identify identical, added, and deleted lines — the same principle used by `git diff`.