JSON Minifier
Minify JSON by removing whitespace and unnecessary characters.
About this tool
Minify JSON by removing whitespace and unnecessary characters. Useful when reviewing API responses, cleaning config before commit, or sharing readable snippets in docs and PRs.
Paste formatted JSON into Input. Click Minify to strip insignificant whitespace. Example — Compress a config object for a header or CLI flag: try `{ "env": "staging", "region": "us-east-1", "flags": ["canary", "metrics"] }` and expect something like `{"env":"staging","region":"us-east-1","flags":["canary","metrics"]}`.
Minifying does not gzip or otherwise compress bytes — it only removes whitespace. See also: JSON Formatter, and JSON Validator. Runs in your browser — nothing you paste gets uploaded.
How to use
- Paste formatted JSON into Input.
- Click Minify to strip insignificant whitespace.
- Copy the single-line result for request bodies, env vars, or size checks.
- If Minify errors, run the JSON Validator first to locate the syntax problem.
Example
Compress a config object for a header or CLI flag
Input
{
"env": "staging",
"region": "us-east-1",
"flags": ["canary", "metrics"]
}Output
{"env":"staging","region":"us-east-1","flags":["canary","metrics"]}Limitations
- Minifying does not gzip or otherwise compress bytes — it only removes whitespace.
- Key order follows JSON.parse; do not rely on this tool to preserve original key ordering.
- Comments in JSONC are not preserved; they are stripped during parse/repair.
Related guides
1Related tools
2Frequently asked questions
What does the JSON Minifier do?
Minify JSON by removing whitespace and unnecessary characters. Runs in your browser — no install, no account.
How do I use the JSON Minifier?
Paste formatted JSON into Input. Click Minify to strip insignificant whitespace. Copy the single-line result for request bodies, env vars, or size checks. If Minify errors, run the JSON Validator first to locate the syntax problem.
Is the JSON Minifier free?
Yes. No signup, no usage limits, no paywall.
Does the JSON Minifier upload my data?
No. Processing happens locally in JavaScript. Your input is not uploaded, stored, or logged.
What are the limitations of the JSON Minifier?
Minifying does not gzip or otherwise compress bytes — it only removes whitespace. Key order follows JSON.parse; do not rely on this tool to preserve original key ordering. Comments in JSONC are not preserved; they are stripped during parse/repair.