How this tool works
The browser parses the JSON with JSON.parse and prints it with two-space indentation.
Format compact JSON into readable indented JSON or show the parse error.
The browser parses the JSON with JSON.parse and prints it with two-space indentation.
The formatter parses JSON and prints it with indentation. If the JSON is invalid, it shows the parse error instead of guessing.
Paste compact API output to make nested objects and arrays easier to inspect.
JSON requires quoted property names and valid commas. JavaScript object notation is not always valid JSON.