Developer Tools
JSON Minifier
Remove every unnecessary character from a JSON document. The size is measured in bytes rather than characters, because bytes are what actually travel over the network — and non-ASCII text takes more than one byte per character.
Status
Waiting for input
Your JSON stays on your device
Parsing happens entirely in your browser. Nothing you paste is uploaded — worth knowing, since API responses often contain real customer data.
How to use this tool
- Paste your formatted JSON.
- The minified version appears below with the size saving.
Notes and limitations
- Only whitespace is removed. The data is identical, and reformatting it restores exactly the same document.
- Sizes are shown in UTF-8 bytes, not characters. An accented letter is two bytes and most emoji are four, so a character count would understate the real transfer size.
- Minifying matters less than it used to, because HTTP responses are usually compressed with gzip or brotli, and compression removes repeated whitespace very effectively. It is still worth doing for data stored in a database column or embedded in a page.
- Everything runs in your browser and nothing is uploaded. That said, treat any third-party website with caution when handling production data — if a value would cause real damage if leaked, process it with your own local tooling instead.
Frequently asked questions
How much smaller does minifying make JSON?
Typically 10–30% for indented JSON, depending on how deeply nested it is. Deeply nested documents have more indentation to remove, so they save more.
Is it worth minifying if my server uses gzip?
Usually not much. Compression handles repeated whitespace very well, so the saving after gzip is small. It is more useful when the JSON is stored rather than transmitted.
Does minifying lose any data?
No. Only formatting is removed; every key and value is preserved exactly.
Related tools
- JSON FormatterFormat JSON with indentation and pinpoint syntax errors.
- JSON ValidatorCheck JSON syntax and see exactly where an error is.
- Base64 EncoderEncode text to Base64, with full Unicode support.
- Base64 DecoderDecode Base64 to text, standard or URL-safe.
- URL EncoderPercent-encode text for URLs, by component or whole address.
- URL DecoderDecode percent-encoded URLs and read the query parameters.