JSON Diff & Compare
RFC 8259In-browser onlyPaste or upload JSON to compareHow to compare JSON in 3 steps
JSON Diff compares two JSON documents side by side. Changed lines, and the changed characters inside them, are highlighted, and Prev/Next jumps between differences.
Input JSON documents
Paste, upload, or type JSON payloads into the left (Original) and right (Modified) editor panes.
Inspect visual split diff
Inspect differences side-by-side with synchronized Split Diff, difference navigation, and intra-line highlights.
Inspect and export
Toggle Ignore Whitespace if needed, swap payloads, or copy and download the unified diff patch.
Every change, down to the character
Highlights inside the line
Beyond whole lines added or removed, the exact characters that changed inside a line are highlighted, so a one-digit edit stands out.
100% private in-browser
Diffing runs locally on your client device. Your JSON is never uploaded, so confidential data and API keys never leave it.
Synchronized split diff
Dual scroll-locked panes with Prev/Next difference jumping, centered instant swap (⇄), and high-contrast color markers.
1-click syntax auto-repair
Invalid JSON syntax? Auto-Fix strips trailing commas, comments, and unquoted keys so you can compare without manual debugging.
Precision diffing with Myers SES algorithm
Standard text diff algorithms treat code as raw sequential strings. In JSON documents, unformatted whitespace, arbitrary indentation, or minified text routinely obscures true data changes.
JSON Diff runs a deterministic visual split diff powered by Eugene Myers' O(ND) difference algorithm — the same algorithm family git uses by default — after formatting both documents the same way, then highlights the changed characters inside each line. You can step through each change with Prev/Next buttons, toggle whitespace sensitivity, and instantly invert comparison payloads with the centered Swap button.
- "status": "pending"+ "status": "active"Comparison Standards
How the comparison works.
- ✓Myers Shortest Edit Script (SES) algorithm
- ✓Strict JSON parsing, with errors pinned to line and column
- ✓Sequential diff navigation with Prev and Next jumping
- ✓One-click swap (⇄) of the two documents
- ✓Character-level highlights inside changed lines
- ✓Both panes scroll together
Nothing is uploaded or stored, so you can compare configs and payloads that contain secrets.
Frequently asked questions
Comparing JSON documents, key order and privacy, answered.
How does the side-by-side visual split diff work?
Does JSON Diff ignore key order?
Are my JSON payloads uploaded or sent to any server?
Can I swap the original and modified JSON documents?
How do I navigate between differences with Prev and Next?
What happens if my JSON has syntax errors like trailing commas or single quotes?
Related tools
More browser-based JSON utilities
See where a change sits in the structure.
Open either side in the graph to find the changed key in context, then copy its JSONPath for the bug report.
Last updated