JSON Diff
Compare two JSON objects recursively and highlight added, removed, and changed keys locally.
🔒 Runs entirely in your browser — nothing is uploadedWhat JSON Diff does
JSON Diff compares two parsed JSON values and reports what changed at each path. It is useful for inspecting API response changes, configuration edits, fixture updates, feature flag payloads, webhook examples, translation files, and generated data where a line-based diff is too noisy. Instead of showing punctuation changes, it walks objects and arrays recursively and labels paths as added, removed, changed, or unchanged. Because both sides are parsed as strict JSON first, syntax errors are caught before comparison, which helps separate invalid input from real structural differences.
The report uses color-coded lines so meaningful changes stand out quickly. Added values appear in green, removed paths in red, changed values in amber, and unchanged primitive paths in muted text. The plain-text report can be copied into an issue, pull request, debugging note, or test review when you need to explain how two payloads differ.
Private browser-based workflow
All processing happens inside your browser with client-side JavaScript. The tool does not upload snippets, configuration values, generated data, query text, or copied examples to a server, and it does not require an account. That local-only model matters for developer utilities because the content pasted into them often looks like real application data: API responses, logs, environment-shaped samples, database queries, markup from drafts, or values copied from production debugging sessions. Keeping the transformation local reduces risk and keeps the interaction fast because there is no network round trip.
The interface is intentionally compact so you can paste input, adjust options, inspect output, copy it, and move back to your editor. Results should still be reviewed before being committed, shared publicly, or used in a production workflow. Browser tools are excellent for quick inspection and preparation, but they cannot understand every project convention, data classification rule, or application-specific validation requirement.
Practical tips
Use this tool for small to medium JSON snippets that you need to understand quickly. Very large documents may be easier to compare in a dedicated editor, especially when arrays contain reordered items or records without stable identifiers. This browser diff compares array positions directly, so an inserted first item can make later array entries appear changed even if their object identities are conceptually the same. Normalize generated timestamps, random IDs, and environment-specific values before comparing so real contract changes are easier to spot.
How to use
- Paste original JSONAdd the baseline object or array on the left.
- Paste changed JSONAdd the candidate object or array on the right.
- CompareReview colored added, removed, and changed paths.