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

Paste two JSON documents to compare automatically.

0
Added
0
Removed
0
Modified
0
Unchanged

JSON syntax error: Expected double-quoted property name in JSON at position 111 (line 7 column 5)

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

Secure JSON Formatter & Type Generator - Local Type Gen

Secure JSON formatter: format, validate, and fix JSON locally. Beautify/minify, highlight errors, generate TypeScript or Zod, convert to XMLโ€”private. Try now.

Free JSONPath Tester & Evaluator | Local Real-Time Queries

Free JSONPath tester and evaluator for API JSON. Extract matching nodes in real time, inspect paths, and copy JSON results while parsing stays local in your browser.

JSON to CSV Converter - Local Spreadsheet Export

Convert JSON objects or arrays to CSV locally in your browser. Flatten fields, preview the result, then copy or download CSV without uploading data.

CSV to JSON Converter - Local Real-Time Parser

Convert CSV text or files to JSON arrays locally in your browser. Supports headers, comma/semicolon/tab delimiters, drag-and-drop files, copy, and download with no uploads.

JSON Minifier & Compressor

Minify JSON into one line, remove indentation and line breaks, and compare original size, minified size, saved bytes, and saved percentage.

JSON to TypeScript Converter - Generate Interfaces Locally

Free online JSON to TypeScript converter. Instantly generate TypeScript interfaces and types from your JSON payloads. 100% private, client-side code generation.

YAML to JSON Converter - Secure Client-side Parser

Convert YAML to formatted JSON locally in your browser. This developer tool supports live conversion, multi-document YAML, line-aware errors, copy, and JSON download without storing data.

JSON to YAML Converter - Secure Client-side Tool

Convert JSON to YAML locally in your browser with live conversion, strict JSON validation, error details when available, copy, and YAML download. No data is uploaded.

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.