Diff Workbench

Git-style split/unified diffs for any text — JSON, XML, YAML, JWT payloads, and more — ignore whitespace/case, inline char/word highlight, copy .patch. For JSON key-path diffs see JSON Structural Diff.

Privacy: 100% Client-Side. Your data never leaves this browser tab. Processing uses Web APIs and client-side libraries only.

Compare any text — JSON, XML/HTML, YAML, JWT payloads, configs, or code — with split or unified Git-style diffs. Export a .patch — nothing leaves this tab.

🔒 100% Client-Side Diff Engine

json
json
+3 added2 removed4 unchanged
1 / 1
Original
Modified
1{
1{
2 "sub": "user_123",
2 "sub": "user_123",
3 "name": "Ada Lovelace",
3 "name": "Ada Lovelace",
4 "scope": "openid profile",
5 "roles": ["reader"]
4 "scope": "openid profile email",
5 "roles": ["reader", "admin"],
6 "active": true
6}
7}
Unified patch preview
===================================================================
--- original
+++ modified
@@ -1,6 +1,7 @@
 {
   "sub": "user_123",
   "name": "Ada Lovelace",
-  "scope": "openid profile",
-  "roles": ["reader"]
+  "scope": "openid profile email",
+  "roles": ["reader", "admin"],
+  "active": true
 }

Why a general diff workbench?

Developers constantly compare configs, JWT claims, XML metadata, and code snippets. A lightweight Git-style viewer with patch export beats pasting into a throwaway gist.

stbox diffs entirely in the browser with jsdiff — no uploads, split or unified views, inline substring highlights, and optional JSON/XML auto-format.

How to use this tool

  1. Paste original and modified content (or use the samples).
  2. Toggle split/unified, char/word highlight, ignore whitespace or case; auto-format JSON/XML when needed.
  3. Jump with Prev/Next, then copy the unified .patch or swap/clear panes.

Frequently asked questions

Is content uploaded?

No. Diffing uses the jsdiff library entirely in your browser.

How is this different from JSON Diff?

JSON Diff focuses on structural path changes for JSON only. Diff Workbench is a general text/Git-style viewer for any format, with inline highlights and patch export.