Paste JSON to format it, check it or squeeze it flat. The reason to use a tool that runs locally is simple: the JSON people most need to format is an API response or a log line from production, and pasting that into a website is exactly the thing your security policy forbids.
Errors that tell you what is wrong
Those six account for the overwhelming majority of malformed JSON. The remaining cases fall back to the position and the excerpt, which is still enough to find it.
What the statistics are for
Sorting keys
Formatter, beautifier, validator, pretty-printer
Other names for this
Also searched as “json beautifier”, “json pretty print”, “format json online”, “json parser”.
Questions
- Can I format JSON with comments (JSONC)?
- No. Comments make it a different format — JSONC or JSON5 — and this parser is strict, which is what makes it useful for checking whether a real parser will accept your file. Strip the comments first.
- Is there a size limit?
- No imposed limit. Very large documents (tens of megabytes) will make the browser sluggish because formatting is a synchronous operation, but they work. Drop the file rather than pasting it — the paste box gets slow long before the parser does.
- Why does minifying save so much?
- Indentation and newlines are typically 15–30% of a formatted JSON document. Over the wire that mostly disappears under gzip, but it matters for anything you are storing in a size-limited field.
- Does my text leave the browser?
- No. Everything runs as JavaScript in this tab — there is no server involved and no request is made. Open the Network panel and watch, or turn your Wi-Fi off and keep using the tool.