JSON Comparison Tool
JSON Diff — Compare Two JSON Documents
Compare JSON structures side by side and find added, removed, and changed values with their exact paths.
100% In-Browser & PrivateNo uploadsFree forever
Compare two JSON documents structurally to see which properties were added, removed, or changed. MyJSONPal reports each difference at its JSON path instead of treating the documents as plain text.
Paste or drop both documents, compare them locally, and review a concise summary or individual before-and-after values. Array items are compared by index, so insertions can appear as changes at subsequent indexes.
Both documents stay in your browser. The comparison runs in a Web Worker to keep the editor responsive while processing larger inputs.
Example structural difference
$.user.name
"John" → "Jonathan"
$.user.email
added
$.settings.theme
"dark" → "light"How to compare JSON documents
- 1Paste JSON into both editors, load the sample, or drop a JSON file onto either editor.
- 2Validate or format either document if needed, then select Compare JSON.
- 3Review additions, removals, modifications, and type changes by JSON path.
- 4Switch between structural details, side-by-side values, and the summary; copy or download the full diff as JSON.
Why MyJSONPal is different
Privacy-first, by design
All parsing, validation and conversion runs in your browser. Your data is never sent, logged, cached or sold — close the tab and it is gone.
Fast, even on huge files
Heavy processing is offloaded to a Web Worker, so multi-megabyte documents are handled without freezing the interface.
No accounts, no limits
There is nothing to sign up for and no usage quota. Paste, format, convert and download as often as you like.
Frequently asked questions
How is JSON compared?
Both documents are parsed as JSON values and compared by their structure. The result identifies added and removed properties, changed values, and changes between JSON types.
How are arrays compared?
Array elements are compared by index. An insertion or removal can therefore appear as several changed indexes; the tool does not guess item moves.
Are my JSON documents uploaded?
No. Parsing and comparison happen locally in your browser, using a Web Worker for the comparison.
Can I compare invalid JSON?
Both inputs must be valid JSON. The tool reports which side has a syntax error and its line and column when available.
Can I save the diff?
Yes. Copy or download a JSON result containing all differences and the addition, removal, and modification totals.