JSON Validator
Paste JSON above to check it. A valid document gets a green Valid JSON badge; an invalid one shows the first error, such as a missing comma or an unclosed bracket, with its line and column, and the line is highlighted. Validation runs in your browser, so you can safely check API responses and config files.
How to validate JSON
- Paste the JSON. Paste it into the Input panel, or Import a .json file.
- Press Validate. Or just wait: the status updates by itself as you type.
- Go to the error. The badge names the problem and its line:column, and the editor highlights that line.
Common JSON errors it catches
Trailing commas
A comma after the last item of an object or array, which JavaScript allows but JSON does not.
Single quotes
Strings and keys must use double quotes in JSON.
Comments
// and /* */ comments are not part of JSON; config formats like JSONC allow them, APIs don't.
Missing commas or brackets
Reported where the parser gets stuck, which is usually right after the real mistake.
Questions
Is my JSON uploaded anywhere?
No. Formatting and validation run in your browser. There is no server that receives your JSON, and the site has no analytics or ad scripts. You can check it in your browser's network tab: typing JSON sends no request.
How do share links work?
Share link compresses your JSON and puts it after the # in the link. The part after # is never sent to a server, so the JSON travels only inside the link. Whoever opens it sees it formatted, in their own browser.
How big can the JSON be?
Up to 5 MB, typed, pasted or imported from a .json or .txt file. That keeps the editor fast on any computer.
Does it accept comments or trailing commas?
No. It checks strict JSON as defined by RFC 8259, which is what APIs and JSON.parse expect. A comment or a trailing comma is reported as an error with its line and column, so you can remove it.
- JSON Formatter — format and validate in one place
- JSON Beautifier — pretty-print minified JSON
More free, private tools
- MD ClarityPreview Markdown, export to PDF
- PDF ClarityMerge, split, sign and OCR PDFs
- Sequence ClarityText to sequence diagram
Made by Aicha. No ads, no tracking, no uploads. If it saved you time, you can buy me a coffee on Ko-fi to keep it free.