Integration Lab JSON Tools

Text Compare

Compare two versions of any text and see every added, removed and changed line, with the exact words that changed highlighted.

Original

Empty

Changed

Empty

Differences

Paste text on both sides

Differences appear here as you type, line by line, with the changed words marked.

How to use the Text Compare

  1. Paste the original text on the left and the changed text on the right, or open two files.
  2. Differences appear as you type, side by side or unified, with the changed words marked inside each line.
  3. Turn on Only changes to fold the unchanged lines, then copy the result as a unified diff.

Questions

How are the differences found?
Lines are lined up first, the same way git diff does it, so inserting a paragraph shows one addition instead of a change to everything after it. Inside a changed line, the exact words or characters that differ are highlighted.
What do Ignore case and Ignore whitespace do?
Ignore case treats Order and order as the same. Ignore whitespace treats a run of spaces or tabs as one space and skips spaces at the start and end of a line, so re-indented text is not reported.
Can I compare JSON or code here?
Yes — any plain text works, line by line. To compare JSON by its keys and values, with key order ignored, use JSON Compare.
Is my text uploaded?
No. The comparison runs in your browser, and both texts are kept in this browser only, so they are still there when you come back.