Text Compare

Summarises how two texts differ: whether they are identical, a similarity score from 0 to 1, and how many lines were added, removed, or left unchanged. Use it when you want the shape of the change rather than a line-by-line listing. Enter the two texts separated by a line containing "===". Runs entirely in your browser — nothing is sent to a server.

Ad placeholder: Resp_Horizantal_1 (horizontal)
Ad placeholder: Resp_Square_1 (square)

Summarises how two texts differ: whether they are identical, a similarity score from 0 to 1, and how many lines were added, removed, or left unchanged. Use it when you want the shape of the change rather than a line-by-line listing. Enter the two texts separated by a line containing "===". Runs entirely in your browser — nothing is sent to a server.

Use cases

  • Checking how much two drafts of a document overlap
  • Confirming two files are byte-for-byte identical

Examples

One changed line

alpha
beta
gamma
===
alpha
BETA
gamma
{
  "identical": false,
  "similarity": 0.6667,
  "unchanged": 2,
  "added": 1,
  "removed": 1,
  "leftLines": 3,
  "rightLines": 3
}

FAQ

Is my text sent to a server?

No — this tool runs entirely in your browser.

How is similarity calculated?

Matching lines are counted on both sides and divided by the total number of lines in both texts, giving 1 for identical texts and 0 for texts sharing no lines.

What is the difference from Text Diff?

Text Diff lists every changed line. Text Compare reports the totals and a similarity score instead.