What is this JSON minifier?
A free, browser-based tool that minifies JSON — it strips every space, newline, and indent to produce the smallest valid JSON that represents exactly the same data. Paste your JSON and it returns a single compact line, shows the byte size before and after, and tells you the percentage saved. It is the inverse of pretty-printing: use it to shrink payloads for transport or storage, and the JSON Formatter to expand them again. Everything runs locally in your browser, so your data is never uploaded.
How to use it
- Paste your JSON into the box on the left.
- The minified JSON appears on the right, along with the before/after byte size and the percentage saved.
- If the JSON is invalid, an error banner shows the line and column to fix.
- Copy the minified result with one click.
Common use cases
- Shrinking API request/response bodies or config files to reduce transfer size.
- Embedding JSON into a single line — env vars, query strings, or one-line logs.
- Comparing payload size before and after compression while optimizing.
