# JSON Diff — Compare JSON Objects Locally

> Compare two JSON documents locally and see changed, added, and removed paths without uploading API data.

Source: https://toolpantry.app/json-diff

## About

Paste two JSON responses, configs, or fixtures and inspect changed paths locally. Sensitive payloads never leave this browser tab.

## Quick answer

**How do I compare two JSON files?** Paste both JSON documents; the tool highlights added, removed, and changed paths while ignoring key order.

## How to compare two JSON files

1. **Paste the two JSON documents** — before and after.
2. **Diff** — keys are compared by path, so object key order does not cause false differences.
3. **Review the changes** — added, removed, and changed values, path by path.

## The practical scenarios

- Comparing API responses between staging and production
- Spotting config drift between environments
- Reviewing fixture changes in a pull request

## Good to know

The comparison is structural, not textual — reformatting is not a difference, a changed value is. Privacy note: API responses regularly contain tokens and customer data; running the diff locally means nothing is uploaded to a third-party service, which is the safer default for production payloads.

## Notes

The comparison is structural and reports paths such as $.stock. It does not execute JSON, call an API, or treat reordered object keys as changes.

## FAQ

**Can I compare API responses?**

Yes. Paste the two responses into the panels. Parsing and comparison run locally.

**Does key order matter?**

No. Object keys are compared by name; a different order alone is not shown as a change.
