Paste JSON to format it with clean indentation, or minify it for transport. Invalid input is rejected with the exact position, so you can find the typo fast.
It runs JSON.parse then JSON.stringify on your input. Formatting rewrites the text with your chosen indentation so nested objects and arrays are readable. Minifying strips every optional space and newline, which is what you want before sending JSON over a network or storing it.
Because parsing happens locally, the same code path validates as it formats. Anything that is not strict JSON is refused and the error names the character offset.
JSON is stricter than JavaScript object literals. These all fail:
{"a":1,} is invalid.{a:1} is not JSON.// nor /* */ is allowed.A byte-order mark at the start is stripped automatically. Very large integers lose precision because JavaScript parses numbers as doubles, so IDs above 2^53 should be treated as strings.
Yes. No account, no payment, no limits.
No. Everything runs in the page.
Almost always a trailing comma, a single-quoted string, an unquoted key, or a comment. JSON permits none of them.
Comfortably into the low megabytes. Past that the browser's memory is the constraint.