Skip to content
PocketCaliper
Language
Open menu

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

  1. Paste indented JSON.
  2. Run minify.
  3. 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