JSON Minifier
Strip whitespace, newlines and indentation from JSON to produce the smallest valid representation, and see what it actually saves after gzip. Optionally drop null and empty values, sort keys, minify NDJSON line by line, and output as Base64, Base64url or URL-encoded text for query strings and headers. Every result is round-trip verified.
Output will appear here…
gzip sizes are measured in your browser with CompressionStream; brotli appears only where the browser supports it. Base64url and URL-encoding are for embedding the payload in query strings or headers.
Related tools
JSON Formatter
Beautify, minify, sort, query and repair JSON with a tree view and copy-as code export.
JSON Validator
Validate JSON syntax and JSON Schema, catch duplicate keys and precision loss, check NDJSON line by line.
JavaScript Minifier
Minify JavaScript with Terser or beautify JS/TS with Prettier — with real gzip sizes.
CSS Minifier
Minify CSS safely — strings, url() and calc() preserved — with gzip size and duplicate-selector merging.
How to use JSON Minifier
- 1Paste or upload JSON (or NDJSON and switch the input mode).
- 2Choose the output: plain minified, Base64, Base64url or URL-encoded.
- 3Optionally sort keys, strip null values or strip empty strings, arrays and objects.
- 4Compare the original, minified and gzip sizes in the stats, then copy or download.
About JSON Minifier
Strip whitespace, newlines and indentation from JSON to produce the smallest valid representation, and see what it actually saves after gzip. Optionally drop null and empty values, sort keys, minify NDJSON line by line, and output as Base64, Base64url or URL-encoded text for query strings and headers. Every result is round-trip verified.
JSON Minifier is part of FizzKit — a collection of focused developer and ad-tech tools. Because everything runs locally, it works offline once loaded and never exposes your data to a remote server.