What this JSON minifier does
A JSON minifier (also called a JSON compressor) removes every byte of whitespace that is not required by the JSON specification. Formatted JSON is great while you are reading or editing it, but all those spaces and newlines are dead weight once the document is sent over a network, stored in a database column, or embedded in a config value. This tool parses your input and re-serializes it with zero indentation — the smallest valid representation of the same data.
The size readout tells you the exact byte count before and after, using the real UTF-8 encoded size rather than character count, so the savings you see are the savings you get on the wire.
How to minify JSON online
- Paste formatted or hand-written JSON into the input box.
- Click Minify JSON.
- Check the byte savings shown next to the button.
- Copy the single-line result wherever you need it.
When to minify — and when not to
Minify JSON that machines consume: API responses, payloads for HTTP requests, values stored in caches or environment variables, and fixtures bundled with an app. Keep JSON human-formatted when people maintain it — configuration files in a repository, documentation examples, and test data under code review. Since minifying requires a successful parse, the tool also doubles as a quick validity check; for detailed error positions, use the JSON Validator.