Text Diff & Compare

Paste two texts to see highlighted line-by-line differences, a change summary, and a similarity percentage. Everything is processed on your device.

Options
or press Ctrl+Enter
Result
Fill A and B, then click Compare.

Everything runs in your browser. Your data is never sent to our servers.

728 × 90Ad Space AvailablePlace your ad here

Example

Example Input

A: "hello world"
B: "hello brave world"

Example Output

1 line changed, 50% similar

How to Use

  1. 1Paste the first texts (A) in the left box and the second (B) in the right box.
  2. 2Adjust the options if needed (ignore case, whitespace, or empty lines).
  3. 3Click Compare (or press Ctrl+Enter).
  4. 4See the highlighted differences, a summary of how many changes there are, and the similarity percentage. Switch between side-by-side / unified / inline views.

About Text Diff & Compare

Text Diff & Compare highlights the differences between two blocks of text line by line: added lines are green, removed lines are red. It uses the same LCS (longest common subsequence) algorithm as Git diff, so even the smallest change is detected accurately.

Use it to compare two versions of a document, notes, configuration, or any pasted content. The ignore-case, ignore-whitespace, and ignore-empty-lines options help filter out unimportant differences. You can also copy the result as a Git-style unified patch.

FAQ

What is the difference between "diff" and "compare"?

Both are done by the same tool. "Diff" highlights the lines/parts that changed (added/removed), while "compare" shows how similar the two inputs are (similarity percentage + summary). You get both at once here.

Is my data sent to a server?

No. The entire comparison is computed in your browser with JavaScript. Nothing is uploaded, logged, or stored on our servers — safe for sensitive data.

Related Tools

Related Categories