Remove every unnecessary space and line break from a JSON document. The input is parsed first, so you also find out if it is invalid, and the output is guaranteed to be valid JSON.
Validates while it minifies
Reports how many bytes were saved
Runs in your browser; the data is not uploaded
Frequently asked questions
Does minifying change the data?
No. Only whitespace outside strings is removed. Keys, values and their order stay the same.