JSON-LD Validator
Validate pasted JSON-LD syntax and common keyword shapes. Find duplicate keys, invalid type arrays and malformed context values by line and column.
How to Fix an Invalid JSON-LD Type Array
Checks JSON syntax and common JSON-LD keywords in a raw value or a JSON-LD script block. The checks use your supplied source locally. Context expansion, Microdata, RDFa and search eligibility are outside their scope.
JSON-LD Validator: how to use it
- Paste a JSON-LD object, array or script block with type application/ld+json. Use Load example to try the gallery event graph.
- Select Validate JSON-LD. Use the line, column and JSON Pointer to find each issue. Open the gallery example and change the number in its type array to a quoted type.
- Validate again after editing. Download the JSON report to keep the original submitted text with the locations, findings and literal types.
Limits and notes
Up to 250,000 UTF-16 code units, 96 levels of JSON nesting and a 1 MiB UTF-8 file. Checks common literal JSON-LD 1.1 keyword shapes without expanding contexts or fetching URLs. Vocabulary rules, references across documents and rich-result eligibility are outside the scope.
How your privacy works →JSON-LD Validator: common questions
Why does a numeric @type fail after JSON syntax passes?
JSON supports numbers. A JSON-LD node expects @type to be a string or an array of strings. Check the reported JSON Pointer to find the exact entry.
Does the validator resolve @context or @import URLs?
It records context references as notes and reads common literal context shapes locally. Expanding term aliases or checking an external context requires a JSON-LD processor with access to that context.
Can I paste HTML with several JSON-LD scripts?
Use Structured Data Validator for a saved HTML document. It extracts and checks each inline block and reports its location in the page source.