Skip to the tool
GigaJSON

JSON Diff

All tools
Format and check
View and query
Convert
JSON to code
Encode and decode
Sample files
Guides Open GigaJSON

Paste or open two JSON documents to see what changed between them. Each added or removed line is marked, with its line number in both documents and a few unchanged lines around it. "Ignore key order" is on by default, so objects whose keys were only reordered don't show up as changes. Files are compared in your browser and never uploaded. To compare a document with its own earlier versions, open it in the JSON editor, where History keeps restore points.

How to compare two JSON files

  1. Paste the original JSON on the left and the changed JSON on the right, or open the two files.
  2. The differences appear below, with the number of added and removed lines in the status bar.
  3. Leave "Ignore key order" ticked to compare the data, or untick it to see keys that moved.

Read more: Compare two JSON files: values, key order and saved history

Private, and made for big files

This tool runs in your browser, in a background worker: nothing you paste or open is uploaded, and nothing is kept after you leave. Input can be up to 1 GB, but this operation needs its output to fit in the browser’s text limit. A smaller input may be required. Already loaded features keep working if your connection drops. Loading another tool or jq for the first time needs a connection. When one tool isn't enough, GigaJSON opens your data with a tree, a table, JSONPath/JMESPath/jq queries, transforms, diff and history.

Compare two versions of an API record

Paste this in Original:

{"id":7,"name":"Ada Lovelace","email":"ada@example.com","roles":["admin","editor"],"address":{"city":"London","zip":"NW1"},"active":true}

and this in Changed:

{"active":true,"id":7,"name":"Ada King","email":"ada@example.com","roles":["editor"],"address":{"city":"London","zip":"NW1 6XE"},"lastLogin":"2026-09-29"}

The diff shows four changes: the name, the admin role that was removed, the zip code and the new lastLogin field. The active key moved to the front, but with Ignore key order ticked that isn't a change, because the data is the same. Untick it and the move shows up too.

A changed value appears as a removed line and an added line. For a long list of changes, the guide to comparing JSON files covers arrays, key order and keeping a history of versions.

GigaJSON JSON Diff showing a changed name, a removed admin role, a changed zip code and an added lastLogin fieldGigaJSON JSON Diff showing a changed name, a removed admin role, a changed zip code and an added lastLogin field (dark theme)
Two versions of a user record. With Ignore key order on, the moved active key is not reported. Screenshots follow the page theme. Click to view full size.

JSON compare questions

How do I compare two JSON files?

Open the first file in Original and the second in Changed, or paste them. Both are parsed and formatted the same way, then compared line by line. Added lines are marked +, removed lines −, and a changed value shows as one of each.

What does "Ignore key order" do?

Both documents are compared with their object keys sorted, so {"a":1,"b":2} and {"b":2,"a":1} count as the same. JSON doesn't give object keys an order, so most of the time this is what you want.

Does the order of items in a list matter?

Yes. Lists are compared item by item, in order, because in JSON the order of a list is part of the data. If two lists hold the same records in a different order, sort both first (for example with sort_by(.id) in the jq playground) and compare the results.

Do spaces and line breaks count as changes?

No. Both documents are reformatted the same way before the comparison, so a minified file and a pretty-printed one with the same data show no differences.

Can it compare large files?

Yes, up to about 500 million characters of formatted text per document, compared in a background worker. The page shows the first 2,000 lines of differences.

Is my data uploaded?

No. The tool runs in your browser, in a background worker. Nothing you paste or open goes to a server, and nothing is kept after you leave the page.

All tools