JSON Formatter & Validator
Validate, pretty-print and minify JSON. Runs locally — your data never leaves the browser.
How it works
The input is parsed with the browser's native JSON parser. Format re-serializes it with 2-space indentation; Minify strips all insignificant whitespace for compact payloads; Validate reports the exact parse error when the input is broken.
Common gotchas it catches: trailing commas, single-quoted strings, unquoted keys, and comments — none of which are valid JSON (use JSON5 or YAML if you need those).
Frequently asked questions
Why does "1e3" become "1000"?
Formatting re-serializes the parsed value, and the serializer writes numbers in its canonical form. The value is identical — only the representation changes.
Is there a size limit?
No hard limit, but multi-megabyte documents may take a moment — parsing is single-threaded.
Is my JSON uploaded anywhere?
No. Parsing and formatting happen entirely on your device.