JSON Formatter & Validator
Free JSON prettier online. Format, validate, minify, sort keys, and convert JSON to YAML. Errors show line and column so you can fix broken JSON fast.
JSON input
Output
How to use
- Paste JSON in the input box; pick 2 or 4 spaces indent.
- Press Prettify, Minify, Sort keys, or To YAML.
- Copy or download the result. Errors name line and column so you can fix fast.
FAQ
Where is my JSON processed?
Locally in your browser. Paste with confidence — no server sees your data.
Can it fix trailing commas?
Yes. The repair option strips trailing commas, comments, and single-quoted strings before parsing.