Diff Checker

Text & Writing

Compare two texts line by line and mark additions and deletions.

alpha
βˆ’ beta
+ beta2
gamma
+ delta
Calculated Result
+2 / βˆ’1
Formula: Line LCS then insert/delete hunks

About this calculator

Paste an old version on the left and a new version on the right. Matching lines stay plain. Removed lines are marked minus; added lines are plus.

How It Works & Formula

FormulaMyers-style line diff: LCS then mark insert / delete hunks

A longest-common-subsequence walk on lines. Equal lines stay; the rest are insert or delete hunks.