What to know before using it
JSON syntax is strict about quotes, commas and balanced braces. A parser often reports where it can no longer continue, while the actual mistake may be on the previous token or line.
FREE WEB TOOL
Format or minify JSON, locate syntax errors by line and column, choose indentation, optionally sort keys, inspect structure metrics, and copy or download the result.
Your input is processed in your browser and is not sent to our server.
Format or minify JSON, locate syntax errors by line and column, choose indentation, optionally sort keys, inspect structure metrics, and copy or download the result.
JSON keys and strings need double quotes. Trailing commas are invalid.
JSON syntax is strict about quotes, commas and balanced braces. A parser often reports where it can no longer continue, while the actual mistake may be on the previous token or line.
For an API response, pretty-print with two spaces, inspect the reported error position, then copy only the necessary fragment.