JSON formatter and validator
Paste your JSON, then format it for reading, minify it for sending, or check if it is valid. If there is an error you see where it is.
Free, no sign-up, no uploadHow it works
Format adds indentation so nested data is easy to read. Minify removes all spaces and line breaks to make the text as small as possible.
If the JSON is not valid, the tool shows the error message and the line and column where the problem starts. Common causes are a missing comma, single quotes instead of double quotes, or a trailing comma.
Your data stays in your browser, so it is safe to paste API responses and config files.
Private by design
Everything happens on your device. Files are not uploaded to any server.
Frequently asked questions
Is my JSON sent to a server?
No. It is parsed in your browser only.
Why does my JSON fail?
The most common reasons are single quotes, a comma after the last item, or an unquoted key.
Can it sort the keys?
Yes. Tick “Sort keys” and the keys of every object are sorted alphabetically.