Format, validate and minify JSON
The JSON Formatter makes messy JSON easy to read by adding indentation and line breaks, can compress it into a single line, and checks that your JSON is valid. Developers use it to inspect API responses, debug configuration files and clean data before sharing it. Everything happens in your browser.
The most common causes are trailing commas, single quotes instead of double quotes, and missing brackets or quotes. The error message points to the problem.
No. Formatting runs locally in your browser, so your data is not uploaded.
JSON (JavaScript Object Notation) is a text format for structured data, widely used in APIs, configuration files and web apps. This tool has three actions. Format JSON parses your input and prints it with 4-space indentation so it is easy to read. Minify JSON removes whitespace to make it compact. Validate JSON checks whether the text is valid and shows an error message if not.
Parsing uses your browser's built-in JSON parser, so the rules are strict and the same as in JavaScript. Nothing is uploaded.
Input: {"name":"Asha","skills":["html","css"]}
After Format JSON the output is spread across several lines with indentation, with each key on its own line. After Minify JSON you get the compact one-line version again.
The message shows the position of the problem. Look for missing commas, extra commas, unmatched brackets or single quotes.
Formatting adds whitespace for readability. Minifying removes it to reduce size.
No. It changes only the whitespace, not the keys or values.
No. It reports the error so you can correct it yourself.