Paste your JSON to instantly validate and format it. Works entirely in your browser.
Pretty-print: paste minified JSON like {\"ok\":true,\"items\":[1,2,3]} and click Format.
Minify: paste formatted JSON and click Minify to reduce whitespace for production configs.
Need best practices? See Formatting JSON safely.
Is my JSON sent to a server?
No. Formatting and validation run locally in your browser.
Why do I get “Unexpected token”?
Common causes are trailing commas, single quotes, or unescaped characters inside strings.
Should I paste secrets here?
No. Remove API keys, tokens, passwords, and cookies before sharing or formatting logs.
{\"a\":1,} is invalid JSON.// and /* */ aren’t allowed in strict JSON.If you’re working with configuration files that allow comments (JSONC), convert to strict JSON before using it in APIs.