
ツール / Automate suite
Compare two JSON documents by meaning, with the rules you choose, and take the result away as a patch or a report.
Paste a before and an after. The checker ignores key order and formatting, tells you the path of every change, separates a changed value from a changed type, and lets you decide what counts: array order, matching by an id field, rounding noise, timestamps, null versus missing. Nothing leaves your browser.

What is inside
Objects are compared key by key, so reordering keys or changing indentation produces no difference. Each change shows its path, such as $.users[id=2].role, and the before and after values.
Added, removed, changed (same type, new value) and type change (a number that became a string). A type change is called out on its own because 3 to "3" breaks code that a plain value change would not.
By position, the strict reading. Ignoring order, where equal items cancel out and extra duplicates still count. Or matched by a key field you name, such as id, so a reordered list of records shows only real edits, and records without the key are matched by equality.
Ignore paths with patterns like $.meta.updatedAt, $..id or $.items[*].etag. Treat null and a missing key as equal. Trim strings. Ignore letter case. Set a number tolerance so 19.99 and 19.990000001 do not show up as a change.
If a side is not valid JSON, the tool tells you the line and column, what it expected, and shows the line with a marker. A switch allows comments and trailing commas for config-style files.
Copy or download an RFC 6902 JSON Patch (position-based arrays), a Markdown report with counts, the options used and every change, or read a sorted-key line diff. Open files from disk; read locally.
Worked example
Before and After describe an API service. Between them: version 1.4.0 to 1.5.0, replicas 3 to "3", a price that differs by a rounding error, DEBUG false to true, a new TRACE setting, tags v1 to v2, one user's role changed, users listed in another order plus a new user, a new owner, and a new timestamp.
| Settings | Differences found | What you learn |
|---|---|---|
| Defaults (arrays by position) | 15 | Reordering the users makes every user look changed. Noisy, correct for strict comparison. |
| Match arrays by id, tolerance 0.001, ignore $.meta.updatedAt | 9: 4 added, 1 removed, 3 changed, 1 type change | Only real edits: version, replicas type, DEBUG, TRACE, tag v1 replaced by v2, Sam is now editor, Kim added, owner added. |
| Same, then "Compare by position" for the patch | A patch of replace, add and remove operations | Applying the patch to Before gives After. We test that on 400 random document pairs. |
Reference
| Pattern | Ignores |
|---|---|
| $.meta.updatedAt | That one key. Ignoring an object also ignores everything under it. |
| $..id | Any key named id at any depth. |
| $.items[*].etag | The etag key of every element of items. |
| $.a.* | Every key directly under a. |
| Mode | Matches elements | Best for |
|---|---|---|
| By position | Index to index | Tuples, ordered steps, anything where order is meaning. |
| Ignore order | Any equal element, once each | Tag lists, sets, ids. |
| By key field | Objects with the same value in the named field; others by equality | Lists of records with an id. |
Paths are shown in a JSONPath-like form for reading. Patches use JSON Pointer as RFC 6902 requires, with ~ written as ~0 and / as ~1. In key mode a path such as users[id=2] is a reading aid, which is why a patch is offered only for position-based comparison.
How to use it
Step 1
Paste both sides, or open files. If either side has a syntax error, fix it using the line and column shown.
Step 2
Start with defaults to see the strict difference, then add rules for noise one at a time so you know what each one hid.
Step 3
For lists of records, switch to key mode and name the field. A reordered list should show no changes.
Step 4
Add ignore paths for timestamps, etags and generated ids, and a tolerance for floating-point output.
Step 5
Copy the Markdown report into a review or ticket, or download the patch if the change should be applied.
What it cannot do
If an element changes position in position mode, you see changes at both positions. Use ignore order or key mode instead. The tool does not emit RFC 6902 move or copy operations.
A patch is generated only when arrays are compared by position, and it contains add, remove and replace. Tolerance, trimming and case rules mean the patch leaves values alone that the rules treat as equal.
Comparison runs on your device. A synthetic 20,000-key document pair compared in under a second in our test. The text diff view is skipped when the two sides are too large for a line-by-line comparison, and file open stops at 5 MB.
The comments and trailing commas switch removes both before parsing. It does not accept other JSON5 features such as unquoted keys or single quotes. Duplicate keys follow the browser parser: the last one wins.
Numbers too long for a standard double, such as 9007199254740993, 1e400 or 0.12345678901234567, are kept as written and compared by their digits, so 9007199254740993 and 9007199254740992 are reported as different. 1.0, 1 and 1e0 are equal, and so are 100 and 1e2. A line above the result says how many numbers were compared this way, the changes list shows them as written, and the report and patch carry the original digits. Number tolerance is applied exactly, to the written digits, unless the numbers and tolerance span more than 20,000 decimal places, in which case they are compared exactly with no tolerance, and the result, report and patch note say so. A tolerance the tool cannot read is reported instead of ignored. Numbers with more than 9 exponent digits or more than 10,000 digits are refused with a message instead of being compared.
What it does
Free JSON diff checker: semantic compare with exact paths, type changes, array matching by id or ignoring order, ignore paths, number tolerance, JSON5-style comments, RFC 6902 JSON Patch export and a Markdown report. It runs in your browser.
| Function | What it does here |
|---|---|
| Key order and indentation noise | Ignored |
| Exact path of each change | Yes |
| Reordered list of records | Key mode shows only edits |
| Timestamps and rounding noise | Ignore paths and tolerance |
| Machine-readable output | RFC 6902 patch and Markdown |
Reading the result
Counts the differences by kind, for example "15 differences: 3 added, 0 removed, 11 changed, 1 type change". The chips under it show the same four counts.
Changed means the same path holds a different value of the same type. A type change means the type itself differs, for example the number 1 against the text "1".
Array order, matching by an id field, rounding noise, timestamps and null versus missing all change what counts as a difference. If the count drops after you tick one, that option is what removed the differences.
The Patch tab compares arrays by position and its note says so. If two arrays were reordered, check that note before applying the patch to real data.
Common mistakes
By position, ["a","b","c"] against ["c","a","b"] is three changes. Switch Arrays to Ignore order, or Match objects by key field, and the same pair is identical.
The JSON patch tab is built only for comparing by position. In the other modes the tab says to switch Arrays back first.
Many tools read 9007199254740993 and 9007199254740992 as the same number. This tool keeps long numbers as written and reports them as different. A line above the result says when numbers were compared this way.
{"a":1,"a":2} is read as {"a":2}. The last value wins, as in a browser, so the first is not compared.
Questions
No. Parsing and comparing run in your browser tab. Opening a file reads it locally.
Because many systems treat them differently. The tool never treats a number and a string as equal.
A patch needs a path the receiving system can follow. Keyed paths like users[id=2] are not part of RFC 6902, so the patch tab asks you to switch to position-based comparison.
Each element on one side cancels one equal element on the other. [1,2,2] against [1,2] reports one extra 2.
No. Nothing is saved. Close the tab and they are gone.
Nothing. No account.
Your data
The tool runs in this browser tab. It does not need a server to do its job. The two documents you paste stay in the page. Nothing is copied, downloaded or shared unless you press the button for it.
Keep going
Input To Output
Pipeline
Bar Compare
Bar Compare
Support Matrix
Before After
Before After
Before After
Before After
Before After
Before After
Before After
Input To Output
Before After
Input To Output
Pipeline
Pipeline
Before After
Input To Output
Authored Tiles