jump totool workspace
ToolHub

JSON diff

Locate JSON additions, deletions, and modifications by field path.

Runs the entire process locally
views
—
favorites
—
settings

Original JSON

5 lines · UTF-8Loading…

Modified JSON

6 lines · UTF-8Loading…

Result

3 differences found
changefield pathoriginal valueModified value
~ Changed"tools""diff"
~ Changed"1.0.0""2.0.0"
+ Added—"DevTeam"

Export result

Compares by data structure, ignoring whitespace and object key order.

The report contains all differences and is not affected by filtering.

JSON Patch always preserves array order, regardless of filters or the Ignore order setting.

Tool description and FAQ

Tool Guide

01Compare two JSON documents by structure

Paste content in the original JSON and modified JSON, or open and drag local files. Automatic comparison after editing, no need to unify indentation first. Object key order and whitespace do not affect the results; numbers, strings, booleans, and null are distinguished by type.

02Read and filter differences

New means that it only exists in the modified content, deletion means that it only exists in the original content, and modification means that the value or type of the same path changes. Select the variation type and search for the field path to narrow it down, or click on the path to copy it. The missing side displays —, unlike JSON's null.

03Edit, swap and export

Both editing areas support line numbers, syntax highlighting, folding, search and file import. "Swap" reverses the comparison direction, and new and deleted are swapped. Copied or downloaded reports always contain all differences, regardless of current filtering; they cannot be exported if the input is invalid or there are no differences.

FAQ

Q1Why do differently formatted documents compare as equal?

What is compared is the parsed data structure. Spaces, indents, line breaks, and object key order are not data changes; to compare raw characters, use the text comparison tool.

Q2Why does moving an array item cause several changes?

By default, comparison is based on array index and does not identify element identity or move operations. If the order has no business meaning, you can enable Ignore array order; if the order has meaning, please keep the default option.

Q3Will large integers be rounded?

It will not be converted to a normal Number first. Using lossless parsing and decimal numeric comparison, the report retains the original numeric representation. The numbers 1 and 1.0 are equal, but the number 1 and the string "1" are not equal.