JSON Formatter
Paste minified or invalid JSON to format it with indentation. We also validate and show errors. All processing in your browser.
Format JSON
How it works
We parse the input with JSON.parse() and re-serialize with JSON.stringify(obj, null, 2). Invalid JSON shows an error message.
When to use it
Use this when you need a quick result without installing software or creating an account.
Frequently asked questions
Trailing commas?
JSON does not allow trailing commas. Remove them before parsing.