JSON Formatter
Format, validate and minify JSON
How to Use
- Paste your JSON data into the input textarea
- Choose your indentation preference (2 spaces, 4 spaces, or tab)
- Optionally enable "Sort keys alphabetically"
- Click "Format" to format, "Minify" to compress, or "Validate" to check validity
- Copy the result or continue editing
Features
- Format JSON with custom indentation
- Minify JSON (remove all whitespace)
- Validate JSON syntax
- Sort object keys alphabetically
- Real-time error detection
- JSON statistics (size, type, depth, keys/items count)
- 100% client-side processing