Compress JSON data for faster APIs and smaller payloads
Smaller payloads mean faster network transfer and lower latency
Remove indentation from valid JSON. The saving depends on how much space was there.
All processing happens locally in your browser
Minifies as you type or paste – instant feedback
Optimize your JSON data for production use by stripping unnecessary whitespace and line breaks.
Our JSON minifier uses a simple but effective process:
We first check that your JSON is valid. Invalid JSON will not be minified.
All unnecessary spaces, tabs, and line breaks are stripped out.
The result is a compact, one‑line JSON string that preserves all data.
{"widget": {
"debug": "on",
"window": {
"title": "Sample JSON",
"name": "main_window",
"width": 500,
"height": 500
},
"image": {
"src": "Images/Sun.png",
"name": "sun1",
"hOffset": 250,
"vOffset": 250,
"alignment": "center"
},
"text": {
"data": "Click Here",
"size": 36,
"style": "bold",
"name": "text1",
"hOffset": 250,
"vOffset": 100,
"alignment": "center",
"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
}
}}{"widget":{"debug":"on","window":{"title":"Sample Konfabulator Widget","name":"main_window","width": 500,"height": 500},"image":{"src":"Images/Sun.png","name":"sun1","hOffset": 250,"vOffset": 250,"alignment":"center"},"text":{"data":"Click Here","size": 36,"style":"bold","name":"text1","hOffset": 250,"vOffset": 100,"alignment":"center","onMouseUp":"sun1.opacity = (sun1.opacity / 100) * 90;"}}}Your JSON stays in your browser:
This input is valid and should become one compact line:
{
"sku": "A-14",
"price": 12.50,
"tags": ["new", "local"]
}Expected compact output: {"sku":"A-14","price":12.5,"tags":["new","local"]}. The value 12.50 may be written as 12.5 because the parser stores the number, not the original characters.
This input should show an error, not a silently trimmed result: { "sku": "A-14", }. The trailing comma is not JSON. Remove it, or quote any bare keys, before trying again.