Compare Two Texts

Two versions of a contract, a paragraph a colleague edited, a config that used to work yesterday. Paste both and read what actually changed — instead of hunting for it by eye.

Comparison looks for the lines that stayed put, not for the first line that differs. That is why inserting one paragraph at the top shows up as one inserted paragraph — and not as «everything below is different».

How to use

  1. Paste the original text on the left and the changed one on the right.
  2. Turn off case or extra spaces if those should not count as differences.
  3. Read the result: green is added, red is removed, and the counter shows how many lines moved.

Good to know

Why it does not compare line one to line one

Naive comparison walks both texts in step: line one against line one, line two against line two. Insert a single paragraph at the top and everything below shifts — the naive answer is «everything is different from line two down», which is true and useless. Here the comparison looks for the lines that stayed put, so an inserted paragraph shows up as one inserted paragraph.

Line endings and spaces are not differences unless you say so

The same text saved in two editors differs in every line: one writes a newline, the other a carriage return and a newline. That is invisible on screen and would make the whole comparison useless, so those are normalised before anything else. Case and repeated spaces are up to you — two switches, off by default.

Frequently asked questions

Is my text sent anywhere?

No. The comparison runs in your browser, which is why a contract or a config with passwords can go through it.

How long can the texts be?

Up to 5000 lines on each side. Beyond that the comparison stops being instant, and a browser is the wrong place for it.

Can I see which word changed, not just which line?

Yes — that is on by default. When a line was replaced, the changed words inside it are highlighted separately.

Does it work for code?

Yes, line by line like any diff. Indentation counts as part of the line unless you turn on «ignore extra spaces».

Related tools