Code Tools

JSON Compare

All tools

Find exactly which fields differ between two JSON payloads, listed by path, regardless of key order.

How it works

Four simple steps

1

Fill both panels

Paste the original into JSON A and the changed version into JSON B.

2

Key order ignored

Objects are compared key by key, so reordering is not a change.

3

Read the path list

Each difference appears as a path such as $.user.role with details.

4

Keep the report

Copy the list or download it as a text file.

JSON Compare

About JSON Compare

Staging and production return slightly different responses for the same request, and a line-by-line text diff is useless because the keys come back in a different order. You need to know which values actually changed.

Paste the first document into JSON A and the second into JSON B. Both are parsed, and if they match after sorting keys at every level you get a clear deeply equal message. Otherwise the tool walks both structures together and lists each difference on its own line: changed values with the old and new value, keys missing in A or in B, type mismatches such as string versus number, and arrays whose length changed. The comparison reruns on every edit, and Sample loads two small payloads so you can see the output format.

Arrays are compared position by position. If one item was inserted at the start of a list, every following index is reported as changed, so sort both arrays by a stable field first when order does not matter. An empty panel is treated as null. For a visual line view of any text, use the side-by-side text diff; configuration in YAML has its own tool to compare YAML configs. The JSON tree viewer helps you find a reported path in a large document.

Both documents are parsed and compared in memory in this tab, so responses containing tokens or personal data can be diffed safely.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

No. Objects are compared key by key, so {"a":1,"b":2} and {"b":2,"a":1} are reported as equal. Order inside arrays does count.

No. A number and a string are different types, and the path is reported as a type mismatch. That catches a common API regression where IDs switch from numbers to strings.

Yes. Copy puts the list on the clipboard and Download saves it as a plain text file with one path per line.

View more FAQs

Related tools

View all

HTML Formatter

Beautify and indent HTML markup.

Open

CSS Formatter

Format and pretty-print CSS.

Open

JS Formatter

Beautify JavaScript code.

Open

JSON Formatter

Beautify and validate JSON.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools