Technical SEO & Indexing • 10 min read

What Is Schema Markup and How to Add It to Your Website

Schema markup explained: what JSON-LD structured data does, the types worth using, and how to add and validate it — with free tools and no signup.

By SEO Free Editorial Team
Published: November 23, 2026
Schema markup guide — JSON-LD, rich results and how to add it, on SEO Free

Search results used to be ten blue links. Today the same search can show star ratings under a product, cooking times under a recipe, questions and answers under a how-to guide, and event dates under a concert listing — all before anyone clicks. The extra information does not come from the page text alone. It comes from a small block of code called schema markup, and any website owner can add it for free.

This guide explains what schema markup is, what it can and cannot do for your rankings, the main schema types worth knowing, and how to add it to a page step by step — including how to check your work with free validators. One honest note up front: SEO Free does not have a schema markup tool yet. Everything below works without one: you write a short block of JSON-LD by hand or with a free generator, paste it into your page, and validate it with Google's own free tools.

What is schema markup?

Schema markup is structured data — a standardised way of labelling what a page is about so search engines can understand it precisely instead of guessing from the visible text. The vocabulary comes from Schema.org, a shared project by Google, Microsoft, Yahoo and Yandex, and it covers hundreds of types: Article, Product, Recipe, FAQPage, LocalBusiness, Event, HowTo, Review, BreadcrumbList and many more.

Think of it this way. Your page already tells a human visitor "this is a recipe for lentil soup that takes 40 minutes and serves four". Schema markup tells a search engine the same facts in a format it can read without interpretation: the dish name, the cooking time, the servings, the ingredients, the rating. The visitor sees the same page either way — the markup is invisible to them. It lives in the page code, not on the screen.

The format Google recommends is JSON-LD (JavaScript Object Notation for Linked Data): a <script type="application/ld+json"> block, usually placed in the page head. Older formats — Microdata and RDFa — still exist, mixed into the visible HTML, but JSON-LD is cleaner because it sits apart from your content. You can add it, edit it or remove it without touching a single word your visitors read.

What schema markup does — and what it does not do

The most common misunderstanding about schema is that it improves rankings directly. It does not. Google has said repeatedly that structured data is not a ranking factor: adding it will not move a page from position 20 to position 5 on its own. What it can do is make a page eligible for rich results — the enhanced listings with stars, prices, FAQs or breadcrumbs — and rich results earn more clicks than plain listings for the same position.

That distinction matters for planning. Schema is worth adding to pages that already rank or are close to ranking, where a richer listing can win the click. It is not a rescue for a page Google has not indexed or cannot crawl. If a page is stuck in "Discovered — currently not indexed" or "Crawled — currently not indexed", fix the crawl and indexing problem first — our guides on fixing "Discovered — currently not indexed" and fixing "Crawled — currently not indexed" cover exactly that — and add schema once the page is actually in the index.

There is a second limit to respect: schema must describe content that is actually on the page. Marking up an FAQ section that does not exist, a five-star rating nobody left, or a price the product does not sell at is not clever optimisation — it is misleading markup, and Google can remove the rich result or take manual action against the site. Every claim in your markup should be verifiable by reading the visible page.

The schema types worth knowing first

Schema.org defines hundreds of types, but most small sites need only a handful. Start with these:

Article / NewsArticle / BlogPosting. For blog posts and news. It carries the headline, author, publisher, date published and date modified. Every blog guide on this site could carry Article markup — it is the single most useful type for a content site, and the one to add first.

FAQPage. For pages with a genuine questions-and-answers section. Each question and its accepted answer is marked up, and Google may show the questions directly in the result. Only use it where the FAQs are visible on the page; hidden FAQ blocks added purely for markup are exactly the kind of thing Google penalises.

HowTo. For step-by-step instructions — a setup guide, a repair guide, a recipe method. It lists the steps, the tools or supplies needed, and the total time. HowTo and FAQPage often appear together on guide pages.

Product + Review / AggregateRating. For product pages: name, price, availability, and genuine customer reviews. The star ratings in search results come from this markup. Never invent ratings — the review must exist on the page, from a real reviewer.

LocalBusiness. For a business with a physical address: name, address, phone, opening hours, and the area served. It supports the knowledge panel and local results.

BreadcrumbList. For the navigation trail (Home > Blog > Article title). It lets Google show breadcrumbs instead of a raw URL in the result, which is both clearer and more clickable.

Recipe. For food pages: ingredients, cooking and preparation times, nutrition, and ratings. Recipe rich results are among the most visible in search.

You do not need all of these. One accurate type per page beats five sloppy ones. A blog post gets Article; a product page gets Product; a guide with questions gets HowTo plus FAQPage. Add the type that matches what the page actually is.

How to add schema markup: a worked example

The fastest way to learn JSON-LD is to read one short block. Here is Article markup for a blog post, the kind of page this site publishes every day:

{ "@context": "https://schema.org", "@type": "Article", "headline": "How to Validate an XML Sitemap", "author": { "@type": "Organization", "name": "SEO Free" }, "datePublished": "2026-11-22", "dateModified": "2026-11-22" }

That is the whole pattern: @context always points to schema.org, @type names the type, and the rest are properties of that type. To add it to a page, wrap it in a script block and put it in the page head:

<script type="application/ld+json"> ... your JSON-LD here ... </script>

The practical steps, in order:

1. Pick one type. Match the page, not your ambition. A blog post is an Article; a tool page is a WebApplication or SoftwareApplication; a guide with steps is a HowTo.

2. Write the JSON-LD. You can write it by hand — the Article example above is 90% of what most blog posts need — or use a free schema generator: fill in a form (headline, author, dates) and copy the block it produces. Either way, read the output before you paste it. A generator that invents a rating or a price you never entered is worse than no generator at all.

3. Fill in only true values. Headline, author and dates must match the visible page exactly. If the page shows no author, do not invent one in the markup.

4. Paste it into the page and save. One script block per type is fine; several blocks on one page are fine too, as long as they do not contradict each other.

5. Validate before you celebrate. Paste the page URL into Google's Rich Results Test and check that the type is detected with no errors. Then run the same page through the Schema Markup Validator at validator.schema.org, which checks the markup against the full Schema.org vocabulary and flags invalid properties. Fix every error it reports; warnings about recommended-but-missing properties are optional and can wait.

6. Ask Google to re-crawl. Validation only proves the code is correct — Google still has to fetch the page again before the rich result can appear. If you use Search Console, request indexing for the updated URL. If the page is in your sitemap, make sure the sitemap itself is valid first; our guide on validating an XML sitemap shows how, and generating and submitting a sitemap covers the submission step.

Common schema mistakes (and how to avoid them)

Most schema failures come from a short list of avoidable errors:

Marking up invisible content. The FAQPage example again: if the questions are not on the page, do not mark them up. Google checks, and the penalty for misleading markup is losing rich results site-wide.

Wrong type for the page. Product markup on a blog post, or Recipe markup on a page with no recipe, will be ignored at best and flagged at worst. Match the type to the page.

Broken JSON. A missing comma or an unclosed bracket makes the whole block unreadable — parsers stop at the first syntax error, exactly like a broken sitemap. The validators in step 5 catch this instantly, which is why you should never publish markup you have not validated.

Stale dates. A dateModified from two years ago on a page you updated yesterday tells Google the page is abandoned. Update the dates when you update the content.

Rating markup without reviews. AggregateRating needs real reviews on the page, with a real review count. A self-awarded five stars is not a review.

Expecting instant rich results. Even valid markup only makes a page eligible. Google decides whether to show the rich result, and it can take days or weeks after a re-crawl. Valid markup with no rich result is normal — check the Rich Results Test first, and if it passes, the rest is patience.

Schema markup and the rest of your technical SEO

Schema works best as part of the basics, not instead of them. A page still needs a clear title and meta description — use our free Meta Tag Generator to build them, and read how to write meta titles and descriptions that get clicks before you finalise them, because the title and description are what the rich result is built around. It still needs to be crawlable: a robots.txt rule that blocks Googlebot makes schema irrelevant, so test your rules with a free robots.txt tester before you publish. And it still needs to be discoverable: a valid sitemap that lists the page, checked with our free Sitemap Validator or built with the XML Sitemap Generator.

That order — crawlable, indexable, then enhanced — is the whole method. Schema is the last step, not the first: it polishes a page Google can already find, read and rank.

Where to start on your own site

Pick five pages and do them properly rather than stamping the same block across the whole site. A good first five: your homepage (Organization or LocalBusiness), your three best-performing blog posts (Article, with correct dates), and one guide with a real FAQ section (FAQPage). Validate each one, request indexing, and watch Search Console's Enhancements report over the next two weeks — it shows exactly which rich results Google is showing for your pages, and which pages have errors to fix.

Schema markup is free, it takes minutes per page once you know the pattern, and it is one of the few SEO jobs where the result is visible in the search results themselves. Start with one page today, validate it, and add the next one tomorrow.

Validate Your Robots.txt Directives in Bulk

Test up to 100 paths simultaneously against your live or draft rules using our RFC 9309 compliant evaluation engine.

Open Bulk Robots.txt Tester

Related Technical Guides