Strip all whitespace from JSON to produce the smallest valid payload. Validates before minifying, shows exact byte savings and compression ratio. Browser-based.
The JSON Minifier removes all non-essential whitespace from JSON documents using `JSON.parse` followed by `JSON.stringify` — the same pipeline used by production JSON serialisers. Because it parses the input before serialising, it validates JSON syntax and surfaces any errors before attempting minification. The output is the smallest syntactically valid JSON representation of the input data. Compression ratio and exact byte savings are displayed after each run. A download button saves the minified output directly. All processing is instantaneous and runs in the browser.
QDoes it validate JSON before minifying?
Yes — the minifier calls JSON.parse on the input first. If the JSON is invalid, a parse error is displayed and no output is generated.
QIs any data lost during minification?
No structural data is lost. Only non-semantic whitespace (spaces, tabs, newlines) is removed. The parsed data structure is identical before and after.
QIs my JSON sent to a server?
No. All processing is synchronous and runs entirely in your browser. Nothing is transmitted to any server.