How to use the JSON Formatter & Validator
- Paste your JSON.
- Choose Format or Minify, plus the indentation.
- Copy the result or fix the reported error.
Features
- Validation with line and column
- Format with 2 spaces, 4 spaces or tabs
- Minify
- Optional key sorting
Frequently asked questions
Is my JSON sent to a server?
No. Parsing and formatting run entirely in your browser, so it is safe for API responses and configuration files.
Why are trailing commas an error?
Standard JSON does not allow trailing commas or comments, even though JavaScript does.