Free SEO audit for new clients — claim yours
Home/Blog/Technical SEO/How to Test and Fix Structured Data
Technical SEO

How to Test and Fix Structured Data

How to Test and Fix Structured Data
Table of contents
  1. Key Takeaways
  2. The Testing Toolkit
  3. How to Use the Rich Results Test: Step by Step
  4. Errors vs Warnings
  5. Common Errors and How to Fix Them
  6. Valid Does Not Mean Guaranteed
  7. Check What Google Still Supports
  8. Monitoring at Scale
  9. Common Mistakes
  10. Related Guides
  11. Frequently Asked Questions
    1. What is the difference between the Rich Results Test and the Schema Markup Validator?
    2. Why does my page pass the test but show no rich result?
    3. Do warnings need to be fixed?
    4. How long do Search Console reports take to update after a fix?
    5. Can I test a staging site?
  12. Conclusion
  13. References

Structured data is one of the few SEO tasks where you can check your work almost instantly. Paste a URL into a testing tool and within seconds you know whether Google can read your markup and whether it qualifies for a rich result. Yet broken schema is still one of the most common issues in technical audits: missing required fields, invalid dates, markup that does not match the visible page, or JSON-LD that a plugin update quietly broke months ago.

Testing is not a one-off launch task. Templates change, plugins update, content editors paste in new data, and Google changes which features it supports. A page that was eligible for a rich result last year may not be today.

This guide shows you which tools to use, how to read the Rich Results Test, how to fix the most common errors and warnings, and how to monitor structured data across a whole site in 2026.

Key Takeaways

  • Use the Rich Results Test to check eligibility for Google features, and the Schema Markup Validator to check general Schema.org validity.
  • Errors make an item ineligible for a rich result; warnings flag missing recommended fields that can limit how it appears.
  • Valid markup does not guarantee a rich result; Google decides what to show.
  • Check Google's current search gallery before building markup: FAQ rich results are no longer shown for most sites, HowTo was removed, and several other features were retired in 2025.
  • Monitor Search Console's rich result reports after deployment to catch template-wide problems.

The Testing Toolkit

ToolWhat it checksBest used for
Rich Results TestWhether markup is valid for Google-supported rich result types; renders the page like GooglebotTesting a URL or code snippet during development and before launch
Schema Markup ValidatorGeneric Schema.org syntax and vocabulary, including types Google does not use for rich resultsChecking markup for other search engines, AI systems and general correctness
Search Console rich result reportsValid and invalid items found across the site, grouped by issueMonitoring after deployment and validating fixes
URL Inspection (Search Console)What Google found on the indexed version of a pageConfirming a fix on a live page and requesting recrawl
Site crawlersStructured data presence and errors at scaleAuditing thousands of pages and spotting missing markup

Google's structured data introduction recommends exactly this workflow:

“Be sure to check your structured data using the Rich Results Test during development”

— Google Search Central, Introduction to structured data markup in Google Search

It then suggests using the rich result status reports after deployment to monitor your pages. If you are new to schema, start with our schema markup guide.

How to Use the Rich Results Test: Step by Step

  1. Choose URL or code. Test a live URL to see what Googlebot sees after rendering, or paste code to test during development before the page is public.
  2. Pick the user agent. Smartphone is the default and matches mobile-first indexing; switch to desktop only if you need to compare.
  3. Read the summary. The tool lists detected rich result types and whether each item is valid, valid with warnings, or invalid.
  4. Open each item. Expand it to see which properties were found and which are missing or invalid.
  5. Jump to the code. Click an issue to highlight it in the code explorer. For URL tests, Google's help page notes that the explorer uses the rendered source code, which is useful for JavaScript-injected markup.
  6. Check crawl details. If the test fails, look at whether the page was blocked by robots.txt or resources could not load.
  7. Fix and retest. In code mode you can edit and rerun as many times as you like.
  8. Share results if needed. The share button creates a link anyone can view, handy for sending to developers.

Pages behind logins or firewalls cannot be tested by URL, because all resources must be reachable by an anonymous user on the internet. Use code mode or a temporary tunnel for staging sites.

Errors vs Warnings

Errors (shown as invalid items) mean a required property is missing or a value is invalid. The item is not eligible for that rich result until it is fixed. Warnings mean a recommended property is missing or has a problem. The item can still be eligible, but its appearance may be limited. Fix errors first, then add recommended properties where you have accurate data for them. Do not invent values just to clear a warning.

Common Errors and How to Fix Them

IssueTypical causeFix
Unparsable structured dataTrailing commas, unescaped quotes, comments inside JSON-LDValidate the JSON; remove comments and stray commas
Missing required fieldTemplate does not output a property (for example, a product without price data in its offer)Map the field in the CMS or template
Invalid date formatDates like "12/03/2026"Use ISO 8601, such as 2026-03-12, ideally with time and time zone
Invalid object typeAuthor given as text, or wrong @typeUse the expected type (for example, Person or Organization)
Markup not matching visible contentHidden reviews, prices that differ from the pageOnly mark up what users can see
Detected in code test but not URL testJavaScript failed to render or resources blockedCheck rendering; consider server-side output

Here is an Article snippet with three problems: a JSON comment, a non-ISO date and a trailing comma (plus a text-only author, which works better as a Person object):

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "How to Choose a Running Shoe",
  "datePublished": "12/03/2026",   // comment: not allowed in JSON
  "author": "Jane Smith",
}
</script>

The corrected version:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "How to Choose a Running Shoe",
  "datePublished": "2026-03-12T08:00:00+00:00",
  "author": {
    "@type": "Person",
    "name": "Jane Smith",
    "url": "https://www.example.com/authors/jane-smith"
  }
}
</script>

Note that the Rich Results Test ignores comments in JSON-LD, but Google's help page warns they are not allowed by the standard and can cause errors elsewhere, so remove them before publishing.

Valid Does Not Mean Guaranteed

A clean test result means a page is eligible, not that it will get a rich result. Google's structured data policies say:

“Google does not guarantee that your structured data will show up in search results”

— Google Search Central, General structured data guidelines

Google also requires that markup describes content visible on the page and is not misleading. Spammy markup can lead to a manual action that removes rich result eligibility; see our guide to manual actions. Our older post do rich snippets help SEO? discusses what rich results can and cannot do for clicks.

Check What Google Still Supports

Before you spend time fixing a type, confirm it still produces a rich result. HowTo rich results were removed in 2023, FAQ rich results are no longer shown for most sites, and in 2025 Google retired several more features, including Course Info, Claim Review, Estimated Salary, Learning Video, Special Announcement, Vehicle Listing and Book Actions, saying the change would not affect ranking. Google's search gallery is the source of truth for currently supported features. Markup for retired types is not harmful and can still help machines understand your content, which is part of entity SEO, but it will not produce the visual enhancement.

  • Ecommerce sites: prioritise Product markup; see product schema and merchant listings.
  • Publishers: Article, Breadcrumb and Video; see video SEO.
  • Local businesses: LocalBusiness and Organization; Organization markup also supports your knowledge panel details.
  • Education: Course list (three or more courses) and Event.

Monitoring at Scale

Single-URL testing will not catch a template that broke on 5,000 product pages. Set up a routine:

  • Review Search Console's rich result reports monthly and after every deployment.
  • When you fix an issue, use the report's validation feature so Google rechecks affected pages.
  • Include structured data checks in your pre-release QA, testing one URL per template.
  • Run a crawler that extracts JSON-LD to spot pages where markup is missing entirely.
  • If your site renders with JavaScript or a headless CMS, compare code-mode and URL-mode results; see our guides to server-side rendering and headless CMS SEO.

Common Mistakes

  • Testing once at launch and never again. Plugins and templates change.
  • Chasing warnings with fake data. Adding made-up ratings or prices violates guidelines.
  • Marking up invisible content. Reviews or FAQs that users cannot see break Google's policies.
  • Relying only on the Schema Markup Validator. It checks vocabulary, not Google eligibility.
  • Using two conflicting markup sources. A theme and a plugin both outputting Organization or Product markup with different values.
  • Building markup for retired features. Check the search gallery first.

Frequently Asked Questions

What is the difference between the Rich Results Test and the Schema Markup Validator?

The Rich Results Test checks whether markup qualifies for Google's rich result features. The Schema Markup Validator checks general Schema.org syntax and vocabulary, regardless of whether Google uses the type.

Why does my page pass the test but show no rich result?

Valid markup only makes a page eligible. Google decides whether to show a rich result based on many factors, and some features are only shown for certain sites or have been retired.

Do warnings need to be fixed?

Not necessarily. Warnings flag missing recommended properties. Add them when you have accurate data, but never invent values to clear a warning.

How long do Search Console reports take to update after a fix?

They update as Google recrawls affected pages. Starting validation in the report asks Google to recheck them, which can still take days or weeks on large sites.

Can I test a staging site?

Not by URL if it is behind a login or firewall. Paste the code into the Rich Results Test instead, or expose the page temporarily with a tunnel.

Conclusion

Testing structured data takes minutes, and fixing it is usually a template change. Build the Rich Results Test into development, monitor Search Console after release and keep an eye on which features Google still supports. If you would like help auditing and fixing schema across your site, our on-page optimization team can help, or you can request a free quote.

References

  1. Google Search Console Help: Rich Results Test
  2. Google Search Central: Introduction to structured data markup
  3. Google Search Central: General structured data guidelines
  4. Google Search Central: Structured data search gallery
  5. Schema.org: Schema Markup Validator
  6. Search Engine Journal: Google retires seven structured data features
  7. Semrush: What Are Rich Snippets?
Rohit Choudhary
Written byRohit ChoudharyCo-Founder, My SEO Experts

Rohit Choudhary is the co-founder of My SEO Experts and has more than 14 years of hands-on experience in SEO, paid advertising and digital marketing. Since starting out in 2011 he has helped hundreds of businesses grow through practical, data-driven search strategies, and he also serves as a consulting Digital Marketing Director for several US-based companies.

Keep reading

Related articles

Ready to grow your business online?

Get a free, no-obligation proposal tailored to your goals and budget.

CallFree Quote