JSON Minifier
Minify JSON by removing unnecessary whitespace and comments for a smaller output.
This tool runs entirely in your browser. Your files are never uploaded to a server.
{"name":"Ada","active":true}What this minifier does
Parses the input as strict JSON and serializes the resulting JavaScript value onto one compact line with JSON.stringify. Structural whitespace is removed and invalid JSON produces the browser's parse error instead of output.
How to use it
Paste a JSON object, array, string, number, boolean, or null. Review and copy the immediate result; Reset clears the editor and no file is downloaded.
Normalization and limits
This is parse-and-reserialize behavior, not lossless text compression. Duplicate object keys collapse to the last parsed value; number spelling, escapes, and key ordering can be normalized by JavaScript, and negative zero becomes zero. Comments, trailing commas, NaN, Infinity, undefined, BigInt, and JSON5 syntax are rejected. It does not validate against a schema or calculate byte savings.
Privacy
Parsing happens locally in your browser. Input and compact output are not uploaded by this tool.
Frequently Asked Questions
- What does the JSON Minifier do?
- Minify JSON by removing unnecessary whitespace and comments for a smaller output.
- Does this JSON tool change program behavior?
- It only changes layout or removable whitespace. Review minified output before production use when code relies on unusual syntax.
- Is my code uploaded?
- Processing is local and your code is never uploaded.