JSON TOOL
Format and validate JSON without uploading it.
Paste compact JSON into the formatter to check whether it parses and turn nested objects and arrays into a readable document. The tool runs in the browser, so the input is not sent to a server.
Format versus minify
Formatting adds indentation and line breaks for debugging and code review. Minifying removes unnecessary whitespace for a smaller payload. Both actions start by parsing the input, so a syntax error is reported before an output is created.
Common JSON errors
- Keys and string values need double quotes.
- Objects and arrays cannot have a trailing comma.
- JSON uses
true,false, andnullwithout quotes.