JSON Formatter
Beautify, minify, and validate JSON data with line-numbered error reporting.
Input JSON
Formatted Output
Indent: 2 spaces
Click "Beautify" or "Minify" to format your JSON.
JSON Formatting Guide
Beautify formats JSON with consistent indentation for readability. Minify removes all whitespace to reduce file size. Validation runs automatically and shows the exact line and column of any syntax errors.
| Feature | Description |
|---|---|
| Auto-validate | Checks syntax on every format operation |
| Error lines | Shows exact line/column of parse errors |
| Stats | Displays file size, key count, and nesting depth |
| Copy output | One-click copy of formatted result |