Diff Checker

Compare two texts line by line and see every change.

Free online diff checker by AIML Digital. It runs 100% in your browser: no sign-up, no limits, and nothing you enter is sent to a server.

Formula

How it works

  1. Build the Longest Common Subsequence table of lines.
  2. Walk it: equal lines are unchanged, lines only in A are removed (−), only in B are added (+).

Frequently asked questions

Is the Diff Checker free?

Yes. The Diff Checker by AIML Digital is completely free, with no sign-up, no limits and no watermark.

Is my data sent anywhere?

No. The Diff Checker runs entirely in your web browser using JavaScript. What you type stays on your device.

What formula does the Diff Checker use?

LCS[i][j] = A[i] = B[j] ? LCS[i+1][j+1] + 1 : max(LCS[i+1][j], LCS[i][j+1]).

How does the Diff Checker work?

Build the Longest Common Subsequence table of lines. Walk it: equal lines are unchanged, lines only in A are removed (−), only in B are added (+).

Does the Diff Checker work on mobile?

Yes. It works in any modern browser on phone, tablet or desktop, and keeps working offline once loaded (except tools that load a helper library the first time).

More Developer tools