DiffMate

Back to Glossary

Diff

Diff is a function or algorithm that compares two files or texts and shows the differences between them.

How Diff Works

Diff algorithms are based on LCS (Longest Common Subsequence). They first find the common parts between two texts, then mark the rest as additions (+) or deletions (-).

Practical Uses of Diff

  • Checking changes between Git commits
  • Tracking modifications across document versions
  • Detecting changes in data files (CSV/Excel)
  • Highlighting changed lines during code review

Diff in DiffMate

DiffMate uses a browser-ported engine based on Python's difflib SequenceMatcher. It can compare files with over 1 million rows without freezing the UI, thanks to Web Worker technology.

Try Comparing Now