JSON diff

Compare two JSON inputs after normalizing to pretty-printed form.

Paste two JSON blobs to see line-aligned differences. Useful for config reviews and API response checks.

JSON A
JSON B
Diff

How it works

Each side is parsed and pretty-printed, then compared line by line.

Lines prefixed with - and + show removals and additions; matching lines are prefixed with spaces.

Limitations

This is a line diff on formatted JSON, not a semantic tree diff—reordered keys may show many changes.

Privacy

Both inputs stay in your browser.

Common questions

Same data, different key order?
Key order may differ in output and show as changes.
Invalid JSON?
Both sides must parse as valid JSON.
Text diff instead?
Use the text diff checker for non-JSON plain text.
Validate first?
Use the JSON validator if parse errors appear.