Developer tools
JSON Formatter & Validator
Pretty-print, minify and validate JSON, with the exact position of any error.
Paste JSON to begin
How to use it
- Paste JSON on the left. It is formatted on the right as you type.
- Use Minify to strip whitespace, or Copy to grab the result.
- Invalid JSON shows the error and where it happened.
Questions
- Is my JSON uploaded?
- No. Formatting happens entirely in your browser.
- Why does it reject trailing commas?
- Strict JSON does not allow them. Remove the last comma in an object or array.