Semantic JSON Diff

Normalizes key order & formatting · Side-by-side & unified deltas · 100% browser-local

Left JSON
0 lines
Right JSON
0 lines
Ready
Myers O(ND) Diff · Cmd/Ctrl+Enter to compare
Advertisement
Reserved fixed-height slot (CLS = 0.00) 728×90 320×100 300×50

Why Semantic JSON Diff Beats Line-Based Text Diff

Per RFC 8259, JSON objects are unordered key-value maps, meaning {"a": 1, "b": 2} and {"b": 2, "a": 1} are semantically identical. Standard line-by-line diff utilities flag reordered keys, 2-space vs 4-space indentation, or minified vs pretty-printed responses as complete file rewrites, burying the single changed timeout or feature flag in red and green noise.

With Ignore Key Order enabled, this workbench parses both inputs, recursively canonicalizes object keys across every nested level, and diffs the normalized representation cleanly. Toggle Ignore Key Order off anytime you need to audit exact raw serializer byte ordering.

  • Semantic NormalizationParses both JSON trees and recursively sorts object keys before diffing so formatting and key order produce zero noise
  • Delta IndicatorsAccessible +, -, and ~ badges paired with line counts and exact structural change summary
  • Zero-Upload SecurityRuns 100% inside browser RAM—safe for production API payloads, webhook bodies, and customer records
Does Ignore Key Order also reorder JSON arrays?

No. Array order is semantically significant in JSON (index 0 vs index 1), so only object keys are recursively sorted while array element positions are preserved.

What if one side contains invalid JSON syntax?

The workbench immediately displays the exact parse error and offers a 1-click path to repair or validate the broken side before semantic comparison.

Does this detect type changes like 200 (number) vs "200" (string)?

Yes. Strict JSON normalization preserves quotes on strings, so numeric 200 and string "200" are clearly flagged as modified.