Structure-first JSON diff

Semantic JSON Compare

Compare two JSON documents or check data against JSON Schema. Structure, types, ordering, and exact values are independent options, so the result matches your task.

Comparison runs in your browser Values have their own toggle // and /* */ comments are supported Need to clean up JSON first? Open JSON Formatter →
Comparison mode
What counts as a difference
A JSON AReference structure
Ready to compare
0 characters
B JSON BStructure to check
Ready to compare
0 characters
Ready to compare ⌘/Ctrl + Enter

Result

Your semantic report will appear here

Paste both documents or open the example. Values appear in the report only when their toggle is enabled.

Save comparison

We will create a long unique link that automatically stops working after 24 hours.

Who can open it

Saving happens only when you choose it. Both source JSON documents are encrypted on the server and deleted after expiry.

A semantic JSON comparison, not a text diff

The algorithm understands objects, arrays, and JSON data types, so formatting never masquerades as meaning. It compares the contract by default; the values toggle adds exact checks for strings, numbers, booleans, and null.

Two JSON documents, no noise

Find missing and unexpected fields, type mismatches, and nested structure changes. Turn on exact value differences only when you need them.

JSON Schema validation

Supports required, properties, additionalProperties, items, prefixItems, allOf/anyOf/oneOf composition, and local references through $ref.

Ordering is under your control

Configure object key order and array item order independently. Unordered arrays are matched automatically by structural signature.

This free tool compares JSON structure, data types, ordering, and optionally exact values. Use it for API contract tests, response comparison across environments, migration checks, and JSON Schema validation. All processing stays entirely in your browser.

Related tools