TOOLTIKI Lovable tool, really free
Developer Comparing

Diff checker

Changed +1 −1
2 unchanged
1 1 The quick brown fox
2 jumps over
2 + leaps over
3 3 the lazy dog

Compared in your browser · nothing is uploaded

Local · a real diff, not a line-by-line comparison
Advertisement
320 × 100

Compares two texts and marks what was added and removed, using a longest-common-subsequence match so an inserted line shows as one insert rather than shifting everything below it.

How to use the diff checker

1 Paste the original into the left box and the changed version into the right.
2 Turn on ignore case or ignore whitespace if those differences are noise for you.
3 Read the marked lines, or copy the result as a unified patch.

That distinction is the whole reason a real diff is worth having. Comparing line one to line one, line two to line two and so on means a single inserted line at the top makes every subsequent line appear changed — technically true and completely useless. Finding the longest sequence of lines the two texts genuinely share, and marking only the gaps, is what produces a diff a person can read. Unchanged runs are folded to a marker by default, because a diff of two long documents is mostly unchanged lines and showing all of them buries the three that matter.

Questions

Because an inserted line shifts every line below it. This uses a longest-common-subsequence match, which finds the lines that genuinely correspond.

Myers — an O(ND) difference algorithm
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING