Skip to content
FizzKit

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.

Runs locally in your browser
For large JSON, open fullscreen for a wider view
JSON input
0 chars · 1 line
Minified
Output will appear here…
Output
Input

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.

How to use JSON Minifier

  1. 1Paste or upload JSON (or NDJSON and switch the input mode).
  2. 2Choose the output: plain minified, Base64, Base64url or URL-encoded.
  3. 3Optionally sort keys, strip null values or strip empty strings, arrays and objects.
  4. 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.

Frequently asked questions

Typical savings are 20–40% before compression. After gzip the difference is much smaller because compression already removes most whitespace, which is why the tool shows both numbers.