clears.in Menu

Compare two texts

Paste the old text and the new: the changed words are marked, line by line.

Lines: 2 changed, 1 added, 0 removed, 1 the same.

  1. WasRent: 12,000 a month
  2. NowRent: 12,500 a month
  3. Deposit: 24,000
  4. WasNotice: 1 month
  5. NowNotice: 2 months
  6. AddedPets: not allowed
Count as the same

What does it do to a real text?

Lines: 2 changed, 1 added, 0 removed, 1 the same. The rent went from 12,000 to 12,500 and the notice from 1 month to 2 months; a pets line was added, and Deposit stays unmarked.

What rules does it follow?

  1. The texts are compared line by line. The longest run of lines the two share, in order, stays unmarked; every other line is marked Removed or Added.
The other 5 rules
  1. A removed line followed by an added line is shown as one changed line, Was and Now, with the words that differ marked.
  2. Inside a changed line, words are compared the same way, the spaces between them included.
  3. Ignore capitals and Ignore extra spaces make Rent and rent, or two spaces and one, count as the same.
  4. Very long texts: when the parts that differ would need more than 40,00,000 comparisons (about 2,000 lines against 2,000), the tool says so instead of freezing your browser.
  5. A moved line shows as removed where it was and added where it went.

What do people ask?

How do I compare two versions of a document?

Copy the text of each version into the two boxes. Only the words are compared; formatting such as bold is not.

How do I find what is missing from a list?

Sort both lists first with Sort lines, then compare them: lines only in the old list are marked Removed, and lines only in the new one Added.

Where is the comparison done?

In your browser: the texts stay on your screen.