Output will appear here
Output will appear here
Minify and compress JSON online with our free JSON minifier. The tool strips all unnecessary whitespace and newlines to produce the smallest valid JSON representation, showing you the byte-size reduction. Ideal for shrinking API payloads, config files, and JSON stored in databases.
Try Convert All - paste JSON once, see TypeScript, Go, YAML, and 15 more formats instantly.
Enter any valid JSON with whitespace, indentation, or newlines in the editor. The minifier works with objects, arrays, and primitive values.
The tool removes all unnecessary whitespace, newlines, and indentation, producing the most compact valid JSON possible.
Click Copy to grab the minified output for embedding in API calls, config files, or storage systems where size matters.
The reduction depends on how much whitespace the original contains. Typically, pretty-printed JSON with 2-space indentation shrinks by 30-60%. Deeply nested structures with many levels of indentation see the largest savings.
No. Minification only removes insignificant whitespace between tokens. String values, numbers, booleans, and null values are preserved exactly. The minified JSON is semantically identical to the original.
Yes. Sending minified JSON over HTTP reduces bandwidth and can improve response times, especially for mobile clients on slow connections. Most APIs already return minified JSON, but this tool is handy for manually composed payloads.
Standard JSON does not support comments. If your input contains JavaScript-style comments the tool will report a syntax error. Remove comments first, or use a JSONC-aware preprocessor before minifying.