[JSON-COMPARATOR-ONLINE]

JSON Comparator Online

LOCAL

Compare two JSON documents by value. Object key order and whitespace are ignored; array order matters. Your JSON stays in this browser.

Up to 1 MB per input · 100 nesting levels · first 1,000 differences

Paste two documents or load the example to begin.

[STEPS]

  1. 01Paste your baseline into Original JSON and the new document into Updated JSON, or load the example.
  2. 02Click Compare JSON. Formatting and object key order are ignored; arrays are compared by position.
  3. 03Read the added, removed and changed values at each JSON Pointer path.
  4. 04Copy or download the differences as JSON. Editing either input clears the previous result.

[FAQ]

How does this JSON comparator online compare objects?

It parses both inputs as JSON and recursively compares values. Whitespace and object key order do not affect equality. A string such as "1" differs from the number 1, and a missing property differs from null.

How are arrays compared?

Arrays are compared by index, so order matters. If an item is inserted at the start, later items may be reported as changed. Items are not matched by an ID field.

What do the difference paths mean?

Paths use JSON Pointer notation. /settings/theme identifies the theme property inside settings; /items/0 identifies the first array item. A slash in a key is escaped as ~1 and a tilde as ~0. (root) means the entire document.

Can I compare API responses and configuration files?

Yes. Paste two API responses or JSON configuration versions to find changed values, removed properties and new fields. Use Format both to make valid inputs easier to read.

Does my JSON leave my computer?

No. Parsing and comparison run locally in your browser. The copy and download actions create a report on your device; input text is not uploaded.

What limits should I know about?

Each input can contain up to one million characters and 100 nesting levels. Reports show at most 1,000 differences and explicitly mark truncation. Numbers use JavaScript precision; integers outside the safe range are rejected. Quote large identifiers and exact decimal values as strings when precision matters. Duplicate object keys follow JSON.parse behavior: the last value wins.