JSON formatter
Format, validate, and minify JSON in the browser. An error points at the position that broke.
Output appears here.
Tips & common uses
- Click Format to pretty-print with 2-space indentation, or Minify to strip whitespace for compact payloads and config strings.
- If JSON is invalid (for example, trailing commas or single quotes), the status message reports the exact syntax error.
Frequently asked questions
Is it safe to paste private API responses or configs here?
Yes. Formatting and validation run strictly with your browser’s built-in JSON.parse and JSON.stringify—nothing is transmitted over the network.
Why does JSON reject trailing commas or single quotes?
Strict JSON (RFC 8259) requires double quotes around keys and string values and forbids trailing commas after the last item in an object or array.