JSON Diff shows what changed between two pieces of JSON. It pretty-prints both sides, optionally sorts keys recursively, then compares them line by line and highlights added and removed lines. Typical uses are API debugging, regression testing and checking config files.
How to use
- Paste the two JSON inputs into Buffer_Alpha and Buffer_Beta, or click ”[ Paste ]” to read from the clipboard.
- Leave Recursive_Sort on and click Analyze_Diff.
- Switch between Side_By_Side and Unified views; the header counts added and deleted lines.
Why sort first
When two responses have the same fields in a different order, a plain line diff lights up everywhere. With Recursive_Sort on, the keys at every level are sorted alphabetically before comparing, so what remains are the values that actually changed.
Features
- Pulls JSON out of text mixed with log lines or other noise, so you don’t have to clean it up first.
- Swap_Streams swaps the two sides, Load_Sample loads example data, Reset clears everything.
- Both inputs and the sort setting are kept in browser storage, so a page refresh loses nothing.
FAQ
Is my data uploaded?
No. Parsing and comparison happen entirely in your browser with no network requests, so it is safe to paste internal API responses.
Does it compare by field path?
No. It compares the pretty-printed text line by line, so results are shown per line. With key sorting on, each field always lands in the same place, which makes the result read much like a field-by-field comparison.