JSON Formatter & Validator

Paste your JSON to instantly validate and format it. Works entirely in your browser.

Examples

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.

FAQ

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.

Common JSON errors (quick fixes)

Tip

If you’re working with configuration files that allow comments (JSONC), convert to strict JSON before using it in APIs.