Compare JSON

Depth
Left JSON
Right JSON
Diff View
keys sorted
RemovedAdded

Paste JSON into both panels above to see the diff

Left panel = original · Right panel = modified

Compare JSON — Online JSON Diff

Comparing two JSON documents by eye is slow and error-prone, especially when keys appear in a different order. MyJson’s JSON diff tool lines up two JSON files side by side and highlights every added, removed and changed value so you can see exactly what differs.

Optionally sort keys before comparing so that order-only differences are ignored, letting you focus on real changes in the data.

How to use the compare json

  1. 1Paste both versionsPut the original JSON on the left and the version you want to compare on the right.
  2. 2Sort keys if neededEnable key sorting so two objects with the same data but different key order are treated as identical.
  3. 3Review highlighted differencesAdded, removed and modified lines are colour-coded. Use the navigation controls to jump between mismatches.
  4. 4Tune the comparisonControl the depth of the diff or ignore whitespace to match exactly the level of detail you care about.

Features

  • Side-by-side colour-coded diff
  • Optional alphabetical key sorting before comparing
  • Configurable comparison depth
  • Jump-to-next-difference navigation
  • Ignore whitespace and compare keys only

When to use it

  • Checking what changed between two API responses
  • Verifying a config change before and after an edit
  • Comparing environment configs (staging vs production)
  • Reviewing the output of two versions of a program

Frequently asked questions

How do I compare two JSON files online?

Paste the first JSON on the left and the second on the right. MyJson highlights every difference between them. Enable key sorting to ignore differences that are only about key order.

Can it ignore the order of keys?

Yes. Turn on key sorting and both documents are sorted alphabetically before the comparison, so reordered keys are no longer reported as differences.

Does the comparison happen on a server?

No. Both JSON documents are compared locally in your browser, so nothing is uploaded and your data stays private.

Related tools

Looking to learn more? Browse our JSON guides and tutorials.