JSON Diff
Compare JSON values by structure and inspect each changed path.
Plain-text result
Enter text to get started.
How to use JSON Diff
- Paste or type your input. You can also load the example below.
- Adjust the available options. Results update after you finish typing; for very large inputs, select Run.
- Review the result, then copy it or download it to your device.
How this tool works
Object key order is ignored; arrays remain ordered. Paths identify added, removed, changed, and type-changed values. The preview shows up to 5,000 changes, while the downloadable JSON contains all changes. Numbers use JavaScript JSON number precision.
Input and output stay in the current page. Refreshing or closing the page clears them. For very large inputs, use Run to start processing; a task that takes too long is stopped so you can change the input.
Frequently asked questions
Are 2 and 2.0 different?
No. Both parse to the same number. Reordered array entries do count as changes.
Can I compare invalid JSON?
Both sides must parse. The error identifies the input and includes the location supplied by the browser parser.