JSON Diff

Live

JSON Diff compares two JSON documents and lists every difference.

Runs in your browser: what you enter is processed on your device and not uploaded to MyToolDock.

What is JSON Diff?

JSON Diff compares two JSON documents and lists every difference. Up to 20 MB per document. Numbers beyond 15 digits lose precision when JSON is read in a browser, so very large IDs can compare as equal when they are not. Arrays are compared position by position unless you tick the option.

How It Works

  1. Enter two pieces of JSON, pasted or loaded from files in the input fields on this page.
  2. Press the button to run JSON Diff.
  3. Read a list of added, removed and changed values, each with its path in the result area, and copy or download it.

Common Uses

Good to Know

Key order and spacing never count as differences. Tick Ignore the order of items in arrays when lists hold the same items in a different order.

How it works

Paste or load the original JSON on the left and the changed JSON on the right, then press Compare. Every difference is listed with its path, such as $.addr.zip or $.tags[1], marked + for added, − for removed and ~ for changed. Key order and spacing are ignored, and 1 and 1.0 are the same number.

By default arrays are compared item by item by position. Tick Ignore the order of items in arrays when the lists hold the same items in a different order; items present on only one side are then reported as added or removed.

Worked example

Comparing {name, age 30, tags [a, b], addr {city, zip 1}, gone, n 1} with a changed copy gave six differences: age changed from the number 30 to the text "30", tags[1] changed from b to c, tags[2] added, addr.zip changed from 1 to 2, gone removed and new added, while the reordered keys and n written as 1.0 were not listed. Arrays [a, b] and [b, a] differed by position and were identical with the order option ticked.

Limits

Up to 20 MB per document. Numbers above 15 digits lose precision when a browser reads JSON, so two very large IDs that differ in the last digits can look equal. Invalid JSON is reported with its line and column. It shows the first 1,000 differences.

Frequently Asked Questions

Does key order matter?

No. Only the keys and values count.

How are arrays compared?

By position, unless you tick the option to ignore order.

Is my JSON uploaded?

No. The comparison runs in your browser.

What does JSON Diff do?

JSON Diff compares two JSON documents and lists every difference. Up to 20 MB per document. Numbers beyond 15 digits lose precision when JSON is read in a browser, so very large IDs can compare as equal when they are not. Arrays are compared position by position unless you tick the option.

What do I need to enter in JSON Diff?

Two pieces of JSON, pasted or loaded from files.

Is my data private in JSON Diff?

Your JSON stays in your browser and is not uploaded.

Is MyToolDock JSON Diff free to use?

Yes, MyToolDock JSON Diff is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.

Where can I learn more about JSON Diff and related workflows?

MyToolDock publishes written guides on the topic: CSV to JSON: Simplifying Web Data Imports; Why Diff Checkers Matter for Version Control. Each guide links back to the tools it covers.

Related Tools

.env and .properties to JSON Converter INI to JSON Converter JSON Flatten and Unflatten Converter JSON Formatter JavaScript Minifier JSON Key Sorter

Guides

More in Developer Tools · Browse all tools

Developer Scratchpad

Copied to clipboard!