JSON Minifier
Smaller JSON loads faster and fits in environment variables, query strings and config fields. The minifier validates the input first, so you never ship broken JSON.
Runs entirely in your browser. Your input and files are not uploaded to any server.
How to use
- Paste formatted JSON.
- Press Minify.
- Copy the single-line result. The size before and after is shown.
Examples
A 2 KB indented config usually shrinks by 20–40% when whitespace is removed.
Privacy
Runs entirely in your browser. Your input and files are not uploaded to any server. See the privacy policy for what is stored in your browser (favorites and history only). Privacy policy
Check it yourself: open your browser’s developer tools, select the Network tab and use the tool. Your file never appears in an upload request. Once this page is saved for offline use, you can also disconnect from the internet and keep working. Ads and anonymous visit statistics, when enabled, make their own requests, but they never receive your files or text.
Frequently asked questions
Does minifying change the data?
No. Only insignificant whitespace is removed. Keys, values and order stay exactly the same.
Should I minify for gzip?
Servers usually compress JSON with gzip or Brotli anyway, so the gain on the network is smaller than the raw byte saving. Minifying still helps for storage and embedding.