How to use the JSON Formatter & Validator
- 1Paste JSON or load the sample.
- 2Select Format, Minify or Validate.
- 3Copy the output.
Supported formats and limits
- Strict JSON only: no comments, trailing commas or single quotes.
- Indentation: 2 spaces, 4 spaces or tabs.
- Very large inputs (several MB) may be slow on older devices.
Common uses
- Reading a minified API response.
- Finding the stray comma breaking a config file.
- Minifying JSON before embedding it.
Frequently asked questions
Why are comments rejected?
Standard JSON does not allow comments. Remove them or use a JSON5-aware tool.
