Why minify JSON
Spaces, indentation and line breaks make JSON readable for people but add size that computers do not need. Minified JSON loads faster in websites and apps, uses less bandwidth, and fits into a single line for configuration fields, environment variables and API tests.
How it works
Upload a .json file of up to 2 MB. It is checked to be valid JSON first, then all whitespace outside text values is removed. Spaces inside strings are kept, numbers are not rewritten, and key order is unchanged — the data stays exactly the same.
How much smaller
Savings depend on how the file was formatted: nicely indented JSON often shrinks by 20–40%. For websites, combine minification with gzip or Brotli compression on your server for the biggest savings.
Common problems and how to fix them
“Invalid JSON”: fix the reported problem — often a trailing comma or comments. You need to read the file again: use Format JSON to expand it. Escaped characters look strange: they were already in the original and are kept exactly.
Good habits
Keep a formatted copy for editing, minify only for deployment, and test the application with the minified file.