JSON Minifier
Strip whitespace from JSON
114 B → 81 B · saved 29%{"user":{"id":42,"name":"Ada Lovelace","tags":["engineer","lead"],"active":true}}What is JSON Minifier?
Strip whitespace, comments, and indentation from a JSON document, collapsing it to a single line. Useful for reducing payload size in API responses, embedding JSON into URL parameters, or fitting a config object into a single environment-variable value. Syntax errors are reported with exact line/column so you can fix the input before minifying.
How do I use JSON Minifier?
- Paste JSON into the input panel.
- The minified output appears instantly, along with a size-saved percentage.
- Copy or download the result.
When should I use JSON Minifier?
Use JSON Minifier when you need the shortest possible valid JSON. For pretty-printing (the opposite), use JSON Beautifier. For converting JSON to CSV or Excel instead of minifying, use JSON to CSV / JSON to Excel.
How much smaller will my JSON get?
Typical savings are 10-40% depending on how much whitespace you had. Arrays of objects with nested indentation save the most.
Does minifying change the data?
No. All keys, values, and ordering are preserved — only whitespace and newlines are removed.
What if my JSON has syntax errors?
The minifier shows the line and column of the first error. Fix it, paste again, and re-minify — strict JSON requires double-quoted keys and no trailing commas.
Is my file uploaded anywhere?
No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.