JSON Diff

Processed in your browser — not uploaded to our servers for processing.

Compare two JSON objects structurally — added, removed, and changed keys — so you spot API or config drift without a noisy line-by-line text diff.

Quick answer

TryDevSnip JSON Diff compares two JSON payloads structurally in your browser — real value changes, not key-order noise. Neither side is uploaded.

Offline note
After assets load, many browsers (Chrome/Edge/Firefox) can keep the tool usable offline. Some browsers (e.g. Tor) or private modes block service workers — the tool still runs online without uploading your files to our servers for processing.

Diff result

RFC 6902 JSON Patch

Embed this tool

Paste this iframe on your site. Includes a backlink to JSON Diff. Opens chrome-less with ?embed=1.

How to verify: offline after assets load
  1. Load this page once while online (so scripts are cached).
  2. Open your browser’s Network tab (DevTools).
  3. Turn on airplane mode, or disconnect Wi‑Fi / Ethernet (Chrome/Edge/Firefox usually work; Tor/private modes may block service workers).
  4. Use the tool again with a sample or your own input.
  5. Confirm no new upload requests to our servers — and the result still updates when offline is supported.

Whether online or offline, we don’t upload your inputs to our servers for processing.

How do I compare two JSON files?

Line-based diffs are great for source code. They are awkward for JSON: serializers may reorder keys, pretty-printers change wrapping, and two equivalent objects look “completely different” in a text viewer. A structural JSON diff parses both sides and reports added, removed, and changed paths — so you see product-relevant drift, not formatter noise.

Paste a baseline response on the left and a candidate on the right, then hit Compare. Green marks additions, red marks deletions, and modified leaves show both values. Everything stays on your machine: useful when the payloads include customer data you should not ship to a third-party diff host.

When should I use a JSON diff?

Need to clean up a single payload first? Use the JSON Formatter.

Rate this tool

Frequently asked questions

How is structural JSON diff different from a text diff?

Text diffs treat key order and whitespace as changes. Structural diffs compare the parsed values, so reordering object keys does not create false positives.

Does my JSON get uploaded?

No. Diff runs with jsondiffpatch entirely in your browser. Closing the tab clears the textareas.

What do green and red highlights mean?

Added values are highlighted green; removed values red; modified values show both old and new. Unchanged branches can be collapsed by the formatter styles.

Can I diff arrays of objects?

Yes. When objects have an id or _id field, matching prefers that identity so moves are clearer than naive index comparison.

What if one side is invalid JSON?

The tool stops and shows which side failed to parse. Fix syntax first, then compare again.

What does ignore order do?

When enabled, object keys and array elements are sorted before comparing so reorder-only changes do not show as diffs. Turn it off when array position matters.

What is the RFC 6902 patch?

A JSON Patch document (RFC 6902) describing operations to transform the left document into the right. Generated locally with fast-json-patch — copy it for APIs that accept application/json-patch+json.

Is this free for commercial use?

Yes. The site tools are free to use. No account required.

Debugging LLM API responses? TryTokka watches AI API spend — same maker, optional.

TryDevSnip