JSON Compare
Diff two JSON documents and list added, removed, and changed paths.
About the JSON Compare
Compare two JSON structures and get a structural diff showing exactly which paths were added, removed, or changed, along with old and new values. Great for reviewing API response changes or config drift.
Popular uses
- json
- diff
- compare
- structural diff
- json compare online
- compare two json
- json diff
- ignore key order
Examples
Compare two objects
{"a":1} vs {"a":2,"b":3}Output
YAMLa: 1 → 2 (changed), b: 3 (added)Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
JSON Merger
JSON
Merge two or more JSON documents with shallow/deep strategies.
JSON Formatter
JSON
Pretty-print and beautify JSON with custom indentation.
JSON Key Sorter
JSON
Sort JSON object keys alphabetically, naturally, or by array field.
Code Diff Merger
Dev Utilities
Side-by-side line diff of two code snippets with stats.
JSON Diff Viewer
Dev Utilities
Compare two JSON documents and see added, removed and changed keys.
Diff Checker
Text & String
Compare two texts line-by-line with an LCS diff.
Works well with
Next steps from other categories.
Csv To Json
Converters
Convert between CSV and JSON with delimiter and header options.
INI to JSON Converter
Converters
Convert INI config files to JSON and back.
Mock JSON Generator
Generators
Generate arrays of mock JSON records from a simple field schema.
Query String Converter
Network & IP
Convert between URL query strings and JSON, with nested bracket support.
Frequently asked questions
Read more
- Reviewing code diffs side by side: spotting changes and merging snippets offline
Compare two versions of code in your browser, read side-by-side and line diffs correctly, pick the right granularity and keep private code on your device.
- Mastering JSON diffs and technical Markdown: debug API drift and write docs offline
Compare API responses with ignored keys, order-agnostic arrays and JSON Patch export, then document the change in a Markdown editor with live preview — all in your browser.
- A practical guide to formatting, validating and converting JSON
Indentation, key sorting, common parse errors, and when to convert JSON to YAML, XML or CSV instead.
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser