# Compare two JSON documents

> Paste the before and after JSON. Key order is ignored, and changes are listed by path.

See exactly what changed between two JSON documents: added, removed and changed keys, with a JSON Patch you can copy. Free, in your browser.

- Tool: [Compare JSON](https://fixmint.cc/compare-json)
- Category: [Web & developer](https://fixmint.cc/developer-tools)
- Fixes: What changed in this JSON?
- Runs in the browser: files and text stay on the device, no sign-up, free.

## How to compare two JSON documents

1. Paste the old JSON in Before and the new JSON in After.
2. Choose how arrays are matched, and ignore keys like timestamps if you want.
3. Read the changes, or copy the JSON Patch that turns Before into After.

## Questions

### Does the order of keys matter?

No. Two objects with the same keys and values are the same, whatever order the keys are written in.

### How are arrays compared?

With “Match array items by key” on, items are matched by an id, _id, key, uuid or name field, so an inserted item shows as one addition and a moved item as a move. Turn it off to compare items by position.

### What is a JSON Patch?

It is a list of standard operations (RFC 6902) that turns the Before document into the After one. Keys in the paths are escaped the standard way, with ~0 for ~ and ~1 for /.

### Can I paste a curl or devtools response?

Yes. If a box starts with HTTP status and header lines, they are removed and only the body is compared.

## Related tools

- [Format JSON](https://fixmint.cc/json-formatter): JSON won’t parse
- [Compare text](https://fixmint.cc/compare-text): What changed between versions?
- [JSON Schema validator](https://fixmint.cc/json-schema-validator): Does my JSON fit this schema?
- [CSV to JSON](https://fixmint.cc/csv-to-json): Need CSV as JSON, or back
