JSON Formatter
Paste messy or minified JSON to format, minify, or explore it as a collapsible tree. Runs entirely in your browser, nothing is sent anywhere.
Formatted output will appear here.
How to use this
Paste any JSON into the box on the left, then choose whether you want it formatted with clean indentation, minified down to a single line, or explored as a collapsible tree so you can drill into nested objects and arrays without scrolling through a wall of text. If something's wrong with your JSON, this tool tells you exactly which line and column to check instead of failing silently.
Frequently asked questions
How do I format JSON with this tool?
Paste your JSON into the box, then choose to format it with clean indentation, minify it to a single line, or explore it as a collapsible tree.
Does it tell me where my JSON is wrong?
Yes. If the JSON is invalid, the tool shows the exact line and column of the problem instead of failing silently.
Is my JSON uploaded to a server?
No. The formatter runs entirely in your browser, so your data stays on your device.
What are the most common reasons JSON is invalid?
A trailing comma after the last item, single quotes instead of double quotes, and comments (which JSON does not allow) cause most errors.