JSON formatter
Validate, beautify, minify — locally. Safe for payloads with secrets.
Validate, beautify, minify — locally. Safe for payloads with secrets.
Input is parsed with the browser's native JSON.parse — the strictest, fastest
JSON implementation available — then re-serialized with your chosen indentation. Errors are
reported with exact line and column. Minify strips all whitespace for embedding in headers,
env vars, or curl commands. Sort keys normalizes two payloads so a diff shows real changes,
not ordering noise.
Nothing leaves the page: no upload, no history, no analytics on your data. Format a payload full of bearer tokens with devtools open and watch the network tab stay empty.
No. Parsing and formatting happen in your browser with the native JSON engine. Nothing is transmitted or stored — safe for API responses containing tokens, PII, or internal data.
The tool surfaces the browser’s own parse error and computes the line and column of the failure, so you can jump straight to the broken character instead of hunting for a missing comma.
Formatting only changes whitespace. Minifying strips it. The optional “sort keys” mode reorders object keys alphabetically (recursively) — handy for diffing two payloads, but turn it off when key order matters to a consumer.