Paste JSON to pretty-print it with your choice of indentation, validate it with precise error locations, or minify it for production. Optionally sort keys alphabetically.
How to use the JSON Formatter & Validator
- Paste your JSON.
- Click Format, Minify or Validate.
- Copy or download the result.
Common JSON errors
Trailing commas, single quotes instead of double quotes, unquoted keys and comments are not allowed in standard JSON. The validator shows the line and column of the first error.
Frequently asked questions
Is my JSON sent to a server?
No. Parsing and formatting use your browser's built-in JSON engine.
How big a file can I format?
Several megabytes work fine on modern devices.