← All Tools

Diff Tool

Compare two texts and highlight the differences — line, word or character level.

All processing happens locally in your browser. No data is sent to any server. GDPR/DORA compliant.
Granularity
View

Diff Reference

Color Legend

  • Red / strikethrough — removed
  • Green — added
  • Gray — unchanged

Unified Diff Format

  • --- original file header
  • +++ modified file header
  • @@ -a,s +b,s @@ hunk header
  • - line removed, + line added

Tips

  • Ignore whitespace for re-indented code
  • Ignore case for prose comparison
  • Word / character mode for fine edits
  • Upload files for larger texts

Algorithm

  • Longest Common Subsequence (LCS)
  • Minimal edit script (no naive line match)
  • Common prefix/suffix stripped for speed
  • Word-level intra-line highlighting