JSON Formatter & Validator
Pretty-print, minify, validate and sort JSON instantly.
About this tool
Format and validate JSON online without sending your data to a server - ideal for API responses, configuration files and tokens that may contain secrets. Pretty-print with 2-space indentation, minify for production, or sort keys alphabetically.
Why does my JSON fail to parse?
The most common causes are trailing commas, single quotes instead of double quotes, and unquoted keys - the error message points at the position.
Is it safe to paste API responses with secrets?
Yes. Parsing happens in your browser; nothing is transmitted or stored.