Skip to Content
ToDiagram

Compare

See what was added, changed and removed between two documents.

Compare puts two documents next to each other and marks the differences, both in the text and on the diagram.

Two JSON documents compared: the text shows a side-by-side diff, and the diagram marks added, changed and removed fields

Compare two tabs

  1. Open both documents, each in its own tab. They must be in the same format.
  2. Click the tab with the newer version, so it is the active tab.
  3. Right-click the tab with the older version and choose Compare.

A third tab opens, named after both documents. It reads the older document as the starting point and shows what the newer one changed:

  • In the text editor: the two documents side by side, with changed lines marked.
  • On the diagram: + and green for what was added, ~ and yellow for what changed, - and red for what was removed.

Close the comparison tab when you are done. Your two documents stay as they were.

Open a comparison example

What can be compared

Compare works with JSON, JSON Lines, YAML, CSV and XML, and both tabs must use the same format. Compare is greyed out for the active tab, for tabs in another format, and for Mermaid and ToDiagram documents.

On this page