JSON Diff
Compare two JSON documents in your browser, validate syntax, and get a copyable structured diff with stable paths.
JSON documents
Separate the two documents with a line containing only --- or ===. Comparison runs locally in your browser.
Diff output
Ready to compare two JSON documents.
When to use JSON Diff
Use JSON Diff when you need a quick, private comparison of structured data. No signup or upload required.
- Review API response changes
Paste before-and-after payloads to see exactly which keys changed.
- Validate draft JSON
Catch syntax errors on either side before sending a payload to teammates.
- Debug configuration updates
Compare nested settings and arrays to locate regressions faster.
- Share concise results
Copy a clean JSON array of changes into tickets, pull requests, or chat.
- Compare on mobile
Use the same separator-based workflow on phone or tablet without installing software.
FAQ
- How do I compare two JSON documents?
- Paste the first document, add a separator line with --- or ===, paste the second document, and select Compare JSON.
- What differences does the output show?
- The output lists added, removed, value, and type changes with paths plus from and to values where they apply.
- Is my JSON uploaded or stored?
- No. The comparison runs in your browser and the app does not store user-provided JSON.
- Why am I seeing a validation error?
- The separator line may be missing, one side may be empty, or one JSON document may contain invalid commas, quotes, or brackets.
- Can I copy the diff result?
- Yes. After a successful comparison, use Copy to place the pretty-printed diff JSON on your clipboard.
JSON Diff Help
How to compare
- Paste the first JSON document into the input area.
- Add a line containing only --- or ===, then paste the second JSON document.
- Select Compare JSON, review the structured diff, and copy it if needed.
Tips
- Your input stays in the browser; the app does not store JSON data.
- Object keys are compared in sorted order so repeated runs are deterministic.
- Clear resets the input, output, error message, and copy action.