JSON minifier
Remove whitespace from valid JSON.
Developer toolsValidate JSON and make it easy to read.
Getting your tool ready…
Inspect JSON data with consistent two-space indentation. The tool parses your input before formatting it, so malformed JSON produces an error instead of a modified result. Parsing also normalizes the representation; do not use this formatter where the exact original bytes or very large numeric literals must remain unchanged.
Use valid JSON with double-quoted keys and strings.
Generate a readable result with two-space indentation.
Review the parsed values, then save the formatted.json output.
No. Standard JSON does not allow comments, single-quoted strings, or trailing commas, and the parser rejects them.
Yes. JavaScript parses numbers with finite precision. Very large integers can lose precision; encode exact identifiers as strings.