Text Diff Checker
Compare two blocks of text side-by-side and see every change highlighted instantly.
What is a Diff Checker?
A diff checker compares two blocks of text and highlights the differences between them. Using the Myers diff algorithm, it identifies added, removed, and modified lines with character-level highlighting within changed lines. This tool supports both side-by-side and unified diff views, with options to ignore whitespace and case differences.
Common Use Cases
- •Comparing code changes before committing
- •Reviewing configuration file modifications
- •Checking text document revisions
- •Comparing API response changes between environments
- •Verifying database migration scripts
Frequently Asked Questions
What is the Myers diff algorithm?
The Myers algorithm, published by Eugene Myers in 1986, finds the shortest edit script (minimum insertions and deletions) to transform one sequence into another. It's the same algorithm used by git diff and produces human-readable diffs that match intuitive expectations.
What is the difference between unified and side-by-side diff?
Side-by-side shows both texts in parallel columns with changes aligned. Unified shows changes in a single column with - for removals and + for additions, similar to git diff output. Side-by-side is better for visual comparison; unified is more compact.