Schema Markup Validator

On this page 7

The Schema Markup Validator is a free, general-purpose tool that extracts and checks structured data against the Schema.org vocabulary. It reads markup written in JSON-LD, Microdata and RDFa, displays the detected entities and their properties, and reports syntax errors and vocabulary warnings. In structured data work for SEO, it is the reference check for whether markup is valid Schema.org, independent of any single search engine.

The tool is maintained by the Schema.org project and succeeded the retired Structured Data Testing Tool. It deliberately answers a narrower question than search engine tools: it confirms that markup is well formed and uses real types and properties, not whether a page qualifies for a particular rich result.

How the Schema Markup Validator processes markup

The validator works in three stages: it obtains the HTML, extracts every structured data block it recognizes, and compares each extracted item with the Schema.org definitions. Input can be a public URL, which the tool fetches, or a pasted code snippet, which is useful for testing markup before deployment.

Extraction produces a tree of entities, each with a type such as Product or Organization and a list of property values. Nested entities, such as an Offer inside a Product, appear as child nodes, which makes the result a practical way to inspect how a parser actually reads the markup rather than how the author intended it.

StageWhat happensTypical finding
Fetch or pasteHTML is retrieved or accepted as inputBlocked URL or wrong page version
ExtractionJSON-LD, Microdata and RDFa are parsedJSON syntax errors, broken nesting
Vocabulary checkTypes and properties are matched to Schema.orgUnknown property or misspelled type
DisplayEntities shown as a navigable treeDuplicate or orphaned entities
Processing stages and what each one reveals

An important limitation is rendering. When a URL is fetched, structured data injected by client-side JavaScript may or may not be detected, so markup added by tag managers is best confirmed with a search engine tool that renders the page or by testing the rendered HTML as a snippet.

Errors, warnings and what they mean

The validator reports issues at two severity levels, and interpreting them correctly prevents wasted effort. Errors indicate markup that cannot be parsed or that breaks the data model, while warnings usually point to vocabulary usage that is unexpected but not necessarily wrong.

Message typeExample causeRecommended action
Syntax errorTrailing comma or unclosed bracket in JSON-LDFix immediately, the block is ignored
Unknown typeMisspelling such as ProdcutCorrect the type name
Unknown propertyProperty not defined for that typeUse a valid property or move it
Unexpected value typeText where an entity is expectedNest the correct entity type
No items detectedMarkup missing or not renderedCheck deployment and rendering
Common validator messages and responses

A clean result means only that the markup is valid Schema.org. It does not confirm that required properties for a search feature are present, because the Schema.org vocabulary itself makes almost no properties mandatory. Search engines publish their own requirements on top of the vocabulary.

Schema Markup Validator compared with the Rich Results Test

The two tools are complementary rather than interchangeable: the Schema Markup Validator checks vocabulary correctness for all types, while the Rich Results Test checks eligibility for Google search features for a limited set of supported types.

AspectSchema Markup ValidatorRich Results Test
MaintainerSchema.org projectGoogle
Types coveredEntire Schema.org vocabularyOnly types with rich result support
Checks againstSchema.org definitionsGoogle feature requirements
Required property checksNoYes, per feature
JavaScript renderingLimitedFull rendering with a mobile crawler
Result previewEntity treeFeature eligibility and preview
Scope of the two validation tools

In practice, markup for types without rich result support, such as Organization details beyond the logo or specialized types used by AI search and knowledge systems, can only be checked meaningfully with the Schema Markup Validator.

Using the validator in a structured data workflow

The validator is most effective as a pre-deployment and regression check inside a repeatable process rather than an occasional manual test. A typical workflow runs in a fixed order.

  1. Validate the snippet generated by the template before it is merged, so syntax errors never reach production.
  2. Validate a live URL for each template type after release, confirming that the deployed HTML contains the expected entities.
  3. Run the Rich Results Test on the same URL for types that target search features.
  4. Monitor the enhancement reports in Search Console for errors that appear at scale across many pages.

Because one template often produces thousands of pages, testing one representative URL per template catches most problems. Edge cases still deserve attention, for example products without reviews or articles without an image, where conditional template logic can output empty values or broken JSON.

Limitations and common misconceptions

The most frequent misconception is that passing the validator guarantees rich results. It does not: eligibility also depends on feature-specific requirements, content quality guidelines and the discretion of the search engine.

  • Valid markup can still be misleading, for example review markup describing content that is not visible on the page, which violates search engine guidelines.
  • Single-page testing misses inconsistencies across a site, such as conflicting Organization data on different templates.
  • Fetch limitations mean that pages behind authentication, geoblocking or bot protection may not be retrievable.
  • Warnings are not always actionable, since newer or pending vocabulary terms may be flagged until they are adopted.

Explained without jargon

Many web pages contain hidden labels that tell computers facts such as “this is a product, it costs 49 dollars, it is in stock”. These labels follow a shared dictionary called Schema.org.

The Schema Markup Validator is a spelling and grammar checker for those labels. It reads them, shows what it found and points out mistakes. It does not promise that a search engine will display anything special, but it confirms that the labels are written correctly and readable by machines.

A typical use case

A developer at a regional events company rebuilds the event listing template and adds Event markup in JSON-LD with the name, start date, location and ticket offers. Before merging, the developer pastes the generated output into the validator and finds a syntax error caused by an unescaped quotation mark in an event title, which would have made the whole block unreadable.

After the fix and deployment, the developer validates three live URLs: a paid concert, a free workshop and a postponed event. The validator shows that the free workshop outputs an Offer with an empty price, and the template is changed to output a price of zero. The Rich Results Test is then run on the same pages to confirm event feature eligibility, and Search Console later reports no structured data errors across roughly 400 event pages.