JSON Compare

Compare two JSON documents online for free. Both are normalized and the differences are highlighted line by line, in your browser.

Suggested tools

Text Compare

Compare two texts and see the differences highlighted line by line and word by word.

TEXT
Open Tool

Compare Lists

Find items that are in both lists, only in the first, or only in the second.

TEXT
Open Tool

JSON Formatter

Beautify, minify and validate JSON instantly in your browser.

JSON
Open Tool

JSON to XML

Convert JSON into well-formed XML.

JSONXML
Open Tool

XML to JSON

Convert XML into clean JSON.

XMLJSON
Open Tool

JSON to YAML

Convert JSON into readable YAML.

JSONYAML
Open Tool

About JSON Compare

JSON Compare shows the differences between two JSON documents side by side. Both sides are normalised and pretty-printed first, so differences in spacing and indentation are ignored and only real changes are highlighted.

It is ideal for comparing API responses before and after a change, two versions of a config file, or test output against expected results. It runs entirely in your browser, so nothing you paste is uploaded.

How to use JSON Compare

  1. Paste the original JSON on the left and the changed JSON on the right.
  2. Press Compare.
  3. Review the highlighted added, removed and changed lines.

Key features

  • Formatting differences ignored
  • Line-by-line highlighting of changes
  • Validates both sides with clear errors
  • Works with large documents

When to use JSON Compare

  • Checking what changed in an API response after a deployment.
  • Comparing two versions of a config file before merging them.
  • Comparing test output with the expected result.

Tips and common problems

  • Sort both documents with JSON Sorter first when key order is different.
  • Both sides are pretty-printed, so whitespace differences never show as changes.
  • For plain text or code, Text Compare offers word- and character-level highlights.

Frequently asked questions

Yes, because the line order differs. Run both documents through JSON Sorter first to compare them regardless of key order.