Creator Publishing Pack

JSON Formatter

Format compact JSON into readable indented JSON or show the parse error.

How this tool works

The browser parses the JSON with JSON.parse and prints it with two-space indentation.

What formatting does

The formatter parses JSON and prints it with indentation. If the JSON is invalid, it shows the parse error instead of guessing.

Example

Paste compact API output to make nested objects and arrays easier to inspect.

Common mistake

JSON requires quoted property names and valid commas. JavaScript object notation is not always valid JSON.