Watch: minify JSON
No sound. Each step is captioned on screen and also written out in the guide below.
JSON Tools
Remove unnecessary whitespace from JSON while keeping every value and every space inside your strings intact.
Whitespace outside quoted strings can be safely removed.
Your compact JSON will appear here.
No sound. Each step is captioned on screen and also written out in the guide below.
BytesBench checks that the input is standard JSON.
Formatting spaces, tabs, and line breaks are removed.
Copy or download a smaller payload for your next request.
{
"message": "keep these spaces",
"active": true
}Whitespace inside quoted strings is data, so it stays exactly as you wrote it.
No. The input is parsed and serialized again, so the result represents the same JSON value. Only presentation whitespace outside strings is removed.
No. Minification only makes JSON smaller and easier to send. It does not hide, secure, or compress the contents cryptographically.
JSON requires double quotes, commas between values, and closed braces or brackets. Comments and trailing commas are not standard JSON.