JSONSmith - free, no upload, runs in your browser

JSON formatter, minifier, and diff tool

JSONSmith formats messy JSON, minifies it for transport, converts between JSON and YAML, and diffs two payloads line by line. It is built for debugging real work - API responses, webhook bodies, config files - and runs entirely in your browser so payloads with tokens stay private.

Why paste JSON into a local tool

Real debugging payloads are full of things you should not ship to a random website: bearer tokens, customer IDs, internal URLs. Yet the reflex when a payload looks broken is to paste it into the first formatter that Google shows.

JSONSmith is that formatter without the upload. Parsing, formatting, and diffing happen in your browser, so the reflex becomes harmless.

Diffing webhook and API responses

"What changed between the last working request and this one?" is the most common debugging question for integrations. Paste the old payload on the left, the new one on the right, and JSONSmith highlights the differing lines - no eyeballing two editor panes side by side.

Both inputs can be JSON or YAML; formatting is applied consistently before comparison.

How to format or diff a payload

A safer way to debug a payload

Before you format or diff anything, remove the parts you do not need to share: authorization headers, customer identifiers, and any token that looks live. Keep the structure and the error message, because that is what makes the payload useful for debugging.

Format first, then diff. A raw minified payload produces a diff where every line changes, which hides the one field that actually differs. Normalizing both sides also stops key order from creating noise; object key order is not semantically meaningful in JSON.

Diff workflow for webhook changes

Frequently asked questions

What is the size limit?

Payloads up to 2 MB. Larger responses should be trimmed to the relevant subtree first.

Does it validate JSON syntax?

Yes. Invalid JSON produces a clear error rather than silent failure, so a trailing comma or missing brace is caught immediately.

Can it convert between JSON and YAML?

Yes - YAML can be pretty-printed and JSON can be formatted, and the diff accepts either format on both sides.

Is my payload uploaded anywhere?

No. Formatting, minifying, and diffing are pure browser-side operations. This matters exactly because debug payloads often contain secrets.

Does it support JSONPath or querying?

Not yet - the current scope is format, minify, convert, and diff.

Why does the diff show every line changed?

The two sides probably have different formatting or key order. Format both before diffing so only real value changes remain.

Can I compare JSON with YAML?

Yes, if the tool parses both formats. Convert both to the same structure first, then diff.

Can JSONSmith handle a payload with comments?

Standard JSON does not allow comments. If your input contains JSON5 or JSONC comments, remove them first or use a parser that supports JSON5; the formatter will reject the file otherwise.

Why does the formatter reorder my keys?

Most formatters preserve key order as written, but diff views may normalize it to compare values. Object key order is not semantic in JSON, so do not rely on it in your application.

Can I share a formatted payload in a bug report?

Yes, after redacting tokens, emails, customer IDs, and internal hostnames. Formatting improves readability but does not remove sensitive values.

Does it work offline?

Yes once the page has loaded. The parser runs in your browser, so a network drop does not interrupt formatting or diffing.

Related local tools