EncryptCodecencryptcodec
Tools/Diff Checker

Diff Checker

Compare two blocks of text side by side. See additions, deletions, and unchanged lines highlighted with a line-by-line LCS diff algorithm.

All processing happens in your browser — nothing is sent to our servers
How it works
Text Diff Comparison (LCS Algorithm)
01Input

Two text inputs — original and modified — split into arrays of lines for comparison

02LCS matrix

Longest Common Subsequence algorithm builds a matrix to find the optimal alignment between the two line arrays

03Backtrack

Walk the LCS matrix backwards to classify each line as added (+), removed (−), or unchanged

04Unified diff

Lines displayed with color coding — green for additions, red for deletions, gray for unchanged context

05Stats

Summary shows total lines added, removed, and unchanged — helps quantify the scope of changes

Spec: Hunt–McIlroy diff algorithm, Unified diff format (GNU diffutils)

Line-by-line diff is the standard for code review. For character-level changes within a line, tools use a second pass of the same algorithm on individual characters.

Frequently Asked Questions