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.

  1. Paste or upload your data
  2. Choose the options
  3. Copy or download the result

Tips

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