Related Tool

Text Diff

Compare text files and see differences line by line. All processing occurs locally in your browser.

Related Tools

JSON CompareRegex Builder

Compares two blocks of text line by line and prints the difference: unchanged lines are indented by two spaces, a changed line appears as a - line followed by a + line, and a line present in only one block is prefixed with - or + on its own. Both blocks stay in the page.

How to use it

  1. Paste the original into the first box and the revised version into the second.
  2. Press Diff.
  3. Read the output: a leading space means unchanged, - means removed, + means added.

Worked example

cat dog fish || cat bird fish newbecomes Hello world - This is line 2 + This is line two Line 3 + Line 4

The part before || is pasted into Text A, the part after into Text B. The trailing newline is part of the output.

When to use it

What it does not do