Format · Validate · Minify
JSON Validator
Paste JSON below to validate, prettify, or compress it.
About this JSON validator
JSON (JavaScript Object Notation) is a lightweight data interchange format. This tool parses your input with the browser's native JSON parser, so you get the exact same validation behavior used by web APIs, Node.js, and modern frameworks. Validation runs locally — your JSON never leaves your device.
What does each button do?
- Validate & Format: Parses and pretty-prints with 2-space indentation. Shows a green check on success or a precise error message on failure.
- Minify: Strips whitespace and produces a single-line compact representation — useful for transmitting JSON over the wire.
- Clear: Empties the editor.
What kinds of errors will it catch?
Any syntax error: unmatched braces or brackets, trailing commas, unquoted keys, single quotes, control characters in strings, and so on. The error message includes a description of what the parser expected.
Does it support JSON5 or comments?
No. This validator follows strict RFC 8259 JSON. Comments, trailing commas, and unquoted keys are not allowed.