Compact API response
Input: {"name":"AiFolder","free":true}
Result: The same object with readable indentation and line breaks.
Format, validate, or minify JSON directly in your browser, choose indentation, upload a .json file, inspect parser errors, copy the result, and download formatted JSON.
About this tool
Format, validate, or minify JSON directly in your browser, choose indentation, upload a .json file, inspect parser errors, copy the result, and download formatted JSON.
Motion showcase
A short visual walkthrough generated from this tool's current workflow.
Input: {"name":"AiFolder","free":true}
Result: The same object with readable indentation and line breaks.
Input: {"name":"AiFolder",}
Result: An invalid JSON message; the formatter does not guess how malformed input should be repaired.
Formatting, validation, minification, local file reading, copy, and download run in the browser. The separate Save run action can send the current input and output to AiFolder storage; do not use Save run for secrets or data you do not want stored.
The formatter parses JSON, not a JavaScript object literal. Remove comments, trailing commas, and unquoted property names before retrying.
Prettify adds indentation for inspection. Minify removes unnecessary whitespace. Neither option is intended to change the parsed values.
JavaScript number parsing can lose precision for integers beyond its safe range. Keep long identifiers as quoted strings and compare the output before reuse.
JSON workflow
A practical browser-formatting workflow and privacy checklist.
Trailing commas, quotes, escapes, invalid numbers, and parser failures.
Convert valid JSON into XML when an integration requires it.
Inspect token structure and claims separately from signature verification.