π Diff Checker
Compare two texts and highlight the differences. Runs entirely in your browser.
Original
Modified
How the Text Diff Checker Works β Side-by-Side Comparison Like VS Code
This diff tool compares two texts line by line using an LCS (Longest Common Subsequence) algorithm β the same approach used by Git, VS Code, and other professional diff tools. It identifies additions (green), deletions (red), and modifications (changed lines with word-level highlighting showing exactly what changed within each line).
Features of This Diff Checker
- Side-by-side view β VS Code-style split panels showing original text on the left and modified text on the right
- Line-level highlighting β Added lines highlighted in green, deleted lines in red
- Word-level highlighting β For modified lines, specific changed words are highlighted within the line for precise comparison
- Line numbers β Both panels show line numbers for easy reference
- Synchronized scrolling β Both panels scroll together for easy comparison of large texts
- Diff statistics β Summary of total additions, deletions, and modifications
Common Use Cases for Text Comparison
- Code review β Compare two versions of a file to see what changed before committing
- Configuration comparison β Diff production vs staging config files, .env files, or YAML/JSON configs
- API response debugging β Compare expected vs actual JSON responses
- Document revision tracking β See what changed between two drafts of a document, blog post, or email
- Database record comparison β Paste two rows or records to spot field-level differences
- Merge conflict resolution β Compare conflicting versions when resolving Git merge conflicts
Understanding Diff Output Colors
- β Green background β Line or word was added in the modified text
- β Red background β Line or word was deleted from the original text
- Highlighted words within lines β Specific words that changed within a modified line, making it easy to spot small changes