JSON Formatter
How to Format JSON
Formatting JSON adds consistent indentation so it's easy to read, and validates it so you catch mistakes. Paste your JSON into the tool below to beautify it instantly.
Format your JSON
Steps to format JSON
- Paste your JSON into the tool above.
- It re-indents the JSON into clean, readable form.
- If the JSON is invalid, you'll see where the error is so you can fix it.
Common JSON mistakes
The usual culprits are a trailing comma after the last item, missing quotes around keys, and single quotes instead of double quotes. JSON requires double quotes.
Beautifying also makes it obvious when a bracket or brace isn't closed, because the indentation won't line up.
Frequently asked questions
How do I format JSON?
Paste it into the tool above and it re-indents it into clean, readable JSON. Invalid JSON is flagged so you can fix it.
What makes JSON invalid?
Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, and unclosed brackets.
Is my JSON uploaded?
No — formatting happens in your browser, so your data stays private.