JSON Formatter, Minifier, Unminifier & Beautifier
Format, minify, unminify and beautify your JSON code instantly. Free online tool with advanced options, detailed statistics and customizable indentation. No registration required.
Features
Our JSON tool offers three main features:
Reduce the size of your JSON code by removing spaces, comments and unnecessary characters.
Restore the readability of your minified JSON code by adding spaces and line breaks.
Format and beautify your JSON code with customizable indentation (2 or 4 spaces, or tabs) and get detailed statistics.
Basic example
Input JSON
Minified JSON
Minification options
Compression examples:
Original code
Conservative
Normal
Aggressive
Comparison with/without option:
Original code
With optimizeNumbers: true
With optimizeNumbers: false
Difference
Comparison with/without option:
Original code
With removeNullValues: true
With removeNullValues: false
Difference
Comparison with/without option:
Original code
With removeEmptyArrays: true
With removeEmptyArrays: false
Difference
Comparison with/without option:
Original code
With sortObjectKeys: true
With sortObjectKeys: false
Difference
Indentation Size
Sets the number of spaces or tabs for indentation during Beautify
Original code
With 2 spaces
With 4 spaces
Difference
Indentation Type
Use spaces or tabs for indentation during Beautify
Original code
With spaces
With tabs
Difference
JSON statistics are automatically calculated and displayed in the results panel after each operation (Minify, Unminify, Beautify).