Skip to content

SEO for websites

Schema validator: how to test and create schema

How to test schema with the Rich Results Test, Schema Markup Validator and Search Console, how to create it with a plugin or generator, and common errors.

By Leous · Updated · 4 min read

Cover image for the article “Schema validator: how to test and create schema” on the Leolinq blog

Testing schema means confirming that the structured data on a page has correct syntax, uses the right types and can be read by Google. A small slip such as a missing comma can disable a whole block, so every addition or change needs a test.

This guide covers three testing tools, the ways to create schema and the errors that come up most. For the concept, see what is schema markup.

Three tools for testing schema

Rich Results Test

The Rich Results Test is Google’s free tool. Enter a URL or paste code and it returns:

  • Which rich results the page is eligible for.
  • Errors (must fix) and warnings (should fix) for each item.
  • A preview in search results, for some types.

Its limit: it only reports schema types Google uses for rich results. A complete Organization block may not appear there even though it is perfectly valid. Types Google has stopped supporting, such as FAQ, are no longer tested either.

Schema Markup Validator

The Schema Markup Validator (validator.schema.org) checks every schema type against the schema.org standard, whether or not Google uses it. This is the schema validator to use for seeing all the structured data on a page and catching syntax errors.

Use both: the Validator to know the schema is correct, the Rich Results Test to know what Google can display.

Google Search Console

The two tools above test one page at a time. Search Console shows the state of the whole site:

  • The Enhancements section lists each structured data type Google found, with valid and invalid page counts.
  • URL Inspection shows which schema Google read on a given page at its last crawl.

Search Console takes a few days to update after a fix.

Drawing of nested boxes “Each tool answers one question”, from widest to narrowest
The Validator tells you the schema is correct, the Rich Results Test what Google can display, and Search Console the state of the whole site.

A testing routine

  1. Before publishing: paste the code into the Schema Markup Validator to catch syntax errors.
  2. After publishing: run the URL through the Rich Results Test.
  3. View the page source: confirm one block per type, not two plugins both outputting.
  4. After a few days: check whether Search Console has picked it up and whether new errors appear.
  5. Monthly: review Enhancements, especially after a theme or plugin change.
Drawing of a route “Five moments to test schema” with milestones
Test schema at five moments, from before publishing to a monthly review.

How to create schema

A plugin or the platform’s built-in features

On WordPress, the popular SEO plugins output schema for the home page, articles and breadcrumbs. Shopify and the major store platforms include product schema in their themes.

Your part is completing the settings: organization name, logo, social profiles, author details. Defaults are almost always incomplete.

A schema markup generator

A schema generator is an online tool where you fill in a form and get JSON-LD code. It suits sites without a plugin, or schema types a plugin does not cover.

When using one:

  • Validate the output before you use it.
  • Replace any sample values the tool pre-filled.
  • Keep only the properties that are true for your page.

By hand

JSON-LD is simple enough to write by hand for the basic types. Examples for organizations and authors are in Organization and Person schema.

Where the code goes

A JSON-LD block sits inside a <script type="application/ld+json"> tag, in the <head> or the <body>. On sites where you cannot edit code it can be injected through Google Tag Manager, but that relies on Google running the page’s JavaScript, so use it only when there is no other way.

Key point Create schema however you like. What is not optional is testing after publishing, and again whenever the site changes.

Common errors

  • JSON syntax errors: a missing comma, a trailing comma on the last item, the wrong kind of quotation mark.
  • Missing required properties: for example Product with no offers, review or aggregateRating.
  • Schema that does not match the page: a different price, reviews that are not on the page.
  • Duplicate schema: theme and plugin both output one type.
  • Relative paths: url, logo and image should be full URLs.
  • Wrong date format: dates follow ISO 8601, for example 2026-11-24.
  • Leftover theme schema: the theme developer’s name and logo still in the code.
Diagram “Seven common schema errors”
Seven common errors that make schema invalid or unused by Google.

Valid schema but no rich result

This is normal. Common reasons:

  • The type has no rich result, or Google stopped supporting it. See FAQ, Article and Product schema.
  • The page is not indexed, or Google has not recrawled it since you added schema.
  • Google chose not to show one. Valid schema makes a page eligible; it is not a guarantee.
  • The page content breaks the structured data guidelines.

Testing schema is one item in a site-wide SEO audit checklist.

Frequently asked questions

Do yellow warnings in the Rich Results Test need fixing?

Not necessarily. A warning is a recommended property that is missing. The page stays eligible. If the information really is on the page, add it.

How soon does Google pick up new schema?

When it recrawls the page, usually within days to weeks. You can request indexing in URL Inspection to speed it up.

I am not technical. Is there a simpler way?

A plugin with complete settings is enough for most sites. With a Leolinq pack, schema is created for you and matches your entity profiles; see the entity SEO service.

Further reading

Official documentation and reference pages on this topic:

Keep reading More on entity, and backlinks.

Want this done for your site?

Send your domain. We reply within one working day with a first look at your site and a clear quote.

Get a free audit