How to Compare and Search JSON Files Online
Once your data grows beyond a few lines, two questions dominate your day: what changed, and where is that one value buried? The Compare & Search tools answer both. This guide shows how to diff two JSON documents structurally and how to find and replace anything inside a single document — all locally, with nothing uploaded.
Comparing JSON: text diff vs structural diff
A plain text diff — the kind git uses — compares documents line by line. That's perfect for source code, but for JSON it's easily fooled: reorder a few keys or reformat the whitespace and a text diff lights up with changes even though nothing actually differs.
A structural diff understands the data instead. It compares values by their key path, so it reports a difference only when a value truly changes, and treats reordered keys as identical. That's the single biggest advantage when comparing JSON.
How to compare two JSON files
Open the JSON Diff checker, then paste or upload your two documents into the Original and Changed panes. The Differences panel beside them shows a structural tree diff that's order-independent for object keys.
Differences are color-coded git-style so you can scan a large comparison in seconds, and a summary tells you the totals at a glance:
- Added — keys present in the new document but not the old.
- Removed — keys present in the old document but not the new.
- Changed — keys whose value differs between the two.
Searching and replacing inside JSON
The Search & Replace tool lets you find any key, value, or fragment of text in a document, then swap matched text across the whole thing in one pass. A live match count and a list of every hit, with its line and column, show you exactly what will change.
For anything beyond a literal string, switch on regex mode to search with full regular expressions — including capture groups you can reference in the replacement as $1, $2, and so on. Nothing is written back to a file; you copy or download the result once you're happy with it.
Real-world uses
Comparing and searching JSON shows up constantly in day-to-day development:
- Spotting regressions between two API responses.
- Catching config drift between staging and production.
- Renaming a field everywhere it appears in a payload.
- Finding every place a secret or ID is referenced.
- Reviewing exactly what a migration changed before you ship it.
Private by design, even for large files
Both tools run entirely in your browser, so even large documents are compared and searched locally — your data is never uploaded. They're completely free, with no sign-up, no limits, and no ads getting in the way.
Try it yourself
Compare two JSON objects side by side and see exactly what was added, removed, or changed.