Text Diff

Compares two texts and shows which lines were added, removed, or left alone. Removed lines are prefixed with "-", added lines with "+", and unchanged lines with two spaces. Matching uses a longest-common- subsequence, so inserting one line near the top does not report every following line as changed. 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)

Compares two texts and shows which lines were added, removed, or left alone. Removed lines are prefixed with "-", added lines with "+", and unchanged lines with two spaces. Matching uses a longest-common- subsequence, so inserting one line near the top does not report every following line as changed. Enter the two texts separated by a line containing "===". Runs entirely in your browser — nothing is sent to a server.

Use cases

  • Seeing what changed between two versions of a config file
  • Comparing pasted log output from two runs

Examples

One changed line

alpha
beta
gamma
===
alpha
BETA
gamma
  alpha
- beta
+ BETA
  gamma

FAQ

Is my text sent to a server?

No — this tool runs entirely in your browser.

How do I enter two texts?

Paste the first text, then a line containing only "===", then the second text.

Is the comparison case sensitive?

Yes. Lines must match exactly, including case and spacing, to count as unchanged.