JSON
Strip every space, newline, and indent from JSON — the smallest valid form of your document.
Minification runs locally in your browser. Nothing is uploaded, logged, or stored.
Indentation and line breaks make JSON readable for humans, but parsers ignore them completely. Removing that whitespace can shrink a document by 20–40%, which matters when the JSON lives in a size-limited context: an environment variable, a URL parameter, a serverless config, or a payload you pay to transfer.
The minifier parses first and re-serializes, so it also acts as a validation gate — broken JSON is reported with the parser error instead of being silently mangled. To go back to the readable form, use the JSON Formatter; if you need a quoted string form instead, use the JSON Stringify tool.
Collapse a service-account JSON before storing it in a single-line CI environment variable.
Minify fixture files committed to a repository to keep diffs small and files compact.
Format, minify, and validate JSON with precise error location. Runs entirely in your browser.
Check JSON syntax with precise line and column error location, plus a structural summary of the document.
Compare two JSON documents and see every added, removed, and changed value by path.
Explore JSON as a collapsible tree with syntax highlighting — great for large API responses.
Looking for something else? Browse all tools