No file open
Create a new file or open an existing one from the sidebar
Paste your JSON and press Minify to strip out the whitespace.
No file open
Create a new file or open an existing one from the sidebar
To minify JSON, paste it above and press Minify. All the indentation, line breaks and spaces between tokens are removed, which leaves exactly the same data on a single line, and Format brings the indentation back whenever you need to read it again.
Keys, values and key order all stay the same, so the minified JSON parses to identical data. It's handy for request bodies, environment variables that hold JSON and fixtures you want on one line.
{
"id": 7,
"name": "Ada Lovelace",
"roles": [
"admin",
"editor"
],
"active": true,
"lastLogin": null
}{"id":7,"name":"Ada Lovelace","roles":["admin","editor"],"active":true,"lastLogin":null}No, it only removes whitespace outside of strings. Spaces inside your string values are left alone.
They're related. Minifying makes the text shorter, while compression like gzip encodes it into a smaller binary form, and they stack nicely. If your server already gzips responses, minifying saves less than you'd expect over the network, though it still helps for storage and logs.
No, this runs entirely in your browser, so nothing you paste is sent to a server. The only feature that sends data anywhere is the optional AI assistant, and only when you actually ask it something.