JSON Formatter & Validator
Paste minified or messy JSON below to validate it and produce a clean, indented version.
Minified JSON from an API response or a build tool is close to unreadable. This formatter re-indents it cleanly and, just as importantly, tells you immediately if the JSON is malformed — no more hunting for a missing comma by eye.
JSON input
Drop a .json file here, or paste text into the box below
Formatted JSON
Common questions
Does this upload my file anywhere?
No. Validation and formatting happen entirely in your browser. Your file never leaves your device.
What happens if my JSON is invalid?
You'll see an error describing what the parser stumbled on, so you can locate and fix the issue.
Does this minify JSON too?
This tool focuses on pretty-printing. For minifying, you can remove whitespace by re-copying the formatted output through any JSON.stringify(x) call without the indent argument.