About the JSON Minifier
This free JSON minifier removes whitespace, newlines, and indentation from JSON to reduce file size. Use it for API payloads, config files, or any JSON you need to compress. Minification runs in your browser—your data never leaves your device. Part of our developer tools; you can also format, validate, or diff JSON on dedicated pages.
Why Minify JSON?
Minified JSON is smaller, so it saves bandwidth and can load faster over the network. APIs and production builds often use minified JSON. A JSON minifier strips spaces, tabs, and line breaks without changing the data—parsing the result gives the same structure. This page gives you a one-click way to compress JSON and copy or download the result.
How to Use This Minifier
Paste your JSON into the input box and click Minify. The output shows the compressed JSON (one line, no extra spaces). You can copy it or download it. Keyboard shortcut: Ctrl+Shift+M (Windows/Linux) or Cmd+Shift+M (Mac). If your JSON is invalid, we'll show the error and line/column before minifying. Need to beautify instead? Use our JSON formatter.
Does Minifying Change JSON?
No. Minification only removes characters that are insignificant to the JSON parser: spaces, newlines, and tabs between tokens. Keys, values, and structure are unchanged. The minified string is valid JSON and parses to the same object. So it's safe to minify for production or to send over the wire.
When to Minify vs. Format
Use minify when you want the smallest size: API responses, static JSON files, or configs loaded by your app. Use format (beautify) when you're reading or debugging: our JSON formatter adds indentation and line breaks. Same tool here—Format and Minify are both available. For comparing two JSON blobs, use the JSON diff or the Diff tab.
Related Tools
JSON formatter to beautify; JSON validator to check syntax; JSON diff to compare two JSON files. More: blog, FAQ, IP lookup.
FAQ
What does a JSON minifier do? It removes whitespace and line breaks from JSON to reduce file size. The data stays the same.
Is this JSON minifier free? Yes. No signup; minification runs in your browser.
Does minifying JSON change its content? No. Only whitespace is removed. Parsing minified JSON gives the same result.
Can I minify JSON from a URL? Yes. Use "Fetch from URL" in Advanced Options, then click Minify.