JSON Formatter
Paste JSON to make it readable, find the exact spot of an error, or squeeze it into one line.
How to use it
- Paste your JSON.
- Choose pretty (with indent) or minified.
- Copy or download the result.
Questions
Is my JSON sent to a server?
No. It is checked and formatted by your own browser, so even private data stays on your device.
Why is my JSON invalid?
Common reasons: a comma after the last item, single quotes instead of double quotes, or keys without quotes. The tool shows where the problem is.
Can it sort the keys?
Yes, tick "sort keys" to order every object’s keys alphabetically.