JSON Minifier
Minify JSON online to remove spaces and line breaks and make the file smaller. Free, runs in your browser, nothing is uploaded.
How to use the JSON Minifier
Validate, beautify and clean JSON, CSV, XML and YAML.
- Paste or upload your data
- Choose the options
- Copy or download the result
Tips
- Invalid JSON shows the exact line and column. “Auto-fix” repairs comments, trailing commas and single quotes.
- Numbers and key order are kept exactly as written – nothing is rounded.
- CSV: any delimiter is detected automatically; pick the one you want for the output.
- YAML: comments are kept, and you can convert YAML → JSON or paste JSON to get YAML.
Example
Input: { "a": 1,
"b": [1, 2] }
Output: {"a":1,"b":[1,2]}
Frequently asked questions
How much smaller does minifying make JSON?
Usually 10 to 40 percent, depending on how much indentation the file has. The data stays exactly the same.
Does minifying change my data?
No. Only spaces and line breaks are removed. Keys, values and order are unchanged.
Will large numbers change?
No. Unlike many tools, long numbers like 12345678901234567890 are kept as they are.
Guides