Video guide · 16 seconds
Watch: minify JSON
No sound. Each step is captioned on screen and also written out in the guide below.
Data & developer tools JSON
Remove unnecessary whitespace from JSON while keeping every value and every space inside your strings intact.
Workspace
Whitespace outside quoted strings can be safely removed.
Your compact JSON will appear here.
Video guide · 16 seconds
No sound. Each step is captioned on screen and also written out in the guide below.
A quick guide
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.
Example
{
"message": "keep these spaces",
"active": true
}Whitespace inside quoted strings is data, so it stays exactly as you wrote it.
Good to know
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.