What formatting does
JSON (JavaScript Object Notation) is a strict, text-based data format. Beautifying re-prints it with consistent indentation so the structure of objects { } and arrays [ ] is easy to read; minifying strips all optional whitespace to make the smallest valid payload for storage or transfer. The data itself is unchanged — only the spacing differs.
This tool parses your input with the browser's native JSON.parse, so it follows the official JSON grammar exactly: double-quoted keys and strings, no trailing commas, and no comments. If it parses, it re-serializes with your chosen indentation.
Worked example
Minified input {"a":1,"b":[2,3]} with 2-space indentation becomes:
{ "a": 1, then "b": [Validation and error messages
Invalid JSON can't be formatted, so the tool first validates. Common mistakes are single quotes instead of double, a trailing comma after the last item, unquoted keys, or a stray bracket. When parsing fails, the browser reports the position of the problem so you can find it. Valid JSON always uses double quotes around keys and string values and never ends a list or object with a comma.