Minify and compress JSON — without sending it anywhere
Strip whitespace from JSON without changing a single value, then optionally gzip it. Your API responses, config files and datasets are processed entirely in your browser.
What this tool does
Minification removes formatting whitespace and indentation while preserving every key, value and ordering — the result parses identically. The tool validates the document as strict JSON and tells you plainly if the file contains JSONC-style comments rather than silently mangling it.
After minifying you can gzip the file, which typically shrinks JSON dramatically — useful for bundles, fixtures and data exports you need to move around.
How to minify a JSON file without uploading it
-
Add the file. Drop your .json into the home-page tool.
-
Minify (and optionally gzip). Choose semantic-preserving minification, with or without gzip compression.
-
Download. Save the result — produced and kept locally.
Supported operations
This list is generated from CompressKit's capability registry — only implemented and tested operations appear here.
-
Reduce file size
Semantics-preserving minification, plus optional gzip.
-
Inspect file details
Validate the document and inspect its structure.
Frequently asked questions
- Does minifying JSON change its meaning?
- No. Only insignificant whitespace is removed. Keys, values, types and ordering are preserved, and the minified document parses to exactly the same data.
- Is my JSON uploaded or logged?
- No. The file is parsed and rewritten in your browser. The content never touches the network and never appears in any log.
- Why minify JSON at all?
- Smaller payloads: fixtures shipped with apps, API responses and config files all get cheaper to store and transfer once formatting whitespace is gone. Gzipping on top shrinks them further.
- My JSON has comments — will it work?
- Strict JSON does not allow comments, and the tool rejects them with a clear error rather than guessing. JSONC-style input needs the JSONC mode.
Ready to try it?
The JSON compressor tool runs on this site with no upload step — your file is processed by your own browser and saved back to your device.
Open the JSON compressor tool