What is a JSON diff?
A JSON diff compares two JSON documents and reports their differences: values that were added, removed or changed, each identified by its path. It's used to review configuration changes, check what an API returns after a release, and debug why two environments behave differently.
Paste the original and changed versions. The tool counts changes, additions and removals, and lists each one with its path and the before and after values. Choose a key to match array items by, ignore capitals in text if needed, or switch to a line-by-line view of both documents with keys sorted.
How to use the JSON diff
1.Paste both versions
Original on the left, changed on the right.
2.Set array matching
Match list items by a key such as id, or by position.
3.Read the changes
As a list of paths, or a line-by-line diff.
Example: two releases of a config
Version 2.3.0 and 2.4.0 of an API config, with users listed in a different order:
- Changed
- $.version, $.debug, $.features.export, $.users[id=2].role
- Added
- $.features.share, $.users[id=3]
- Type changed
- $.timeout: 30 → "30"
Seven real differences, and the reordered user list doesn't add noise.
Compared by meaning, not text
A plain text diff flags reordered keys and different indentation as changes. This compares the data itself: objects are matched key by key whatever their order, and the line view sorts keys first so only real differences show.
Arrays are tricky: when one item is inserted, every later position looks different. Matching items by a key such as id pairs them properly, so a reordered list of users shows only the users who really changed. A value that changes type, such as 30 becoming "30", is flagged separately because it often breaks code.
Frequently asked questions
Does key order matter?
No. Objects with the same keys and values are equal in any order.
What if array items have no id?
Clear the key box to compare items by position instead.
Can I export the differences?
Yes. Copy report gives a plain-text list of every change.
Is anything uploaded?
No. Both documents stay local.
Related tools
Text Diff Checker
Compare two texts by line, word or character and see what changed.
JSON Formatter & Validator
Pretty-print, minify, sort and validate JSON with line-numbered errors.
JSON viewer
Explore JSON as a collapsible tree, search it and copy paths.
JSON ↔ CSV Converter
Convert JSON arrays to CSV and CSV back to JSON.
JSON to TypeScript Interface Generator
Generate TypeScript interfaces or types from a JSON sample.
JSON ↔ YAML Converter
Convert JSON to YAML and YAML to JSON.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table