JSON Minifier
Minify pasted JSON, see how many characters were removed, and copy the compact output or download it as minified.json.
On this page
A JSON minifier strips the whitespace and indentation that make JSON readable and leaves a compact string for the wire. This one works in two side-by-side panels, so you see the input and the minified result at the same time, with no upload to a server.
Paste, then read the Output panel
Drop a formatted object into the left panel. With Live ticked, the right panel updates as you type, so a paste like { "name": "Product", "price": 19.5 } collapses to {"name":"Product","price":19.5} the moment it lands. Turn Live off and press Minify instead for manual control.
Watching the size shrink
Each panel shows a line and character count in its status bar. After a minify, the bottom of the Output panel reports the savings, for example “Minified 1260 → 948 chars (312 saved)”. That number is the whole point: fewer bytes to send in an API response or store in a message queue.
| In the input | In the output |
|---|---|
| Indentation and blank lines | Removed |
| String quotes, commas, braces, brackets | Kept, because JSON requires them |
| Numbers like 19.5 | Kept exactly |
Working with files and the toolbar
Choose a .json file and its full text is loaded into the left panel; the status line shows which file is in use, and the name changes to “Using edited JSON text” the moment you type over it. Example fills the panel with sample data, and Clear empties both panels. Copy the compact result with Copy JSON or save it with Download, which produces a file named minified.json.
When it refuses
Invalid JSON stops at the input: a missing comma, an unquoted key, or a trailing comma triggers the validation message and the output panel clears. A single pull-in of up to a few hundred thousand characters minifies instantly; the browser does the work locally, so nothing sensitive is transmitted.