Technical SEO

Schema Markup: What It Is and How to Add It to Your Site

Schema markup explained: what structured data does, which rich results Google still supports in 2026, how to add and test JSON-LD, and errors to avoid.

Schema Markup. Tell search engines what's on the page. Illustrated with a code window with structured data and one line highlighted.

Schema markup is structured data you add to a page’s code to describe what it contains in a form machines can read reliably: that a page is a product with a price and stock status, a local business with opening hours, an event on a specific date, or an article by a named author. It uses the shared vocabulary from schema.org, and search engines use it to understand pages and to decide whether they’re eligible for rich results, the enhanced listings with details such as prices, ratings or event dates.

This guide covers what schema markup does and doesn’t do, which rich results Google still supports in 2026, how to write and add JSON-LD, how to test it, and the mistakes that cause errors or lost eligibility.

The short version

  • Schema markup describes your content to machines, using schema.org types and properties.
  • It can make pages eligible for rich results; it doesn’t guarantee them or raise rankings directly.
  • Use JSON-LD, the format Google recommends.
  • Mark up only what’s visible and true on the page.
  • Check Google’s current gallery before relying on a rich result; some types have been retired, including FAQ rich results in 2026.
  • Test with the Rich Results Test, then monitor Search Console.

What schema markup does

Google’s introduction to structured data explains that it uses structured data to understand page content and to enable special search result features. In practice, schema markup helps in three ways:

  1. Understanding. It removes ambiguity: “Jaguar” the car brand or the animal, “Apple” the company or the fruit, a price or a phone number.
  2. Rich results. For supported types, it makes pages eligible for enhanced listings: product prices and availability, review stars, event dates, recipe details, job postings and more.
  3. Entity information. Organization and LocalBusiness markup tell search engines your official name, logo, contact details and profiles, which supports knowledge panels and consistent information about your business.

What it doesn’t do: it isn’t a ranking boost, and eligibility isn’t a guarantee. Google’s gallery notes that the actual appearance in results might be different from what the markup supports.

Rich results Google supports in 2026

Google’s structured data search gallery lists the features it currently supports. The ones most businesses use:

Type Use it for Possible enhancement
Organization Your company’s name, logo, contact and profiles Brand details in knowledge panels
Local business Physical locations or service-area businesses Business details in results
Product Product pages Price, availability, ratings and shipping details
Review snippet Pages with genuine reviews or ratings Rating stars, within Google’s rules
Article Blog posts, news, guides Better understanding of headline, author and dates
Breadcrumb Any page in a hierarchy Breadcrumb path in the result
Event Events with dates and locations Event details
Video Pages with a main video Video thumbnails and key moments
Job posting Job listings Inclusion in job search features
Software app App and software pages Ratings and price details
Recipe Recipes Images, ratings, cooking time

Other supported types include Course list, Dataset, Discussion forum, Education Q&A, Employer aggregate rating, Image metadata, Math solver, Movie, Profile page, Q&A, Speakable, Subscription and paywalled content, and Vacation rental.

Some types that used to produce rich results no longer do. Google stopped showing FAQ rich results in May 2026, as recorded in its documentation updates, and HowTo rich results were retired earlier. Markup for retired features does no harm, but don’t expect it to change how your result looks. Always check the gallery before investing in a type.

Formats: why JSON-LD

There are three ways to add schema markup:

  • JSON-LD: a separate script block in the page. Google recommends it, and it’s the easiest to add, read and maintain.
  • Microdata: attributes added to the visible HTML elements.
  • RDFa: a similar attribute-based approach.

JSON-LD keeps structured data apart from your page design, so changing the layout doesn’t break it.

How to write schema markup: an example

Here’s LocalBusiness markup for an invented plumbing company:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "name": "Brightwater Plumbing",
  "url": "https://www.example.com/",
  "telephone": "+44 113 000 0000",
  "logo": "https://www.example.com/logo.png",
  "areaServed": ["Leeds", "Bradford", "Wakefield"],
  "openingHoursSpecification": [{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
    "opens": "08:00",
    "closes": "18:00"
  }],
  "sameAs": [
    "https://www.facebook.com/example",
    "https://www.linkedin.com/company/example"
  ]
}
</script>

A few principles show in this example:

  • Use the most specific type available. schema.org has specific subtypes of LocalBusiness, such as Plumber, Dentist or Restaurant.
  • Use absolute URLs for url, logo and images.
  • sameAs links connect your site to your official profiles elsewhere.
  • Leave out properties you can’t fill accurately. An empty or wrong value is worse than none.

Our free Schema Generator writes JSON-LD for common types such as Organization, LocalBusiness, Article and Product in your browser, and nothing you enter leaves it.

Connecting your markup with @id

Most sites describe the same entities on many pages: the company, its founders, its main website. Rather than repeating full details everywhere, give each entity a stable identifier with @id and refer to it:

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "How Long Does SEO Take?",
  "author": { "@id": "https://www.example.com/team/jane-doe/#person" },
  "publisher": { "@id": "https://www.example.com/#organization" }
}

The full Organization markup, with name, logo and profiles, lives once on the homepage under that @id, and articles point to it. This is how our own site is set up: one Organization entity on the homepage, with every article referring to it and to the author’s profile page. It keeps details consistent, avoids contradictions between pages, and makes the relationships between your company, people and content explicit.

How to add schema markup to your site

  • Platforms and plugins. WordPress SEO plugins, Shopify themes and many site builders add basic Organization, Article, Product and Breadcrumb markup automatically. Check what’s already there before adding more, to avoid duplicates.
  • Directly in templates. Add the JSON-LD block to the page’s <head> or body. For pages generated from data (products, jobs, events), fill the values from the same data the page displays, so markup and page always match.
  • Through a tag manager. Possible, but markup added by JavaScript after the page loads is less reliable. Put important markup in the HTML where you can.

Google’s rules for structured data

Google’s general structured data guidelines set the rules every type shares. The ones that matter most:

  • Mark up visible content. Structured data should describe content users can see on the page.
  • Be accurate and current. Prices, availability, dates and ratings must match the page.
  • Don’t mislead. No fake reviews, no markup for content that isn’t there, no ratings you wrote about yourself where they’re not allowed.
  • Follow each type’s specific requirements, such as required properties.

Violations can lead to a manual action that removes rich result eligibility, even if the rest of the site is fine.

How to test schema markup

  1. Rich Results Test. Paste a URL or code into Google’s Rich Results Test to see which rich results the page is eligible for, and any errors or warnings.
  2. Schema Markup Validator. Use the validator at schema.org for general schema.org validity, including types Google doesn’t use for rich results.
  3. URL Inspection. In Search Console, the URL Inspection tool shows the enhancements Google detected on the indexed version and in a live test.
  4. Enhancement reports. After launch, Search Console’s enhancement and rich result reports list errors and warnings across all pages of each type.

Errors stop a page being eligible; warnings mean optional properties are missing and the page may still be eligible.

Which schema to add first

Site type Start with
Any business Organization on the homepage; Breadcrumb on inner pages
Local business LocalBusiness (most specific subtype) with address or service area, hours and phone
Online shop Product with price, availability and genuine reviews; Breadcrumb
Content site or blog Article with author, dates and image
Events or venue Event for each event
Recruiting Job posting for each open role
Video-heavy site Video on pages where the video is the main content

Common schema markup mistakes

Mistake Problem Fix
Markup for content not on the page Breaks Google’s guidelines Mark up only visible content
Prices or stock that don’t match the page Misleading; may lose eligibility Generate markup from the same data as the page
Self-serving review stars on your own business Not eligible under Google’s review rules Use review markup only where allowed
Duplicate markup from theme and plugin Conflicting data Remove one source
Relative URLs in url, logo or image May not be resolved correctly Use absolute URLs
Expecting retired rich results Wasted effort Check the current gallery
Never re-testing after site changes Errors go unnoticed Monitor Search Console enhancement reports

Clear, accurate structured data helps any system that reads your pages understand who you are and what each page describes. It’s not a shortcut into AI answers, but consistent Organization and LocalBusiness details, matching what’s on your site and profiles, support the accurate picture of your business those systems rely on. Our AEO and GEO guide covers AI search visibility more broadly.

Get your structured data right

Schema markup is a small amount of code with a clear payoff: better understanding, eligibility for richer results and consistent business information. If you’d like it audited or implemented across your templates, our technical SEO team adds and tests structured data and monitors it in Search Console.

Opens in a new tab

Frequently asked questions

What is schema markup?

Schema markup is structured data added to a page's code, using the shared vocabulary from schema.org, to describe what the page is about in a way machines can read reliably: that a page is a product with a price, a business with opening hours, or an article by a named author.

Does schema markup improve rankings?

Not directly. Structured data helps search engines understand a page and can make it eligible for rich results, such as review stars or product details, which can make a result more noticeable. It doesn't make a page rank higher on its own.

Which schema format should I use?

JSON-LD, a block of code added to the page, is the format Google recommends and the easiest to maintain because it sits separately from the visible HTML. Microdata and RDFa also work but are woven into the page markup and are harder to manage.

Which rich results does Google still support?

Google's structured data gallery lists types including Article, Breadcrumb, Event, Job posting, Local business, Organization, Product, Recipe, Review snippet, Software app and Video, among others. Some older types have been retired, including FAQ rich results, which stopped appearing in 2026.

How do I test schema markup?

Use Google's Rich Results Test to check whether a page's structured data is valid and which rich results it could support, and the Schema Markup Validator for general schema.org validation. After launch, Search Console's enhancement reports show errors across the site.

Can schema markup get my site penalized?

Misleading markup can. Google's structured data guidelines require markup to describe content that's visible on the page and accurate. Marking up fake reviews or hidden content can lead to a manual action that removes rich results.

Do I need a developer to add schema markup?

Not always. Many platforms and SEO plugins add common types automatically, and free generators can write JSON-LD you paste into the page head. For custom templates, such as product or job pages generated from a database, a developer is usually needed.

See how this applies to your own site

A free SEO audit shows where you stand today, before you commit to anything else.