Skip to main content

Text Compare

Diff two texts line by line.

What does this tool do?

Direct answerText Compare computes a line-level diff (LCS) showing added (+) and removed (−) lines.
Key factThe diff uses the longest-common-subsequence algorithm — same approach as classic diff.
ProcessingRuns locally in your browser; no data is sent to a server.

How to use

  1. Paste the original text on the left.
  2. Paste the changed text on the right.
  3. Click Compare texts.

Example

Input

the quick brown fox

Output

- the quick brown fox
+ the quick red fox

Who is this for?

This tool was built for people who need a fast answer in the browser — no install, no account, no data leaving the device.

Writers cleaning up drafts, developers batch-fixing text, translators, and students. Paste, transform, copy — no signup, no limits.

Frequently asked questions

Is comparison word-level or line-level?

Line-level; changed lines appear as a −/+ pair.

Does order matter?

Yes — lines are compared in order.

Any size limit?

Very large inputs (10k+ lines) may slow down; the LCS table grows quadratically.

More tools in this category