Skip to tool
FeuTex · free tools runs in-browser no bloat built by LiMiT

JSON Diff Formatter

Compare two JSON documents and get a readable diff (added/removed/changed) by JSON Pointer path. Use it to review config changes, API responses, or snapshots without installing anything.

Category: Text · URL: /tools/json-diff-formatter.html

Tip: Keep Sort object keys on for stable results. JSON Patch is best with array order intact.

JSON A (original)

JSON B (updated)

Diff output

Legend: + added, - removed, ~ changed. Paths are JSON Pointer style (e.g. /meta/active).

Privacy: runs locally in your browser. No uploads, no tracking scripts.

How to use

Paste JSON A and JSON B, then run the diff.

  1. Paste the original JSON into JSON A and the updated JSON into JSON B.
  2. Keep Sort object keys on for more stable output.
  3. Click Diff to get a change list (or select JSON Patch for patch output).
  4. Use Pretty/Minify to normalize inputs, and Copy output to share.
Keywords this page targets (natural cluster): json diff formatter, compare two json files, json diff online, json compare tool, json difference checker, json diff by path, json pointer diff, json patch generator, rfc 6902 patch from json, pretty print and diff json, minify json and compare, sort json keys and compare, find changes between json, compare api responses json, json diff added removed changed, json array diff, json config diff, json structural diff
Secondary intents covered: Find what changed between two JSON responses, Generate a concise change list for code review notes, Export differences as JSON Patch operations, Normalize JSON (pretty/minify) before comparing, Sort object keys to make diffs stable and readable, Spot breaking changes in configs (removed/changed keys), Compare nested JSON and locate changes by exact path, Copy diff output for tickets or PR comments

FAQ

What does this JSON diff formatter output?

A compact list of changes by JSON Pointer path: added (+), removed (-), and changed (~). You can also export as JSON Patch (RFC 6902).

Is my JSON sent to a server?

No. The comparison runs in your browser and does not make network requests.

Why enable “Sort object keys”?

It makes output more stable and easier to scan by keeping object keys in consistent order.

How are arrays compared?

By default, arrays are compared by index. If you enable “Ignore array order”, the tool shows a summary of items added/removed (not a positional diff).

Can I generate a JSON Patch from two JSON documents?

Yes—choose JSON Patch output. For best results, keep array order comparison enabled.

What path format is used in the diff?

JSON Pointer style paths like /a/b/0, with proper escaping for ~ and / in keys.

Why do long values look truncated?

Truncation keeps the diff readable. Turn on No value truncation to show full values.