Malformed JSON is one of those problems where a vague error is worse than no error at all. Our new JSON Formatter & Validator skips the guessing and shows you exactly what the parser saw.
- Three indent styles — pretty-print with 2 spaces, 4 spaces, or a tab, switch anytime, and the output updates instantly.
- One-click minify — strip every non-essential character for the smallest payload, useful for pasting into config files or API calls.
- Honest errors — invalid input surfaces the browser’s own
SyntaxErrormessage directly, instead of a hand-rolled description that might be wrong. It’s less polished, but it’s accurate, and it usually names the exact character position to check. - Quick stats — key count plus input/output character counts, so you can see at a glance how much minifying actually saved.
- Private by default — parsing happens with
JSON.parsein your own browser; nothing you paste is ever sent to a server.
Paste in an API response, a config file, or a JavaScript object literal you’re not sure is valid JSON, and see immediately whether it parses — and if it doesn’t, exactly why.