Text Diff Tool
A text diff tool compares two blocks of text and highlights the differences between them. It identifies additions, removals, and unchanged sections, making it easy to see what changed between two versions of a document, code snippet, or any text content.
This tool supports both line-level and word-level comparison modes, with unified and side-by-side views. No data is sent to any server β all processing happens in your browser.
How it works
Uses the Longest Common Subsequence (LCS) algorithm to compute the minimal set of additions and removals needed to transform the original text into the modified text.
Use cases
- Comparing two versions of a document or configuration file
- Reviewing code changes before committing
- Checking differences between API responses
- Verifying text transformations and edits