JSON Formatter & Validator
JSON Formatter & Validator pretty-prints, minifies, sorts and validates JSON in your browser. Errors point to the exact line and column, and repair mode fixes comments, trailing commas, single quotes and unquoted keys. Your JSON is never uploaded.
How to use JSON Formatter & Validator
- Paste your JSON into the input.
- Pick Format, Minify or Repair and choose the indentation.
- Copy or download the result. Errors show the line and column.
Frequently asked questions
Is my JSON uploaded anywhere?
No. Parsing and formatting use your browser's built-in JSON engine, and the page makes no network requests with your data.
What does Repair fix?
It removes comments and trailing commas, converts single quotes to double quotes and quotes bare keys, so JSON5-style or hand-edited data becomes strict JSON.
Next step
Next, generate TypeScript interfaces from your JSON. Open JSON to TypeScript.