How to format and validate JSON
Use formatting to inspect structure and minification only after the data parses successfully.
-
Paste the JSON
Insert the object, array, API response, or configuration data. Avoid pasting secrets you do not need to inspect.
-
Format or minify
Format for indentation and syntax highlighting, or minify when you need compact valid JSON.
-
Resolve errors and export
If parsing fails, use the reported position as a starting point. After validation succeeds, copy or download the result.