Compare JSON Online

Paste two JSON objects or arrays. See what changed — added, removed, or modified keys.

🔒 100% private — runs entirely in your browser

or try sample data

What is JSON Diff?

JSON Diff is a free tool for comparing JSON objects and arrays side by side. It highlights added, removed, and modified keys with color-coded visual diffs. Perfect for API testing, config validation, and debugging.

  • Deep comparison — compares nested objects and arrays at any depth.
  • Path-based highlighting — see exactly which keys changed and where.
  • Privacy-first — all processing happens in your browser. Nothing is uploaded.
  • Accepts any valid JSON — objects, arrays, or mixed structures.

How to Use JSON Diff

Comparing JSON data takes three steps — paste, compare, and review.

1. Paste Your JSON

Paste the original JSON in the left panel and the modified version in the right. The tool accepts objects, arrays, or any valid JSON structure.

2. Choose Options & Compare

Check Ignore array order if element position doesn't matter, then click Compare. The diff engine parses both inputs and compares them structurally.

3. Review the Visual Diff

Added keys appear in green, removed keys in red, and modified values in yellow. Use the path-based highlighting to navigate deeply nested changes.

Common Use Cases

API Response Regression Testing

Compare API responses before and after a deploy to catch unintended changes. Paste the before and after JSON from tools like Postman or curl and instantly see which fields changed.

Config File Change Review

Diff environment config files (e.g., config.staging.json vs config.production.json) to verify that only intended settings differ between environments.

Database Export Validation

Export query results as JSON and compare snapshots taken at different times. Useful for verifying that migrations, seed scripts, or ETL jobs produce the expected output.

Merge Conflict Resolution

When Git shows a conflict in a JSON file, paste both versions here to see the structural differences clearly — much easier than reading raw merge markers.

Frequently Asked Questions

How do I compare two JSON objects online?

Paste your original JSON into the left panel and the modified JSON into the right panel, then click Compare. The tool instantly highlights added, removed, and modified keys with color-coded diffs. You can also check 'Ignore array order' to compare arrays regardless of element position.

What is a JSON diff?

A JSON diff shows the exact differences between two JSON data structures. Unlike a plain text diff, a JSON diff understands the structure of your data — it compares keys, values, arrays, and nested objects semantically, so you see meaningful changes rather than line-by-line text differences.

Is my JSON data safe when using this tool?

Yes. This tool runs entirely in your browser using client-side JavaScript. Your JSON data is never sent to any server, making it safe for comparing sensitive API responses, configuration files, and proprietary data.

Can this tool compare deeply nested JSON?

Yes. The diff engine recursively compares objects and arrays at any depth. Nested changes are highlighted with path-based navigation so you can see exactly where in the structure a value changed, was added, or was removed.

What is the difference between JSON diff and text diff?

A text diff compares raw lines of text character by character. A JSON diff parses the data first and compares it structurally — so reordering keys in an object or changing whitespace won't show as differences. Use JSON diff for structured data and text diff for source code or plain text.

Is this JSON comparison tool free?

Yes, completely free with no sign-up required. There are no usage limits, and all features — including deep comparison, array order ignoring, and result copying — are available at no cost.