Runs locally in your browser
JSON Minifier
Minify JSON by stripping extra whitespace to shrink request payloads. Compression of the text happens locally in this tab.
Paste pretty-printed JSON and get a single-line string for production logs, headers, or size checks. This is the inverse of the formatter.
Stringify without indent runs in the browser. The document is not uploaded for compression.
How to use
- Paste indented JSON.
- Run minify.
- Copy or download the compact string.
How it works
The input must parse. Then JSON.stringify writes it without spaces or newlines. Numeric values and strings keep their JSON meaning.
Minifying is not gzip. It only removes insignificant whitespace. Binary compression would be a separate step on the wire.
Examples
Webhook size
A 12 KB pretty payload may drop to a few kilobytes of significant tokens before you put it on the wire.
Clipboard
A formatted fixture collapses to one line that is easier to paste into a .env or a ticket.
FAQ
Does minify validate schema?
No. It only requires parseable JSON. Use the validator for a dedicated syntax gate.
Are spaces inside strings removed?
No. Whitespace in string values is significant and stays.
Can I reverse minify?
Yes, with the formatter. Minify then format is a round trip for well-formed input.
Does the JSON leave the browser?
No. Minify is local.
Related tools
- JSON FormatterPretty-print JSON with a chosen indent so API payloads are readable. Formatting runs in your browser and never leaves this tab.
- JSON ValidatorCheck whether JSON is syntactically valid and see the line and column of the first error. Validation stays in your browser.
- JSON to CSVConvert a JSON object or array of objects into CSV for spreadsheets. Nested keys flatten with dots, all inside your browser.
- Base64 EncoderEncode UTF-8 text to Base64 for data URIs, headers, and embeds. Encoding uses the Web APIs in this tab, with no server hop.
- URL EncoderPercent-encode query values and path segments with encodeURIComponent. Spaces become %20. Encoding stays in your browser.