JSON diff

A line-based diff is nearly useless on pretty-printed JSON: adding one key reflows the indentation and every following line reads as changed. What you want to know is which value differs, and where it lives.

Both documents are parsed and walked together. Each difference is reported as a path using dots for keys and brackets for indices, so plan.seats and tags[2] each name exactly one value rather than a line range.

Runs entirely in this tab. Nothing you paste is uploaded, logged or stored — close the page and it is gone.

Questions about this tool

How are arrays compared?

By position. An array is a sequence, not a set, so inserting an element at the front reports every later index as changed — that is the honest reading of the edit.

What does ignoring key order do?

It sorts object keys before comparing, so identical objects with different key order produce no differences. Array order is always significant and is never ignored.

Is the output valid machine-readable JSON?

No, it is a human-readable change list. If you need a patch format, a JSON Patch library is the right instrument — this is for reading.

AI alternatives from the directory

Browse coding tools →

This utility handles the job by hand. These do it with a model — worth a look when the task outgrows copy and paste.

Cursor logo
Cursor
Coding
☆

The AI-first code editor

Built on VS Code, Cursor offers codebase-aware chat, multi-file edits and fast autocomplete for real engineering work.

CodeRabbit logo
☆

AI reviewer that comments on every pull request

CodeRabbit reviews PRs automatically, leaves line-level comments and can apply fixes through chat commands.

Claude Code logo
☆

Anthropic's terminal agent that edits whole repos

Claude Code runs in your shell, reads the repository, plans a change and applies multi-file edits with tests.