Alternatives · tool comparison
JSON Compare Alternatives
Five tools that answer the same question — what changed between these two JSON documents — and the different jobs each one is actually good at.
The short answer
If your question is "what changed between these two JSON documents, and show me line by line", the JSON Compare tool on this site answers it with no account, no upload and no install. Reach for another tool when the job is different: a diff grouped by JSON path inside an editor you can run code in (PlayCode), a comparison of two files picked from disk (DataSort), or the source code of the diff algorithm itself (JSONDiff.com).
The five tools side by side
| Tool | Free tier | Nothing uploaded | Ignores key order | JSON Patch export | Best for |
|---|---|---|---|---|---|
| JSON Compare, this site | Free, no account | Yes | Switch, on by default | Yes, RFC 6902 | Switches for array order and ignored fields on top of a plain diff |
| JSONLint JSON Compare & Diff (jsoncompare.com) | Free | Yes | Automatic | No | The familiar paste-two-documents screen |
| DataSort JSON Compare | 5 comparisons per 20 minutes | Yes | — | No | Comparing two .json files you pick from disk |
| PlayCode JSON Diff | Free | Yes | — | No | Diffs grouped by JSON path, next to a runnable editor |
| JSONDiff.com (JDD) | Free, open source | Stated | — | No | Reading how a structural diff is implemented |
A dash means the tool did not document the behaviour on its own page when this was written. It does not mean the feature is missing.
What each one is actually good at
JSONLint's JSON Compare & Diff
This is the page most people reach first, and it is the one that shaped how the question is usually answered: paste into an Original box and a Modified box, press Compare, and additions, removals and changes are highlighted, including inside nested objects. It ignores object key order automatically, so a reshuffled document reports as unchanged.
Where it stops: there is no patch export, and the page itself warns that files up to a few megabytes work well while 10 MB or more may slow down. For a one-off look at a config diff, that is all most people need.
DataSort JSON Compare
DataSort is built around uploads rather than a paste box: pick a .json under JSON A, another under JSON B, and the comparison appears on load. It documents a cap of five free comparisons per 20 minutes, with paid plans removing the limit, and it does not list a maximum file size — reasonable, because the work happens in your browser and the real ceiling is your machine's memory.
If every comparison you make starts as two files on disk, the upload-first flow saves a step. If you mostly copy JSON out of a terminal or a chat window, a paste box is faster.
PlayCode JSON Diff
PlayCode's diff is part of a full browser coding sandbox, and it reports differences by JSON path rather than by line. That is the format to want when two objects are nested four levels deep and the useful question is "which exact path changed", not "which line of text changed". Because it sits next to an editor that runs JavaScript, it is also the easiest of the five to use when the next step is to test a fix against the payload you just compared.
JSONDiff.com
JDD is the open-source one. It compares JSON structurally, also validates and formats, and its code is on GitHub — which makes it the only tool on this list whose behaviour you can audit line by line instead of taking on trust. It also loads Google ads and analytics scripts while stating that it does not send your JSON data; if that distinction matters to you, the safe-pasting guide explains what those scripts can and cannot see.
JSON Compare on this site
The difference is in the switches. A plain structural diff answers "did anything change"; these options change what counts as a change in the first place:
- Ignore key order — on by default, so
{"a":1,"b":2}and{"b":2,"a":1}compare as equal. - Ignore case — for values where
Activeandactivemean the same thing. - Structure only — compare the shape of the documents and skip the values.
- Ignore array order — for arrays that are really sets, such as tag lists or ID collections.
- Match array items by — pick a key like
idand items are paired by that key instead of by position, so an inserted element does not light up every following line. - Ignore paths — drop fields that always change, such as
updatedAtor a request ID, before the diff runs.
The result can be read as a line-by-line diff or as an RFC 6902 JSON Patch, copied as Markdown for a pull request comment, or reopened later from a settings link that encodes the switches you used. That last one is how you hand a comparison to a colleague — or finish it on your phone.
Two sites, one name
jsoncompare.com is JSONLint's comparison tool. jsoncompare.co is this one. They share a name and nothing else: different owners, different feature sets, and a search for "JSON compare" returns both. If a description of "the JSON Compare tool's FAQ" mentions a size limit, it is describing jsoncompare.com, which documents one; this site does not impose a run limit or a file-size cap, and is bounded only by your browser.
Pick by the job
- You need to prove what changed in a code review or a bug report: diff here, then copy the JSON Patch into the ticket.
- The arrays are unordered and every element shows up as changed: turn on ignore array order, or match array items by
id. - The documents are config files with rotating fields: set ignore paths so the noise drops out and the real change is visible.
- You are not sure the site is safe to paste into: read is it safe to paste JSON online first.
- You are on a phone: there is a separate walkthrough for comparing JSON on iPhone and Android.
Frequently asked questions
What is the best free alternative to JSON Compare?
It depends on the output you need. For a line-by-line diff with switches for arrays and ignored fields, this JSON Compare tool is free and needs no account. For a diff grouped by JSON path inside a coding sandbox, PlayCode's JSON Diff. For an upload box that takes two .json files, DataSort. For reading the algorithm itself, JSONDiff.com, which is open source.
Is jsoncompare.co the same site as jsoncompare.com?
No. JSONLint's JSON Compare & Diff now runs on jsoncompare.com; this site is jsoncompare.co. They are separate tools with separate owners. The features differ: jsoncompare.com does not export a JSON Patch, and this site does, along with switches for array order and ignored paths.
Do any of these tools upload my JSON to a server?
All five say the comparison runs in the browser, and this one, JSONLint's and PlayCode's state that the pasted text is not sent to a server. A claim is not proof, so check the Network tab while you compare; the safe-pasting guide walks through that in five steps. None of them should be used for live credentials.
Which of these can generate a JSON Patch?
This site and its JSON Patch page produce an RFC 6902 patch you can copy or download as a .patch file. The other four show a human-readable diff only, so you would have to write the patch operations yourself or run a library such as jsondiffpatch or python-json-patch.
Can I compare two .json files instead of pasting text?
Yes. Here you can drop a .json file straight into either pane and it is read locally by the browser. DataSort is built around two upload boxes and never shows a paste area at all, which is tidier if all you ever do is compare files on disk.
Which JSON compare alternative works on a phone?
All of them open in a mobile browser, because none of them installs an app. The practical limit is layout and memory: two panes become one column on a narrow screen, and files in the multi-megabyte range can stall a phone browser. There is a separate walkthrough for comparing JSON on iPhone and Android.