Skip to content

JSON Validator

Runs in your browser

Checked against the real grammar, with no quiet fixing up. You get the line, the column, and the reason.

JSON to validate

Paste something in and the verdict shows up here.

What makes JSON “valid”?

Valid JSON follows the grammar defined in RFC 8259: object keys must be double-quoted strings, no comments are allowed, arrays and objects can't end with a trailing comma, and strings must escape control characters. ToolJar's validator implements this grammar directly rather than relaxing it, so a document that passes here is guaranteed to work with any standards-compliant JSON parser — it won't silently accept malformed input and call it valid.

Questions

It looks fine to me — why is it invalid?
Usually one of four things: a trailing comma, single quotes instead of double, an unquoted key, or a comment. All of them are fine in a JavaScript object literal, which is why they look right — none of them are legal JSON. The error above points at the exact spot.
Does this check my data against a schema?
No — this only answers "is this JSON at all". Whether a required field is missing or a value is the wrong type is a separate question, and you'd want a JSON Schema validator with your own schema for that.

Keyboard shortcuts

Global

  • Show this shortcuts dialogShift?
  • Toggle light / dark themeCtrlShiftL
  • Close dialogsEsc

Formatter & Validator

  • Format JSONCtrlEnter
  • Minify JSONCtrlShiftM
  • Copy outputCtrlShiftC
  • Download output as .jsonCtrlShiftS
  • Clear input and outputCtrlShiftX

Tree Viewer

  • Focus the search box/
  • Expand all nodesCtrlShiftE
  • Collapse all nodesCtrlShiftR

Diff

  • Swap document A and BCtrlShiftS

JSON tools

JSON FormatterPretty-print or minify
JSON ValidatorCheck strict JSON validity
JSON Tree ViewerBrowse JSON as a tree
JSON DiffCompare two documents
JSON Path FinderExplore JSONPath expressions
JSON → CSVFlatten JSON into rows
CSV → JSONTurn rows back into objects

JWT tools

JWT DecoderRead header, payload, claims
JWT VerifierCheck an HMAC signature
JWT Expiry Checkeriat, nbf and exp in local time
JWT GeneratorBuild a signed test token
Base64URL EncoderEncode or decode a segment

Code formatters

SQL FormatterBeautify or minify SQL
HTML FormatterBeautify or minify HTML
CSS FormatterBeautify or minify CSS
JavaScript FormatterBeautify or minify JS
Markdown to HTMLConvert with a live preview

Pages

JSON toolsFormat, validate, compare and convert JSON.
JWT toolsDecode, verify and generate JSON Web Tokens.
Code formattersBeautify and minify SQL, HTML, CSS and JavaScript.
HomePopular tools and categories
All categoriesBrowse tools by category
AboutWhat ToolJar is and why
PrivacyWhat is and is not collected

Theme

Switch to light theme
Switch to dark theme