Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

JSON Diff

This tool compares two JSON documents. It lists every value that was added, removed or changed, with its path, and ignores the order of keys.

How to use JSON Diff online

  1. Paste the first JSON. Type or paste the original.
  2. Paste the second JSON. Type or paste the changed version.
  3. Read the totals. See added, removed and changed.
  4. Open the table. See every path and value.

Why use this free JSON Diff

  • Added, removed and changed
  • Order of keys ignored
  • Paths like JSONPath
  • Table of differences
  • Names which document is invalid
  • Share by link

What it compares

Paste a first and a second document, and the tool walks through both at once. It lists each path where they differ: a value that is only in the second is added, a value only in the first is removed, and a value that is in both but different, including a change of type, is changed. If the documents hold the same data, it says so.

Keys and lists

Objects are compared key by key, and the order of keys does not matter, since JSON objects have no order. Lists are compared item by item at the same position, because their order carries meaning. A list that gained an item at the start therefore shows many changes. The option to keep the order of keys only affects the order of the report.

A worked example

The first document has a set to 1, a list b of two numbers and an object c. The second changes a to 2, adds a third item to b and adds a key e to c. The tool reports three differences: a changed from 1 to 2, an added item at b[2], and an added key c.e with the value true. The table lists the path, the old value and the new value.

Paths

Paths are written like JSONPath: $.c.e for a key and $.b[2] for a list item. Keys that are not simple names are written as $["my key"]. Long values are shortened in the table, with the full data in your own documents. You can copy a path into the JSONPath tester to look at it.

Limits

The tool compares data, not text, so spacing and key order are ignored. It does not detect moved items in a list or renamed keys, which show up as removed and added. Very large documents are fine in a modern browser, but the table shows only the first 500 differences.

Using the tool

Change the text or any option of the JSON Diff and the answer moves straight away. Use result as input to pass the answer to the next step.

JSON Diff: frequently asked questions

Does key order matter?
No. Objects are compared by key.
How are lists compared?
Item by item at the same position.
What counts as changed?
A value in both documents that differs, or a change of type.
How many differences are shown?
Up to 500 in the table, and the totals count all of them.
Can it compare invalid JSON?
No. It names which document is invalid.
Can anyone see the text I put into the JSON Diff?
No. The JSON Diff works in your browser, and nothing is uploaded.
Is there a way to reuse the JSON Diff result?
Save the JSON Diff result as a text file, or copy it from the result box.

Related searches for JSON Diff

  • JSON Diff online
  • free JSON Diff
  • JSON Diff online free
  • JSON Diff for mobile
  • JSON Diff without sign up
  • JSON Diff – Text & Writing Tools

JSON Diff is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Text & Writing Tools →

Search tools