Compresses JSON by removing all unnecessary whitespace.
JSON Minify compresses JSON by parsing it and re-stringifying it without any spaces, line breaks, or indentation, producing a compact single-line output. Because it parses the input first, it also validates that your JSON is well-formed before minifying. It is handy whenever you want to shrink JSON for storage, transfer, or embedding without changing the data itself.
No. The tool runs entirely in your browser using the built-in JSON parser, and nothing you paste is uploaded or stored anywhere. The whole site is open source and client-side, so you can verify this yourself.
Your input is parsed with JSON.parse and then re-serialized with JSON.stringify using no spacing, which removes all insignificant whitespace between keys, values, and structural characters.
Because the tool parses the input before minifying, invalid JSON cannot be processed and you will see a parse error instead of output. Fix the syntax and try again.
No values are changed; only whitespace is removed. Object keys keep their original order as they appeared in the input, since JSON.parse and JSON.stringify preserve insertion order.
No. Standard JSON does not allow comments or trailing commas, so input containing them is invalid and will fail to parse rather than being minified.