JSON Diff

Compare two JSON objects and see added, removed, and changed properties. Free online JSON diff tool with path tracking. Free, private, in-browser.

How to use

  1. Paste JSON — Enter two JSON objects to compare
  2. View differences — See added, removed, and changed properties
  3. Review paths — Each difference shows its exact JSON path

What Is a JSON Diff Tool?

A JSON diff tool compares two JSON objects and identifies the differences between them. It shows which properties were added, removed, or changed, making it easy to understand what changed between two versions of data.

Why Compare JSON?

API responses change between versions. Configuration files get updated. Database records are modified. Understanding exactly what changed is crucial for debugging, code review, and data validation. A JSON diff tool gives you a clear, structured view of every difference.

How It Works

  • Deep comparison: Recursively traverses both objects, comparing values at every level.
  • Path tracking: Each difference shows its exact location using dot notation (e.g., user.address.city).
  • Type detection: Distinguishes between added keys, removed keys, and changed values.

Common Use Cases

Compare API responses before and after changes. Review configuration file updates. Debug data transformation pipelines. Validate database migration results. Compare different environment configurations.

Privacy

All comparison logic runs in your browser. Your JSON data never leaves your device.

Format JSON with the JSON Formatter. Validate syntax with the JSON Validator.

Frequently asked questions

What types of differences are detected?

Added properties (in right but not left), removed properties (in left but not right), and changed values (same key, different value).

Does it handle nested objects?

Yes. The diff algorithm recursively compares nested objects and arrays, showing the full path to each difference.

Can I compare arrays?

Yes, arrays are compared element by element using index-based matching.

What if the JSON is invalid?

The tool shows a parse error message. Both inputs must be valid JSON.

Related free tools

  • XML Formatter & Minifier — Beautify or minify any XML — SOAP, RSS, SVG, sitemap. Browser-based parser.
  • XML to JSON Converter — Parse any well-formed XML into a clean JSON tree with attributes and arrays.
  • JSON to XML Converter — Convert JSON to well-formed XML — supports attributes, custom root, declaration.
  • CSV Viewer — Open CSV or TSV files in your browser — sort, search, paginate, export filtered view.
  • JSON to CSV Converter — Convert JSON data to CSV format. Export to spreadsheets easily.
  • CSV to JSON Converter — Convert CSV data to JSON format. Useful for API development.
  • JSON Formatter — Format, beautify, or minify JSON with customizable indentation.
  • JSON Validator — Validate JSON syntax and find errors with line and column numbers.
  • HTML Minifier — Compress HTML by removing comments, whitespace, and line breaks.
  • CSS Minifier — Minify CSS by stripping comments, whitespace, and unnecessary characters.
  • JavaScript Minifier — Compress JavaScript by removing comments, whitespace, and empty lines.
  • Base64 Encoder/Decoder — Encode text to Base64 or decode Base64 back to text. UTF-8 support.

Browse all free tools · Guides and tutorials · PDF tools · Developer tools · Text tools · SEO tools