How to Use
- Paste the original JSON on the left and the modified JSON on the right, or load the sample.
- Use โSort and Formatโ when the objects use different key order.
- Review the summary: green means added, red means removed, and yellow means modified.
- Inspect the path list to locate each change; enable unchanged fields when you need the full structure.
- 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.cityanditems[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
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.
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.
Calculate compound interest from principal, recurring contributions, APY, and time. Visualize principal, interest, and final balance with a local interactive chart.
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.
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.
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.
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.
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.parsevalidates 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.