JSON Compare

Paste two JSON documents and see exactly what was added, removed or changed. More data tools

Compare two JSON documents

Paste the original in box A and the changed version in box B. The result lists each difference with its path: + added, − removed, ~ changed with the old and new value.

Key order never matters. Tick Ignore array order if lists may be in a different order. Use Copy to paste the difference list into a ticket or a review.

Features

  • Live: the result updates while you type.
  • Clear errors: the line, the reason and, where possible, a one-click fix.
  • Open and drop files, copy or download the result, and share your input as a link.
  • Send to another tool: pass the result straight to a related tool.
  • Private: Everything runs in your browser. Your data is not uploaded to any server.

Related data tools

  • JSON Validator: Paste JSON to check it. If something is wrong you see the line, the reason and a one-click fix. Nothing is uploaded.
  • JSON Minifier: Paste JSON and get the smallest valid version. You see how many bytes you saved.
  • JSON Stringify: Convert JSON to an escaped one-line string for your code, or turn an escaped string back into readable JSON.
  • Sort JSON Keys: Put every object key in order, at all levels. Great before comparing or committing JSON.
  • JSON Tree Viewer: See JSON as a tree you can expand, search and copy paths from.
  • JSON Path Evaluator: Type a JSONPath and see what it matches in your JSON, live.
  • All DataMint tools

Frequently asked questions

Does key order matter?

No. Objects are compared by key, not by position.

How are arrays compared?

By position, or as unordered lists if you tick Ignore array order.

Can I compare big files?

Yes, up to a few MB works comfortably in the browser.

Is my data private?

Everything runs in your browser. Your data is not uploaded to any server. You can even use the tool offline once the page has loaded.