Best on a larger screen. The editors have more room on desktop.

JSON Diff & Compare

RFC 8259In-browser onlyPaste or upload JSON to compare
0 / 0
Ln 1, Col 10 lines · 0 bytes
Ln 1, Col 10 lines · 0 bytes
TIP:Compare two JSON documents with side-by-side visual split diff — 100% in-browser.
01-03 Guide

How 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.

    payloads.jsonLeft vs Right
    Original:
    { "v": "1.0" }
    Modified:
    { "v": "2.0" }
    Paste, upload, or editREADY
    01

    Input JSON documents

    Paste, upload, or type JSON payloads into the left (Original) and right (Modified) editor panes.

    diff-settingsRFC 8259
    Split line diff✓ Active
    Ignore whitespaceOptional
    Difference navigationPrev / Next
    02

    Inspect visual split diff

    Inspect differences side-by-side with synchronized Split Diff, difference navigation, and intra-line highlights.

    diff-deltasVisual Highlights
    - "status": "pending"
    + "status": "active"
    Export patchCopy or Download
    03

    Inspect and export

    Toggle Ignore Whitespace if needed, swap payloads, or copy and download the unified diff patch.

Why JSON iGraph Diff

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.

Technical Deep Dive

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.

Line & Token Delta ResolutionMyers SES Diff
Original (Line 3)- "status": "pending"
Modified (Line 3)+ "status": "active"
Engine Specifications

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
RFC 8259 & Myers LCS100% IN-BROWSER

Nothing is uploaded or stored, so you can compare configs and payloads that contain secrets.

Answers

Frequently asked questions

Comparing JSON documents, key order and privacy, answered.

How does the side-by-side visual split diff work?
JSON Diff shows a synchronized two-pane split diff powered by the Myers Shortest Edit Script algorithm. Matching lines remain aligned across both panes, while additions, deletions, and modifications are highlighted with high-contrast color markers, and the changed characters inside a modified line are highlighted too.
Does JSON Diff ignore key order?
Not yet. JSON objects are unordered, so {"a":1,"b":2} and {"b":2,"a":1} hold the same data, but JSON Diff compares the formatted text line by line, so reordered keys show up as removed and added lines. To compare while ignoring key order, format both documents in the JSON Formatter with Sort keys on, then paste them here.
Are my JSON payloads uploaded or sent to any server?
Never. All JSON parsing, formatting, validation, and diff computations run 100% in your local browser sandbox. No data is ever uploaded, logged, or transmitted across a network, making it completely safe for confidential configs and API keys.
Can I swap the original and modified JSON documents?
Yes! Click the centered Swap button (⇄) located in between the two editor panes. It swaps the two documents and recalculates the diff and the difference counter straight away.
How do I navigate between differences with Prev and Next?
Use the Prev and Next difference buttons in the toolbar to jump sequentially between each difference. The counter badge displays your current position (e.g. 1 / 3) and automatically scrolls the diff panes to keep the active change in view.
What happens if my JSON has syntax errors like trailing commas or single quotes?
If either JSON document fails strict RFC 8259 validation, an error banner with the exact line and column pointer will appear. You can click ⚡ Auto-Fix Syntax in the editor to immediately repair trailing commas, unquoted keys, single quotes, and comments into valid JSON.

Related tools

More browser-based JSON utilities

Graph Visualizer — Live

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.

GRAPH SCHEMA PREVIEWINTERACTIVE
Root: Object→Deltas
The diff runs in a Web Worker in your browser

Last updated