JSON Diff
JSONFree · PrivateCompare two JSON objects semantically — key-order insensitive. Side-by-side color-coded diff with added, removed, and changed values highlighted clearly.
What is JSON Diff?
JSON Diff compares two JSON documents and highlights what changed between them. Unlike a plain text diff, semantic JSON diff understands the structure of JSON: it compares objects by their keys regardless of order, so reordering keys in an object does not appear as a false change.
How to compare two JSON objects
- Paste the original JSON in the left (Original) pane.
- Paste the modified JSON in the right (Modified) pane.
- Click Compare. Changes appear colour-coded: green for added, red for removed, amber for changed values.
- Switch to Text diff mode for a line-by-line view. Choose word or character granularity for fine-grained comparisons.
Semantic diff vs text diff — when to use each
Semantic diff is ideal when you care about data changes, not formatting. If two API responses differ only in key order or indentation, semantic diff correctly reports them as identical.
Text diff is useful when you want to see the exact characters that changed — for example, comparing two versions of a package.json to see which dependency version bumped.
Why this is safer than pasting into AI tools
When you diff API responses or config files, those files can contain secrets, tokens, and proprietary business logic. Pasting them into AI chatbots or server-based diff tools sends your data to third parties. This diff checker runs entirely in your browser — nothing is uploaded.
Frequently Asked Questions
What is semantic JSON diff?
How is this different from a text diff?
Can I switch to a text-based diff view?
Related Tools
Format, beautify, and minify JSON instantly in your browser. Syntax highlighting, error detection, sort keys, and one-click Fix. Your data never leaves your device.
Validate JSON with precise error location and human-friendly explanations. Supports JSON5 and JSONC with comments and trailing commas. 100% client-side.
Compare two texts side-by-side or inline. Word, character, and line diff modes, ignore-whitespace and ignore-case toggles. Your content never leaves your browser.