Schema Markup & JSON-LD Structured Data Guide

Structured data is machine-readable code that helps search engines understand the content of your web pages at a deeper level than plain HTML allows. By adding structured data markup, you explicitly tell Google what your page is about — whether it's an article, a product, an FAQ, a recipe, or a local business — enabling richer, more informative search results that drive higher click-through rates.

What Is Structured Data?

Structured data explicitly describes entities and properties in a machine-readable vocabulary. Google can also understand ordinary page text; markup is not the only way it recognizes a price. Supported accurate markup may contribute to feature eligibility, not guaranteed display.

Structured data uses vocabularies defined by Schema.org, a collaborative project between Google, Bing, Yahoo, and Yandex that standardizes markup across all major search engines.

JSON-LD vs Microdata vs RDFa

There are three formats for implementing structured data. Here's how they compare:

FormatImplementationProsCons
JSON-LDSeparate <script> block in <head> or <body>Easy to add/remove, doesn't touch HTML, Google's recommended formatData can drift from visible content if not maintained
MicrodataHTML attributes (itemscope, itemprop) on existing elementsTightly bound to visible contentClutters HTML, harder to maintain, breaks with template changes
RDFaHTML attributes (typeof, property) on elementsPowerful for complex ontologiesVerbose, rarely used for SEO, steep learning curve

Use JSON-LD. Google explicitly recommends it, the developer experience is vastly better, and it separates your data layer from your presentation layer. Every example in this guide uses JSON-LD.

Common Schema Types

Schema.org defines hundreds of types, but a focused set is responsible for the vast majority of SEO benefits:

Article

Use for blog posts, news articles, and editorial content. Google lists recommended Article properties, including headline, author, datePublished, and image, but no required properties. Include applicable, accurate values. Markup can help Google understand an article; it does not guarantee an enhanced result.

Product

For product pages, follow the current requirements for the intended Google feature, such as product snippets or merchant listings. Include genuine applicable values and eligible ratings only. aggregateRating is not universally required, and markup alone does not secure Shopping or organic placement.

FAQPage

For pages with a list of questions and answers. Each question requires name (the question text) and acceptedAnswer with text (the answer). FAQPage remains Schema.org vocabulary, but Google no longer displays FAQ rich results (removed in May 2026). See the official feature update.

HowTo

For instructional content with sequential steps. Each step needs name and text; optional image and url per step. HowTo remains Schema.org vocabulary, but Google discontinued HowTo rich results in 2023. Valid vocabulary does not imply current Google rich-result eligibility.

Organization & LocalBusiness

Organization schema establishes your brand identity — logo, social profiles, contact info. LocalBusiness extends Organization for physical locations with address, openingHours, geo coordinates, and telephone. Essential for local SEO and Knowledge Panel appearances.

BreadcrumbList

Defines the navigation path to a page. Google uses this to display breadcrumb trails in search results instead of raw URLs, which improves both appearance and click-through rates. Always implement this on sites with hierarchical navigation.

WebApplication

For web-based tools and apps. Include name, url, applicationCategory, operatingSystem, and offers. Useful for SaaS products and online tools to appear in app-related searches.

Rich Results Eligibility

Not all schema types trigger rich results. Google supports a specific subset and has strict requirements for each:

  • Content must match. The structured data must accurately reflect the visible page content. Adding FAQ schema to a page without visible Q&A is a policy violation.
  • Required properties must be present. Requirements depend on the Google search feature; not every type has required properties. A missing requirement affects the relevant item or feature, not automatically every rich-result possibility on the page.
  • Page quality matters. Pages with thin content, excessive ads, or spam signals won't receive rich results regardless of schema quality.
  • No guarantees. Even valid, high-quality schema doesn't guarantee display — Google's algorithms make the final decision based on query context, user intent, and device.

Testing & Validation

Always validate your structured data before and after deployment:

  1. Google Rich Results Test: Checks supported structured data and detected issues. Passing does not establish compliance with every quality policy or guarantee eligibility or display.
  2. Schema.org Validator — checks general schema.org compliance against the full vocabulary specification.
  3. Google Search Console — the Enhancements section shows structured data errors, warnings, and valid items detected across your entire site. Monitor this regularly.
  4. Structured Data Linter — a more technical tool for complex schemas with nested types.

Implementation Best Practices

  • Organize related entities clearly. JSON-LD can use separate script blocks, an array or an @graph. Separate blocks are optional, not a validity requirement.
  • Match visible content. Never add data to schema that isn't reflected on the page — Google considers this spammy structured data and may issue manual actions.
  • Use absolute URLs. All URL properties (url, image, mainEntityOfPage) should be full, absolute URLs starting with https://.
  • Keep it updated. Structured data with outdated prices, incorrect availability, or old dates erodes trust and can trigger rich result removal.
  • Don't mark up hidden content. Schema must represent content visible to users. Hidden elements marked up with schema violate Google's guidelines.
  • Start with high-impact types. Prioritize currently supported types such as Article, BreadcrumbList, and Product/LocalBusiness when applicable. Eligibility and display depend on Google's current policies; enhancements are not guaranteed.

Common Mistakes

  1. Missing required properties — check the requirements of the specific search feature and item. Article image is recommended, not required; Product requirements differ by feature and markup. One issue does not necessarily invalidate unrelated items.
  2. Self-referencing reviews — marking up reviews for your own organization on your own site violates Google's policy.
  3. Invalid JSON syntax — trailing commas, unescaped quotes, or missing brackets silently break the entire block. Always validate JSON syntax.
  4. Stacking too many types on irrelevant pages — adding Recipe schema to a non-recipe page hoping for rich results is a policy violation.
  5. Using Microdata and JSON-LD for the same entity — this can cause duplicate or conflicting signals. Pick one format and use it consistently.

Try It Yourself

Generate JSON-LD drafts for supported types, then supply accurate applicable values and validate against the intended feature. The tool does not pre-fill every required or recommended property.

Schema Generator →

Frequently Asked Questions

Accurate markup can contribute to eligibility for a supported feature when all content and policy requirements are met. Google decides whether to display a rich result; markup alone is not sufficient and no display is guaranteed.
Google recommends JSON-LD as the preferred format for structured data. JSON-LD is easier to implement because it lives in a separate script block and doesn't require modifying your HTML markup. Google's own documentation and tools default to JSON-LD examples. While Microdata and RDFa are still supported, Google has explicitly stated its preference for JSON-LD in developer documentation.
Yes. A single page can include multiple schema types — for example, an Article schema, a BreadcrumbList schema, and a FAQPage schema on the same page. Separate script blocks, an array or an @graph can represent multiple entities. Use only types that accurately describe the visible content, and check current Google support for each feature.
Syntax and feature-specific errors can prevent affected markup from being understood or qualifying for a rich result. Warnings identify recommended improvements but are not always just missing optional fields. Validate the affected entities and visible facts; one error does not imply that every block is ignored.
Google’s Rich Results Test checks supported search-feature markup; Schema Markup Validator checks schema.org syntax and vocabulary. Neither certifies all visible facts, policy compliance or eventual eligibility and display. Use relevant tests plus manual content review.