Text Diff
Compare two texts and highlight the differences line by line.
About Text Diff
A text diff tool compares two versions of text and visually highlights the differences: lines added (green), lines removed (red), and lines unchanged (grey). This is the same technique used by version control systems like Git to show what changed between commits. It is invaluable for reviewing edits, detecting unintended changes, and understanding document revisions.
How to Use
Paste the original text in the left panel and the modified version in the right panel. Click "Compare" to see a line-by-line diff with color-coded additions and deletions. The summary bar shows total additions, deletions, and unchanged lines at a glance.
Common Use Cases
- Reviewing changes between two versions of a document or code snippet
- Spotting unintended edits in configuration files or templates
- Comparing API responses before and after a code change
- Verifying that a text transformation (e.g., case conversion) worked correctly
- Detecting differences in translated content across language versions