JSON Formatter & Validator
Paste JSON below. Format it, minify it, or check whether it's valid — all in your browser.
—
How this JSON formatter works
Paste any JSON object or array into the input box. Format / Validate pretty-prints it with 2-space indentation and tells you immediately if the JSON is malformed, including the character position of the error. Minify strips all whitespace so you can drop the JSON into a config file or API payload. Nothing you paste is uploaded anywhere — the parsing happens with JSON.parse() directly in your browser.
Common JSON errors this catches
Trailing commas, single quotes instead of double quotes, unquoted keys, missing brackets, and duplicate keys are the most frequent issues. The validator will point to exactly where parsing failed so you're not scanning the whole payload by eye.