Search engines are good at reading text, but they still have to guess what some of it means. Is "4.8" a rating, a price or a version number? Is "Tuesday 9 to 5" opening hours or an event time? Schema markup removes the guesswork by labeling your content in a format machines understand.
It won't magically push you to the top of Google, but it can help search engines understand your pages and make them eligible for rich results, the enhanced listings that show things like breadcrumbs, product prices or event dates. This guide explains schema markup in plain English and shows how to add it without breaking anything.
What is schema markup?
Schema markup is structured data that uses a shared vocabulary from Schema.org, a project started by major search engines to standardize how websites describe things. The vocabulary includes types such as LocalBusiness, Product, Article, Event, Recipe and many more, each with properties like name, address or price.
You add this markup to your page's code. Visitors don't see it, but search engines read it.
The three formats (and which one to use)
Structured data can be written in three formats:
- JSON-LD: a block of JavaScript-style data placed in a
<script>tag. - Microdata: attributes added directly to your HTML elements.
- RDFa: another attribute-based format.
Google recommends JSON-LD where possible, because it sits in its own block and is easier to add and maintain without touching your page layout. This guide focuses on JSON-LD.
What schema can do for you
Rich results
Some schema types make pages eligible for enhanced search features. Depending on the type and Google's current support, that can include:
- Product details such as price, availability and review ratings
- Event dates and locations
- Recipe details such as cooking time and ratings
- Breadcrumb trails instead of plain URLs
- Video thumbnails and key moments
Google regularly changes which rich results it shows, and eligibility doesn't guarantee they appear. Check Google's Search Central documentation for the current list of supported types.
Better understanding
Even when no rich result appears, schema helps search engines connect the dots: who your organization is, where your business is, what your logo looks like and which content is an article, a product or an FAQ.
Schema types that suit small websites
LocalBusiness
If you have a physical location or serve a local area, LocalBusiness (or a more specific subtype like Restaurant, Dentist or Plumber) describes your name, address, phone number, hours and more. It pairs well with a local SEO strategy.
Organization
For businesses without a storefront, Organization describes your brand: name, logo, website and social profiles.
Article or BlogPosting
Good for blog posts and news articles. It identifies the headline, author, publish date and featured image.
Product
Essential for online stores. It can include price, currency, availability and reviews.
BreadcrumbList
Describes where a page sits within your site structure.
FAQPage, HowTo and others
Google has reduced how often it shows some of these as rich results, so don't add them just hoping for extra visibility. Only use a type when it accurately describes the content on the page.
A simple LocalBusiness example
Here's what JSON-LD for a local business might look like. Replace every value with your own real details:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Bakery",
"name": "Maple Street Bakery",
"url": "https://www.example.com/",
"telephone": "+1-555-555-0100",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Maple Street",
"addressLocality": "Springfield",
"addressRegion": "IL",
"postalCode": "62701",
"addressCountry": "US"
},
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"],
"opens": "07:00",
"closes": "17:00"
}]
}
</script>
This block usually goes in the page's <head>, though Google can read JSON-LD in the body too.
How to add schema markup
Option 1: Use a WordPress plugin
Popular SEO plugins such as Yoast SEO and Rank Math add core schema automatically, including Organization or Person, WebSite, WebPage, Article and breadcrumbs. Many let you choose a schema type per post and fill in extra details. There are also dedicated schema plugins for more advanced needs.
This is the easiest and safest route for most WordPress sites. Just avoid running two plugins that both output schema, which can create duplicates or conflicting data.
Option 2: Add JSON-LD by hand
On a custom or static site, paste the JSON-LD block into your page template or into specific pages. In WordPress, you can use a header-and-footer code plugin or your theme's settings, though a plugin designed for schema is usually cleaner.
Option 3: Use a generator
Free schema generators let you fill in a form and copy the resulting JSON-LD. They're handy for one-off pages like a contact page or a single event.
Test your markup
Always test before and after publishing:
- Google's Rich Results Test shows whether a page is eligible for rich results and points out errors or warnings.
- The Schema Markup Validator (from Schema.org) checks general schema syntax, including types Google doesn't use for rich results.
- Google Search Console reports structured data issues across your site under its Enhancements section once Google has crawled your pages. Not set up yet? Follow our Search Console setup guide.
Errors usually mean something required is missing or formatted incorrectly. Warnings mean an optional property is missing. Fix errors first.
Rules to follow
Google has guidelines for structured data, and breaking them can lead to manual actions that remove rich result eligibility. The key principles:
- Mark up only what's visible. If your schema says there are reviews, those reviews must be on the page.
- Be accurate. Prices, hours and availability must match what's shown to visitors.
- Don't mark up irrelevant content. A services page isn't a recipe.
- Don't fake reviews or ratings. Self-serving review markup on your own business is restricted in Google's guidelines.
- Keep it current. If prices or hours change, update the markup too.
Does schema markup improve rankings?
Google has said structured data isn't a direct ranking factor. Its value is in helping Google understand your content and in making rich results possible, which can make your listing more noticeable and may improve click-through rates. Think of schema as a clarity tool, not a ranking shortcut.
Wrapping up
Schema markup sounds technical, but for most small websites it comes down to a few steps: use JSON-LD, start with the types that match your site (LocalBusiness or Organization, Article and Product), let a good plugin handle the basics, and test everything with Google's tools. Keep it accurate and honest, and it will help search engines present your site the way you intend.
Related reading: Keyword Research for Beginners: How to Find Topics People Actually Search For; XML Sitemaps and robots.txt Explained: A Beginner's Guide for Website Owners.