Text diff checker

A diff checker compares two texts and marks the lines that were added or removed.

Features

  • Line by lineAdditions and removals are highlighted.
  • Any plain textCode, configuration or prose.
  • Runs on your deviceYour data is processed in the browser and is never uploaded.

How to use the diff checker

  1. Paste the original text on the left.
  2. Paste the changed text on the right.
  3. Read removed lines marked - and added lines marked +.

How the comparison works

It finds the longest common subsequence of lines. A line with any change, including trailing spaces, shows as one removal and one addition. Each side is limited to 3,000 lines.

Compare files on the command line

diff -u old.txt new.txt
git diff --no-index old.txt new.txt

Frequently asked questions

Does it ignore whitespace?

No. Whitespace differences count.

Can it compare code?

Yes, any plain text.

Is my text stored?

No.

Related tools