Back
Text Diff Tool
Compare two texts locally with line/word/char/semantic diff modes, side-by-side or unified view, ignore rules, and patch export.
0 / 200,000 chars
0 / 200,000 chars
3
Added: 0Removed: 0Unchanged: 0No differences
Paste text on both sides to start diffing.
Everything runs locally in your browser. No uploads.
Text Diff: Guide
- Intent
- Compare two texts with line, word, or character-level diff. Better than Diffchecker free tier with local-only processing.
- What it does
- Compares two texts and shows differences with highlighted changes. Supports multiple diff granularities and ignore rules.
- Key features
- Line/word/char diff modes, Side-by-side and unified views, Ignore rules (whitespace, case, line endings), Export unified diff patches, Swap/compare/copy actions
- Privacy
- Runs locally in your browser. Text is not uploaded.
- Best for
- Comparing code or document revisions
- Reviewing edits before accepting changes
- Finding differences in config files or logs
- Creating patches for version control
- Why this tool
- Multiple diff modes for different use cases
- Ignore rules reduce noise in comparisons
- Local-only processing keeps sensitive data private
- Simple export to unified diff format
How to use
- 1Paste original text in the left panel.
- 2Paste modified text in the right panel.
- 3Choose diff mode: line (default), word, or character.
- 4Choose view mode: side-by-side or unified.
- 5Toggle ignore rules to filter out insignificant changes.
- 6Copy or download the diff as a patch file.
Common mistakes
- Forgetting to swap sides when comparing in the wrong order.
- Large texts (>100KB) may impact performance.
- Ignore rules apply to both sides equally.
Examples
Compare code changes
Original: function add(a, b) { return a + b; }
Modified: function add(a, b) { return a - b; }
Result: Shows the operator change highlighted
Ignore whitespace changes
Enable 'Ignore whitespace' to focus on actual content changes
without being distracted by formatting differences.