Structured data JSON-LD validator
Validate JSON-LD syntax and detect types, entities, and structural warnings. Free local processing with no account required.
- Clipboard
Local analysis
Validate JSON-LD syntax, detect Schema.org types, and flag missing @context or @type without uploading the data.
Local analysis: verify the result in the target environment before using it in production.
Result
Was this tool useful?
On this page
How does this tool work?
This validator checks the syntax of your JSON-LD structured data before publishing: valid JSON, presence of @context and @type, Schema.org types used. It accepts a standalone JSON block or <script type="application/ld+json"> tags taken from a page, and produces a report plus an indented version of the data.
The tool looks for <script type="application/ld+json"> tags in the pasted text; if it finds none, it treats the whole content as a single JSON block.
Each block is parsed with a strict JSON parser. A trailing comma, a single quote instead of a double quote or a comment is enough to make the block invalid: the error gives the block number and the position of the problem.
In a valid block, the tool treats top-level objects and @graph items as entities and records their @type; nested objects, such as an Offer inside a Product, are not counted separately. An entity without @type or a block without @context produces a warning.
The final report shows valid, the number of blocks and entities, the sorted list of types, the warnings, the errors and the normalised data.
How to use this tool
Paste the JSON-LD
A JSON object, an array or <script type="application/ld+json"> tags, or even a page’s HTML.
Analyze
The JSON-LD blocks, Entities, Detected types and Warnings counters appear.
Fix the errors
A syntax error blocks the whole block: fix it first at the position given.
Check the warnings
Add @context or @type where they are missing, then run the analysis again.
Use cases
Review markup before release
Paste the JSON-LD of a product page or FAQ to catch a syntax error that would invalidate it entirely.
Check a CMS-generated page
Paste the source code to see how many JSON-LD blocks the theme and plugins inject and which types they declare.
Debug a missing rich result
Rule out a syntax error before looking at the properties Google requires.
Examples
Two blocks, one without @context
The JSON is valid, but the second block has no @context: without it, search engines cannot tell that BreadcrumbList comes from Schema.org.
Input
<script type="application/ld+json">{"@context":"https://schema.org","@type":"Product","name":"Steel bottle 750 ml","offers":{"@type":"Offer","price":"24.90","priceCurrency":"EUR"}}</script>
<script type="application/ld+json">{"@type":"BreadcrumbList","itemListElement":[]}</script>Result
"valid": true, "blocks": 2, "entities": 2, "types": ["BreadcrumbList", "Product"],
"warnings": ["Block 2: @context is missing"], "errors": []Extra comma
The comma before the closing brace is not allowed in JSON: the whole block is rejected and no entity is read.
Input
{"@context":"https://schema.org","@type":"FAQPage",}Result
"valid": false, "blocks": 1, "entities": 0,
"errors": ["block 1: Expected double-quoted property name in JSON at position 51 (line 1 column 52)"]Tips and best practices
- The tool checks syntax and structure, not the properties each type requires: a Product without offers or review is valid here but not eligible for the product rich result.
- For rich result eligibility, follow up with Google’s Rich Results Test; for vocabulary compliance, with the Schema.org validator.
- Structured data must describe what is visible on the page: a review or price that is not in the content can lead to a manual action.
- Prefer a single block with @graph when several entities are related (Organization, WebSite, BreadcrumbList).
Sources and references
- Schema.org — Schemas (opens in a new tab), Schema.orgPage in English
Frequently asked questions
How is this different from Google’s Rich Results Test?
This tool checks JSON syntax, @context and @type locally, without sending anything. Google’s test loads the page and checks the properties required for each rich result. The two complement each other.
Why is a missing @context only a warning?
The JSON is still valid, but without @context terms like Product or Offer are not tied to any vocabulary. Search engines may ignore the block: add "@context": "https://schema.org".
Are Microdata and RDFa supported?
No. The tool reads only JSON-LD, the format Google recommends.
How are entities counted?
Each top-level object counts as an entity, as does each item in an @graph. Nested objects are not counted: a Product containing an Offer stays a single entity, and only Product appears in the types.
Is my data sent to a server?
No. Validation runs in your browser.
Related tools
Keep going with these tools
Tools similar or complementary to this one.
Works well with
Create JSON-LD structured data ready to embed in a web page.
Analyze key SEO signals in HTML locally.
Detect noindex, nofollow and canonical inconsistencies from HTML.
Read next
SEO pre-publish audit: sitemap, links, redirects and structured data
A practical workflow to review SEO changes before publishing: sitemap, link relationships, redirects, keyword usage and structured data.
Schema.org and JSON-LD: add useful structured data without overpromising
Understand structured data, choose relevant Schema.org types and generate JSON-LD that matches visible page content.
Technical SEO: how search engines crawl and interpret a page
Understand crawling, indexing, canonicals, metadata, structured data, performance and internal linking without confusing optimization with ranking.
How to optimize 50 images for the Web at once
Resize a batch of images, convert them to WebP and remove metadata with one reusable Pipeline.