Paste two JSON documents and see added, removed and changed fields with their paths. Key order doesn't matter.
No sign-up, no fees.
Shows the difference between two JSON documents with each field's path.
Added, removed and changed fields in different colors.
Key order doesn't matter; there's an option to ignore order in arrays.
What you type is processed, but never shared with anyone.
How to compare two JSON documents
Staring at two API responses to see what changed is tiring. Three steps:
Paste both JSON documents. Put the original on the left and the new one on the right.
Read the differences. The top line says how many were found. Each row shows the field's path (like user.address[0].city) and the before/after values.
Ignore order if needed. If the position of array items doesn't matter, tick Ignore order in arrays.
What is a JSON diff?
A JSON diff compares the values of two JSON documents and tells you what was added, what was removed and what changed. Unlike a line-by-line text comparison, it understands JSON's structure: the same data counts as the same even if the keys are in a different order or one document is on a single line and the other is indented. It's handy for configuration files, API responses and test output.
What you need to know
Paths:a.b[2].c means the c field inside the third item of the b array of a (counting starts at 0).
Type differences:1 and "1" are different; one is a number, the other text.
Array order: By default arrays are compared item by item in order. If you ignore order, items are matched by value.
Validity: Both boxes must hold valid JSON; if not, we tell you which box has the problem.
Tips
If one box is broken, find the error first with the JSON formatter.
For plain text that isn't JSON, use the text diff tool.
To write a TypeScript type for the structure you're comparing, there's JSON to TypeScript.
Frequently asked questions
Is the JSON comparison free?
Yes, it's free with no sign-up.
Does a different key order show up as a difference?
No. Key order doesn't matter in objects.
How are arrays compared?
By position by default. With the ignore-order option, items are matched by value.
Is my data sent anywhere?
What you type is processed, but never shared with anyone. The comparison runs in your browser.
Can I copy the differences?
Yes, the Copy button puts the differences on your clipboard as text.
Does it work with large files?
Files of a few hundred KB are fine; very large ones can slow the browser down.