Minify, Unminify & Beautify JSON Online — Free JSON Minifier
Minify, unminify and beautify your JSON code instantly to reduce your data size and improve your application performance. Our free online JSON minifier removes unnecessary spaces and optimizes numbers. Instant and secure processing, no registration required.
Loading...
JSON Minification
Compressing JSON files by removing spaces and unnecessary characters
Basic example
Input JSON
{
"name": "FastMinify",
"version": "1.0.0",
"description": "A fast minifier tool",
"features": [
"JavaScript minification",
"CSS optimization",
"JSON compression"
]
}
Minified JSON
{"name":"FastMinify","version":"1.0.0","description":"A fast minifier tool","features":["JavaScript minification","CSS optimization","JSON compression"]}
Minification options
Compression Level
Controls the aggressiveness of JSON compression
ConservativeConservative - Whitespace removal only
NormalNormal - Basic optimizations
AggressiveAggressive - Advanced optimizations and cleanup
Compression examples:
Original code
{
"name": "test",
"value": 42,
"active": true,
"items": [1, 2, 3]
}
Conservative
{"name":"test","value":42,"active":true,"items":[1,2,3]}
Normal
{"name":"test","value":42,"active":true,"items":[1,2,3]}
Aggressive
{"name":"test","value":42,"active":!0,"items":[1,2,3]}
Optimize Numbers
Optimizes number representation (removes unnecessary zeros)
Comparison with/without option:
Original code
{
"price": 10.00,
"count": 0,
"rate": 1.0
}
With optimizeNumbers: true
{"price":10,"count":0,"rate":1}
With optimizeNumbers: false
{"price":10.00,"count":0,"rate":1.0}
Difference
Numbers are optimized (unnecessary zeros removed)
Remove Null Values
Removes properties with null values
Comparison with/without option:
Original code
{
"name": "test",
"value": null,
"active": true,
"count": null
}
With removeNullValues: true
{"name":"test","active":true}
With removeNullValues: false
{"name":"test","value":null,"active":true,"count":null}
Difference
Toutes les valeurs null sont supprimées
Remove Empty Arrays
Removes empty arrays from JSON
Comparison with/without option:
Original code
{
"name": "test",
"items": [],
"active": true,
"tags": []
}
With removeEmptyArrays: true
{"name":"test","active":true}
With removeEmptyArrays: false
{"name":"test","items":[],"active":true,"tags":[]}
Difference
Empty arrays are removed
Sort Object Keys
Sorts object keys alphabetically
Comparison with/without option:
Original code
{
"zebra": "striped",
"apple": "red",
"banana": "yellow"
}
With sortObjectKeys: true
{"apple":"red","banana":"yellow","zebra":"striped"}
With sortObjectKeys: false
{"zebra":"striped","apple":"red","banana":"yellow"}
Difference
Object keys are sorted alphabetically