Developer tool
JSON Minifier
Paste formatted JSON and turn it into a compact one-line value after the input has been parsed as valid JSON.
Make JSON compact
Minified JSON removes spaces, tabs, and line breaks that are useful for reading but unnecessary for machines. This page parses the JSON first, then shows the compact result and the estimated reduction.
Use it for small request bodies, examples, fixtures, logs, or payloads where every character needs to be easy to copy.
Useful workflows
- Compress a formatted API request body before pasting it into a test.
- Check whether a JSON example still parses after editing.
- Copy a compact payload for documentation, logs, or command-line examples.
Related JSON tools
Use the JSON Validator first when a payload does not parse. For readable output, use the JSON Formatter or inspect nested data with the JSON Viewer.
FAQ
Is minified JSON still valid?
Yes. The tool parses the JSON first, then removes unnecessary whitespace while keeping the same data.
What size reduction is shown?
The page compares the input character count with the minified output character count.
Can minifying fix broken JSON?
No. Invalid JSON must be corrected before it can be minified.
Is the JSON uploaded?
No. Minifying runs locally in your browser.
When should I minify JSON?
Use it for compact examples, request bodies, logs, or small payloads where whitespace is not needed.