JSON Formatter & Validator
Format, beautify, validate and minify JSON — with clear line and column error messages and optional key sorting.
How to use
- 1Paste your JSON.
- 2Choose an indent or Minify; errors show the exact line and column to fix.
Frequently asked questions
Why is my JSON invalid?
The usual culprits are trailing commas, single quotes instead of double quotes, unquoted keys, and comments — none are allowed in strict JSON.
Is my JSON uploaded?
No. Formatting and validation run in your browser, so it's safe for API responses and config files containing private data.
Does sorting keys change my data?
Only the order of object keys changes, which doesn't affect meaning in JSON. Array order is always preserved.