JSON Minifier
Minify JSON by removing all unnecessary whitespace. Shows the size saved.
About the JSON Minifier
Minified JSON is smaller to store and send. The JSON Minifier removes every unnecessary space and line break and shows how many bytes you saved.
Everything runs in your browser, so your input is never uploaded to a server.
How to use the JSON Minifier
- Paste JSON or open a file.
- Check the size saved shown below the output.
- Copy or download the minified JSON.
Frequently asked questions
Is minified JSON still valid?
Yes. Only whitespace outside strings is removed; the data is identical.
Should I minify JSON for APIs?
Servers usually compress responses with gzip or Brotli, which removes most of the whitespace cost, but minifying still helps for stored or embedded JSON.
Related tools
HTML Minifier
Minify HTML by removing comments and collapsing whitespace while preserving pre, textarea, script and style blocks.
CSS Minifier
Minify CSS by stripping comments and whitespace to reduce stylesheet size.
JavaScript Minifier
Minify and mangle JavaScript with Terser for smaller bundles. Supports modern ES syntax.
XML Minifier
Minify XML by removing comments and whitespace between tags.
SQL Minifier
Compress SQL queries onto a single line, removing comments and redundant whitespace.
JSON Formatter
Format and beautify JSON with configurable indentation and optional key sorting. Errors are reported with exact line and column.