JSON Comparison
Paste two versions of JSON to see which values were added, removed or changed. Review the differences before saving a report.
Paste or import the original JSON in Before and the updated JSON in After. Choose a number rule, then Validate and compare to see added, removed and changed values below. Your inputs stay in this browser tab.
0 bytes of 2 MiB maximum. Strict JSON only.
0 bytes of 2 MiB maximum. Strict JSON only.
Basic number comparison
Advanced settings
How to use JSON Comparison
Paste or import strict UTF-8 JSON into Before and After, then choose Validate and compare. The original comparison ignores object key order and compares arrays by position. Basic number comparison lets you compare exact numeric values or their written tokens without rounding large numbers. Swap exchanges inputs; Clear offers Undo clear until you edit.
Open Advanced settings and enable advanced comparison rules and exports to use ignored subtree pointers, array matching by ID, absolute numeric tolerance, selected-path review, paired trees and three-way review. The main Validate and compare button then applies those settings. Closing settings keeps them; Reset advanced comparison keeps your input texts.
Ignored paths are exact JSON Pointers, one per line. Use /updatedAt for a field, ~1 for a slash in a key, and ~0 for a tilde. Ignoring a subtree is not redaction: reports and trees can still contain source values. Select a pointer to compare only that part; a blank pointer means the root.
For array matching, choose one array pointer and its ID field. Every matched item must have a unique string or numeric ID; duplicate or missing IDs cause an error. Reordering alone is ignored in that array. Other arrays remain positional. Display paths use After positions for matched or added items and Before positions for removals; the report retains both actual paths. Ignore paths follow those display paths. Select the array itself to apply ID matching in a selected scope.
Absolute tolerance uses exact decimal arithmetic, not a percentage, and requires Exact numeric value mode. For three-way review, provide a shared Base JSON. The result groups changes as left-only, right-only, same-change or conflict. Overlapping parent/child changes are conservative conflicts; the tool does not merge documents.
Enable paired trees before comparing, expand branches or choose Compare this path for a narrower review. Next/Previous difference focuses each changed row. Use Alt+ArrowDown or Alt+ArrowUp while focused in the results. Trees show up to400visible rows per side; the differences list shows the current100-row window. Navigation and complete downloads reach all recorded differences.
Download an advanced JSON report, a script-free HTML report or a complete JSON Patch. The patch always transforms the complete Before value into complete After, including values hidden by ignore, tolerance, ID, scope or three-way review settings. Arrays are replaced as complete values and numeric tokens stay exact. This follows JSON Patch and JSON Pointer; downstream tools must also handle large numbers losslessly.
Download or import a comparison recipe to reuse rules and number mode without including source text, base text, filenames or reports. Files are validated before settings change. Review exports before sharing because they can contain your data.
Example: compare two versions of a product list
Before contains {"items":[{"id":"a","price":10},{"id":"b","price":20}],"updatedAt":1}. After contains {"items":[{"id":"b","price":20.01},{"id":"a","price":10}],"updatedAt":2}.
Enable advanced comparison, ignore /updatedAt, match /items by id and set an absolute tolerance of 0.01. The review reports equality under those rules. The complete JSON Patch still changes the timestamp, price and array order because it describes the full transformation.
About structural differences and safe review
Structural comparison finds added, removed or changed values rather than changes in indentation. Exact numeric value treats 1, 1.0 and 1e0 as equal. Number token spelling keeps those distinctions. The lossless parser retains large and exponent-written numbers without converting them to rounded JavaScript numbers.
Each input supports up to2MiB,100levels and100,000nodes, with bounded number tokens/exponents. Comments, trailing commas and duplicate keys are rejected. An advanced task has8seconds, up to20,000differences and a20MiB complete result. Three-way overlap groups have additional bounds; narrow the selected path if needed. Recipes are limited to16KiB. Invalid data or excess work produces an explanation rather than a partial patch.
Source stays in this browser tab and is never executed or uploaded. There is no automatic storage or merge. An exported patch is a sequence of value changes, not a claim that the change is safe for your application. Keep a copy of the original and verify your application after applying changes.
Stars and feedback
Loading…
What could we improve in JSON comparison?
Email us feedback@tooltulip.com
Tool reference #110