GGfor Tools

JSON Compare

Compare JSON objects, arrays and values. Ignore object key order, preserve array order, distinguish missing fields from null and compare numbers without floating-point rounding.

JSON Compare

JSON limits: 100000 characters per input, 60 nesting levels, 10000 values, 200 characters per number and explicit exponents from -10000 to 10000.

Comparison results

Comparison results
JSON Pointer pathChange typeOriginal JSONUpdated JSON

Long cells show the first 2000 characters. Copy report retains complete values for the listed differences; it is not a JSON Patch.

Enter valid JSON on both sides to compare structure and values.

JSON comparison guide: structure, paths and exact numbers

Object order, array order and missing values

Object key order and formatting do not change equality. Arrays are compared by index, so inserting an item can change later positions. Types matter: the number 1 differs from the string "1", and a missing field differs from null. Duplicate keys are rejected instead of silently discarding earlier values. String contents are compared exactly, including case and whitespace.

Exact decimal comparison without float rounding

Numbers are compared as normalized decimal coefficients and exponents, not converted to floating-point values. Thus 1, 1.0 and 1e0 are equal, while 9007199254740993 and 9007199254740992 remain different. Negative zero equals zero. This is numeric equality, not a check of the original number spelling. Limits on number length and exponent size keep parsing bounded.

Finding changes with JSON Pointer paths

Paths identify the changed location, such as /users/0/name. A key containing / is escaped as ~1, and ~ is escaped as ~0. A change at the document root uses the root label. Added and removed values are shown separately from changes. Results stop after 1000 differences with a clear notice; they are not a complete report when truncated.

Local processing and related tools

Inputs are processed in your browser, without uploading them for calculation. Copy exports the current result only. Shared website resources may still load. Editing an input clears the previous result to prevent accidental reuse.