Diff Checker
Compare two text files side-by-side or inline to detect precise code edits, line additions, and deletions.
100% Client-Side (No data leaves your device)
Original Text (Left)
Modified Text (Right)
User Guide: Visual Differences (Diff)
How the Diff Checker Works
This checker uses an in-memory Longest Common Subsequence (LCS) matrix comparison algorithm with optional character-level diff refinement. All processing happens 100% locally in your browser memory:
- Deletions (Red highlight): Lines or tokens present in the original text but removed or replaced in the modified version.
- Additions (Green highlight): New lines or tokens inserted in the modified text.
- Ignore Whitespace: Strips leading/trailing space discrepancies to focus purely on structural logic changes.
View & Export Options
- Side-by-Side: Shows original and modified versions in dual parallel columns with matching line synchronization.
- Inline (Unified): Integrates additions and deletions into a single chronologically aligned stream, formatted for Git commits and patch sharing.
- Export .patch: Download standardized unified diff files to apply directly with
git apply.