JSON Formatter
Beautify, validate and minify JSON with clear error locations.
About this tool
The JSON formatter turns a minified string into neatly indented text, validates the syntax and shows the line and column of any error. You can also minify JSON back to one line and sort keys alphabetically.
How to use it
- 1Paste JSON into the left box or press “Sample”.
- 2Press “Format”, “Minify” or “Validate”.
- 3Copy the result or download it as a .json file.
FAQ
Why does my JSON fail validation?
The usual causes are a trailing comma, single quotes instead of double quotes, or an unquoted key. The tool shows the line and column of the problem.
Is the JSON Formatter free?
Yes, completely free with no sign-up and no usage limits.
Are my files or text uploaded anywhere?
No. Everything runs right in your browser: your files and text are never uploaded, never stored by us and never seen by anyone but you.
Does it work on a phone?
Yes, it works in any modern browser on phones, tablets and computers.