JSON Formatter
Paste JSON to pretty-print it with your chosen indentation, validate it, or minify it to a single line.
Valid
Yes ✓
Lines
10
Formatted JSON
{
"name": "Velnaro",
"tools": [
"percentage",
"bmi",
"qr"
],
"free": true,
"views": 0
}Formula
JSON.stringify(parsed, null, indent) — the browser’s own serialiser, so the output is always valid.
Example
Input
{"a":1,"b":[2,3]}
Result
Pretty-printed with 2-space indentation
Frequently asked questions
Most often a trailing comma, single quotes instead of double quotes, or an unquoted key.
No. Standard JSON has no comment syntax.
No — formatting happens in your browser.
Related tools
Keep going — these tools solve the problems that usually come next.