JSON Diff Checker - Local Semantic Compare

Compare two JSON documents locally in your browser. Sort object keys for a semantic diff, ignore key-order noise, and mark added, removed, and modified fields without uploads.

Click for theater mode

Diff Result

Found 3 change(s)

1
Added
0
Removed
2
Modified
4
Unchanged
AddedpaidAt
2026-05-06T12:00:00Z
Modifiedcustomer.tier
pro
enterprise
Modifiedstatus
pending
paid

JSON parsing, sorting, and comparison run locally in your browser and are not uploaded; refreshing clears the current input.

How to Use

  1. Paste the original JSON on the left and the modified JSON on the right, or load the sample.
  2. Use โ€œSort and Formatโ€ when the objects use different key order.
  3. Review the summary: green means added, red means removed, and yellow means modified.
  4. Inspect the path list to locate each change; enable unchanged fields when you need the full structure.
  5. Copy the diff report or download it for API debugging, release notes, or config review.

Core Features

  • Semantic JSON diff: Parse JSON first, then compare by path so normal key-order changes do not flood the result.
  • Sort by keys: Format both sides and sort object keys alphabetically to remove order-only noise.
  • Added / removed / modified highlights: Use green, red, and yellow states to scan API response or config changes quickly.
  • Path-level inspection: Show differences by paths such as profile.city and items[0].sku.
  • Syntax error detection: Validate JSON before comparison and show a clear error when either side cannot be parsed.
  • Local secure compare: Tokens, database settings, and private payloads stay in browser memory and are not uploaded.

Related Tools

FIRE Calculator 2026 (Inflation Adjusted) | Retirement Gap Simulator

The 2026 FIRE Calculator (Inflation Adjusted). Simulate real purchasing power, analyze retirement savings gaps, and generate a visual wealth roadmap. One-click CSV export for your Excel or Notion finance dashboard. 100% Private, client-side calculation.

Position Size Calculator - Risk-Based Trade Sizing

Calculate trade position size from account balance, risk %, entry, and stop loss. Runs locally in your browser with no uploads, so you can compare risk scenarios before you trade.

Compound Interest Calculator | Free APY & Investment Chart

Calculate compound interest from principal, recurring contributions, APY, and time. Visualize principal, interest, and final balance with a local interactive chart.

Online Loan & Mortgage Calculator - Instant Amortization Schedule

Use this Loan Calculator / Mortgage Calculator to estimate monthly payment, total interest, and an amortization schedule locally. Enter amount, rate, and term to calculate now with instant charts.

Online Investment & ROI Calculator - Compound Interest Visualizer

Use this Investment Calculator / ROI Calculator to estimate starting capital, monthly contributions, annual return, and inflation-adjusted results locally. Calculate projected returns with an instant compound interest chart, ROI, and yearly schedule.

APR to APY Calculator - Convert Nominal & Effective Rates

Use this APR to APY Calculator to convert between APR and APY locally. Enter a rate, choose compounding frequency, and see the effective interest rate, spread, and frequency comparison instantly.

Profit Margin Calculator - Margin vs Markup Converter

Use this Profit Margin Calculator to calculate gross profit, Markup, Margin, and selling price locally. Enter cost and price, or cost and target margin, then calculate your margins instantly.

CPM & CPC Calculator - Ad Spend and CTR Online Tool

Use this CPM Calculator and CPC Calculator to estimate ad spend, impressions, clicks, CPM, CPC, and CTR locally. Enter budget and target costs to plan campaign scenarios instantly.

Calculation Logic

The tool runs a local semantic JSON comparison:

  • JSON.parse validates both JSON documents.
  • Object keys are sorted alphabetically, while array order is preserved.
  • The structure is flattened into paths and values, such as items[0].sku.
  • Each path is classified as added, removed, modified, or unchanged.
  • Data stays inside the current browser session; refreshing the page clears the input and result.
  • Arrays are not reordered because array position often carries business meaning, and very large JSON files can still be limited by browser performance.

FAQ

Is my confidential JSON uploaded?

No. Parsing, sorting, and comparison all run locally in your browser. Refreshing the page clears the current input.

Why does a normal diff show everything as changed?

A text diff treats key order changes as line changes. This tool sorts object keys first, then compares JSON paths to reduce order-only noise.

Can JSON diff ignore key order?

Yes. Object keys are sorted alphabetically before comparison, so the same content with different key order shows no semantic difference.

Does it ignore array order?

No. Array order is preserved and compared by index because order often has business meaning.

Can it compare invalid JSON?

No. If either side cannot be parsed, the result area shows a syntax error so you can fix the JSON first.

Can I export the diff?

Yes. You can copy the diff report or download it as a .txt file.