How This Diff Checker Works
This tool uses the Myers diff algorithm — the same algorithm used by Git, GNU diff, and most professional diff tools. It finds the shortest edit script (minimum number of line insertions and deletions) that transforms the original text into the changed text.
Line Diff vs Word Diff
Line diff compares texts line by line. Each line is either unchanged, added, or removed. This is the standard mode for code comparison.
Word diff goes a step further: within each changed line, it highlights the specific words that differ. This is particularly useful for prose editing (contract redlines, document drafts) where you care about exactly which words changed, not just which lines.
Character diff highlights individual character changes — useful for spotting typos, punctuation differences, or single-character code changes.
Ignore Whitespace
When you reformat code (changing indentation, aligning columns), the logic doesn't change — only whitespace does. Enable Ignore whitespace to strip leading and trailing spaces from each line before comparison, so formatting-only changes don't appear as differences.
Privacy
All comparison happens in your browser. No text is transmitted over the network at any point. This tool is safe for confidential documents, proprietary code, legal contracts, and personal writing. You can verify this by opening your browser's Developer Tools → Network tab and observing zero outbound requests during comparison.
Use Cases
- Developers: Compare config files, API responses, code snippets before and after a refactor.
- Legal professionals: Compare contract versions to identify added, removed, or changed clauses. Word diff mode is ideal for redlining.
- Writers and editors: Compare manuscript drafts, check what changed between revisions, verify that tracked changes were applied correctly.
- Students: Compare essay drafts, check differences between document versions, verify feedback was incorporated.
- Office workers: Compare spreadsheet exports, report versions, or email drafts.
Keyboard Shortcuts
- N — Jump to next change (when result is visible)
- P — Jump to previous change
- Enter — Run comparison (when focus is in an input pane)