Lint & validate JSON
JSON Validator
Check whether JSON is valid while you type. Every syntax error is underlined on its exact line and column, explained in plain English, and often fixable in one click.
Select a node to see its pathThe beautified JSON and tree appear here as soon as your input is valid.
Drop to open
.json, .txt and other text files
How it works
How to use the JSON Validator
- 01
Paste the JSON you want to check, or drop in a file.
- 02
Read the status bar. A green “Valid JSON” means you are done; otherwise each problem is listed with its line and column.
- 03
Click an error to jump to it, or press Fix to repair trailing commas, quotes, comments and more.
FAQ
Frequently asked questions
What are the most common JSON errors?
Trailing commas after the last item, single quotes instead of double quotes, unquoted keys, comments, missing commas between items, and unclosed brackets. Our guide to common JSON errors covers each one with an example.
Does the validator check against a JSON Schema?
Not yet. It checks that the text is valid JSON syntax as defined by RFC 8259. Schema validation is on our roadmap.
Why does my JSON fail here but work in JavaScript?
JavaScript object literals allow things JSON does not, such as single quotes, unquoted keys, trailing commas and comments. Strict JSON parsers in other languages will reject those too.
Is my JSON uploaded to a server?
No. All parsing, formatting and validation happens in your browser with JavaScript. Nothing you paste or open is sent to us or stored on a server. Share links keep the JSON inside the URL fragment (after the #), which browsers never send to servers.
Tools
More JSON tools
JSON Viewer
Free online JSON viewer, formatter and validator. Paste or upload JSON to beautify it, explore it as a tree and find syntax errors by line. 100% private.
JSON Formatter
Pretty-print JSON instantly with 2-space, 4-space or tab indentation, optional key sorting and syntax highlighting. Free online JSON beautifier, no upload.
JSON Tree Viewer
Explore JSON as a collapsible tree with type badges, item counts, search and click-to-copy JSONPath. Handles large files smoothly. Free online tool.
JSON Minifier
Minify JSON by stripping whitespace and line breaks to shrink payloads. See the size saved instantly. Free, private online JSON compressor.
JSON Repair
Repair invalid JSON automatically: trailing commas, single quotes, comments, unquoted keys, missing brackets, Python True/None and more. Free and private.