JSON Compare – Find Differences
Paste two JSON blocks side by side — see exactly what changed, line by line.
Differences
How to use it
- Paste the first JSON on the left.
- Paste the second JSON on the right.
- Differences highlight instantly — red for removed lines, green for added ones.
What it checks
Both inputs are parsed as JSON first — if either is invalid, you are told immediately (a lifesaver when an API response breaks your code). Valid JSON is then pretty-printed and compared line by line, so formatting differences don't create false alarms.
For students and developers
Comparing API responses before and after a change, checking config files, or debugging why two "same" objects behave differently — this is the everyday use. Everything runs in your browser, so private API keys in your JSON never leave your machine.
How it works
When you press Compare — or simply type — both sides are first parsed with the browser's JSON parser. If either side fails to parse, you are told which one, and nothing is compared. Valid JSON is then re-printed in one standard format (two-space indentation) and the two printouts are compared line by line using a longest-common-subsequence diff: lines that match are left plain, lines found only in the first JSON are marked removed, and lines found only in the second are marked added.
Worked example
First JSON: {"name": "Asha", "age": 30, "city": "Pune"} · Second JSON: {"name": "Asha", "age": 31, "city": "Pune", "plan": "Pro"}. The comparison reports:
| Change | First JSON | Second JSON |
|---|---|---|
| Value changed | "age": 30 | "age": 31 |
| Key added | — | "plan": "Pro" |
| Knock-on effect | "city": "Pune" | "city": "Pune", |
The third row surprises beginners: because a new key now follows "city", that line gains a comma, so it shows up as a removed line plus an added line. It is the same value — only the punctuation changed. Everything else (the name, the braces) matches and stays unhighlighted, and the header confirms both sides are valid JSON.
Reading the colours
- Red rows starting with − are lines that exist only in the first JSON — removed, or the old half of a change.
- Green rows starting with + are lines that exist only in the second JSON — added, or the new half of a change.
- Plain rows are identical in both. A changed value always appears as one red row and one green row together.
Tips for cleaner comparisons
- Remove noise fields first. API responses with timestamps, request IDs or random tokens will always show differences. Delete those fields from both sides before comparing if you only care about the real data.
- Compare like with like. The tool re-prints both sides in the same format, so a minified one-liner and a neatly formatted file compare correctly — you never need to format anything by hand first.
- Watch arrays. Array items are compared in order, so the same items in a different order appear as changed lines. For ordered data that is exactly right; for sets and tag lists it is a useful warning, not an error.
A debugging workflow that works
Save the response from the working version of your app as the first JSON, then paste the response from the broken version as the second. The highlighted lines are your suspects: a field that vanished, a number that quietly became a string, a null sitting where an object used to be. Nine times out of ten the bug is visible in the diff before you open a debugger. And because everything runs locally in your browser, you can safely paste responses containing tokens or customer data — they never travel to a third-party server for comparison.
Frequently asked questions
What does this JSON compare tool do?
It shows line-by-line differences between two JSON objects — added lines in green, removed in red.
Does it validate my JSON too?
Yes. If either side is not valid JSON, it says so instead of comparing.
Is my data sent to a server?
No — comparison happens entirely in your browser.
Can I compare more than two JSONs?
Two at a time. For three, compare the first two, then the winner against the third.
Does the order of keys matter?
Yes. Both sides are re-printed in the order their keys were written, so the same object with keys shuffled can show lines as moved or changed. If you suspect that is all that happened, sort the keys in both objects the same way and compare again.
How large a JSON can I compare?
It runs comfortably up to a few thousand lines. Because the diff compares every line against every other line, extremely large files — tens of thousands of lines — can take a few seconds or feel slow on a phone. For files that big, split them into sections and compare part by part.
Is the JSON Compare \\\\\\\\\\\\\\\\u2013 Find Differences free to use?
Yes. The JSON Compare \\\\\\\\\\\\\\\\u2013 Find Differences is completely free on RupayaTools — no sign-up, no subscription and no usage limit. Just enter your values and your result appears straight away.
Do I need an account to use the JSON Compare \\\\\\\\\\\\\\\\u2013 Find Differences?
No. The JSON Compare \\\\\\\\\\\\\\\\u2013 Find Differences works without any account or login, and you can use it as many times as you like. There is nothing to install either — it opens directly in your browser.