JSON formatter and validator
Paste JSON to format, minify and validate it.
Ad space
Common JSON mistakes
Valid JSON uses double quotes for keys and strings, has no trailing commas, and has no comments. A single quote, an extra comma after the last item or an unquoted key makes parsing fail. The error message shows what the parser found.
Formatting adds indentation to make nested data readable. Minifying removes all spaces to reduce size for transfer.
FAQ
Is my JSON uploaded?
No. It is parsed in your browser, so private data stays on your device.
Why is my JSON invalid?
Check for single quotes, trailing commas, unquoted keys or comments.
Does formatting change the data?
No. Only whitespace changes. Key order is kept.