JSON Formatter & Validator
Format, minify, or validate standard JSON in your browser. Readable parse errors help you find invalid syntax.
JSON formatter and validator
Accepts standard JSON values. JavaScript comments, trailing commas, and other extensions are not supported.
How to use this tool
- Paste JSON or load the sample object.
- Choose Format, Minify, or Validate.
- Copy the result or clear the editor. Errors include the parser's syntax detail.
Example
Formatting { "ok": true } gives:
{
"ok": true
}Privacy and JSON syntax
Parsing and formatting happen in this browser. Input is not sent to an API or saved in browser storage. The parser follows standard JSON syntax; it does not accept comments, single-quoted strings, or trailing commas.
See examples of common JSON syntax errors or browse the tool directory.