# JSON Minifier Guide

Strip all whitespace from JSON to shrink it.

- Tool: https://ilham.dev/tools/json-minifier/
- Guide URL: https://ilham.dev/guides/json-minifier/
- Tool guides index: https://ilham.dev/guides/tools/
- Broader guide: Working With Structured Data (https://ilham.dev/guides/working-with-structured-data/)

## What it does

Strip the whitespace out of a JSON document while keeping it valid, so it takes fewer bytes over the wire. It parses first and re-serialises, so a malformed document is rejected rather than mangled.

## Use the tool

Open https://ilham.dev/tools/json-minifier/, add the input the tool asks for, run it, and check the output before using it elsewhere.

## Input and output

- Input: text.
- Output: text.
- Category: Formats.

## Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

## Questions

### How much smaller does it get?

Typically 20–40% for hand-formatted JSON. If the server gzips its responses the gain is mostly redundant, because gzip already removes repeated whitespace.