JSON Diff

Paste original and modified JSON to see structural changes and a formatted unified diff. Ideal for API payloads, configs, and test fixtures.

  • Runs entirely in your browser
  • No data stored or sent to a server
  • Free forever — no signup
  • Instant conversion

Input and Output

Use the interactive encoder and decoder on this page to process your text.

Learn more about JSON diffs

How to Compare JSON Documents

JSON Diff

Structural vs Line Diff

This tool first parses both JSON documents, summarizes key-level changes (added, removed, and modified keys), then shows a pretty-printed unified line diff for full visibility.

Common Use Cases

  • Comparing API responses before and after a change
  • Reviewing config file edits
  • Debugging test fixture differences

Frequently asked questions

Does key order matter?

JSON is parsed before diffing, so key order in the input does not affect structural comparison. The line diff uses pretty-printed output.

What if one side has invalid JSON?

The tool reports a parse error for the invalid panel before running the diff.