search
format_align_left
JSON Formatter CSS Formatter HTML Formatter JavaScript Formatter XML Formatter SQL Formatter Exception Formatter Markdown Preview & HTML to Markdown
data_object
JSON to Excel/CSV JSON to TypeScript, C#, Go, Java, Kotlin, Python & Dart JSON ⇄ YAML / TOML Converter JSON Diff – Compare Two JSON JSON Viewer & JSONPath Tester
table_chart
Excel/CSV to JSON Excel/CSV to SQL Excel/CSV to HTML
description
Compare text Text to Hex Text to Base64 Case Converter Regex Tester Vietnamese Accent Remover & Slug Generator Word Counter Line Tools: Remove Duplicates, Sort Lines Lorem Ipsum Generator
image
Convert Image Image to Base64 Converter Image Compressor Resize & Crop Image Favicon Generator Color Palette from Image EXIF Viewer & Remover
qr_code_2
QR Code Generator QR Code Scanner VietQR Bank Transfer QR Generator Wi-Fi QR Code Generator vCard QR Code Generator (Business Card) Barcode Generator (EAN-13, Code 128, Code 39)
lock
Convert Token Convert Hash Generate Password HMAC Generator (SHA-256, SHA-512) AES Encrypt / Decrypt Online Bcrypt Hash Generator & Checker
schedule
Convert datetime Timezone Info Vietnamese Lunar Calendar Converter Date Calculator Cron Expression Parser Countdown Timer
link
Encode and Decode URLs Shorten URL URL Parser & UTM Builder HTTP Header Checker
storage
Statistics Parser Statistics Compare SQL INSERT to JSON Converter SQL Table to C# / TypeScript / Java Class
travel_explore
Create Sitemap robots.txt Generator Meta Tag Generator Open Graph Preview
terminal
Number Base Converter UUID / ULID / NanoID Generator Chmod Calculator HTTP Status Codes
palette
Color Picker
help_outline
About UsPrivacy PolicyTerms of Service
THUTOOL
search

JSON Diff – Compare Two JSON

🔒 Processed 100% in your browser – your data never leaves your device

How to compare two JSON documents

  1. Paste the original JSON in the left box and the new JSON in the right box.
  2. The comparison runs as you type. The summary shows how many values were added, removed and changed.
  3. The Differences tab lists each change with its JSON path, old value and new value. The Side by side tab shows both documents pretty-printed with changed lines highlighted.
  4. Tick Ignore array order when [1, 2] and [2, 1] should count as equal, for example lists of tags or IDs.

Example

Original {"name": "An", "age": 30} and modified {"age": 31, "name": "An", "city": "HN"} give two differences: $.age changed from 30 to 31, and $.city added. The different key order is not a difference.

FAQ

Does key order matter? No. Objects are compared key by key, and the side-by-side view sorts keys so that only real changes are highlighted.

Why are 1 and "1" different? A number and a string are different JSON types, so the change is reported.

What if my JSON is invalid? The error is shown under the box with its line and column, and no result is shown until both documents are valid.

Is my data uploaded? No. Both documents are compared in your browser.

Related tools

  • JSON to Excel/CSVConvert JSON to Excel (XLSX) or CSV online for free. Paste or upload JSON and download a ready-to-use spreadsheet in seconds.
  • JSON to TypeScript, C#, Go, Java, Kotlin, Python & DartGenerate TypeScript interfaces, C#/Java/Kotlin classes, Go structs, Python dataclasses/Pydantic and Dart models from JSON. Runs in your browser.
  • JSON ⇄ YAML / TOML ConverterConvert JSON to YAML or TOML and back. Choose indent, pretty or minified output, see syntax errors by line and column. Runs 100% in your browser.
  • JSON Viewer & JSONPath TesterView JSON as a collapsible tree, search keys and values, copy the JSONPath of any node and test JSONPath queries. Runs 100% in your browser.
  • Number Base ConverterFree number base converter: binary, octal, decimal, hex and any base 2-36. Big integers, negatives, live updates. Runs entirely in your browser.
  • VietQR Bank Transfer QR GeneratorCreate a VietQR / NAPAS 247 bank transfer QR code for any Vietnamese bank with amount and message. Free, works offline in your browser.
@Made by THUTOOL