Local SEO and rankings

What is schema markup and structured data?

Schema markup in plain English: what structured data is, how it can earn rich results, how to add LocalBusiness markup, and how to test it with Google’s tools.

Scott Francis · Updated · 4 minutes read

Updated 17 November 2026. We first wrote this in 2018. Google has since retired the Structured Data Testing Tool we used then, so this version uses Google's current tools, and adds what local businesses should mark up and why it matters for AI answers.

If you work on a website, you've probably heard the terms "schema markup", "structured data" and "rich snippets". They sound technical, but the idea is simple.

What is schema markup?

Schema markup is a set of labels you add to your web page's code. The labels tell search engines exactly what each piece of information is.

People can usually tell what's on a page at a glance. Search engines have to work it out. Picture a page with three phone numbers on it. Which one is the main number for the business? A person can guess. A search engine might not.

Schema markup removes the guesswork. You label one number as the business phone number. You label the address, the business name, the opening hours, the author of an article, and so on. The labels are hidden from visitors but visible to search engines.

The labels come from a shared vocabulary at schema.org, which Google, Microsoft and other search engines support. The markup itself is called structured data.

What structured data can do

Structured data helps Google understand your page. It can also make your page eligible for rich results: search results with extra detail, such as star ratings, prices, event dates, recipe steps or FAQs.

Rich results take up more space on the page and give searchers more reasons to click. Google decides when to show them, so markup makes you eligible, not guaranteed.

Google's introduction to structured data explains how it works and lists the types Google supports.

Structured data for local businesses

If you have a physical location, the most useful type is LocalBusiness, or a more specific type such as Restaurant, Dentist or Store. It describes your:

  • business name
  • address
  • phone number
  • opening hours
  • website and logo
  • location on the map

Google's local business structured data guide lists the properties it reads.

Your website markup should match your Google Business Profile exactly: same name, same address, same phone number. Consistent details everywhere make it easier for Google to trust them.

If you have many locations, give each one its own page on your website, with its own LocalBusiness markup.

Why it matters for AI answers

AI assistants and AI answers in search read web pages to find facts about businesses. Clear, labelled information is easier for them to pick up correctly than details buried in a paragraph or an image.

Structured data won't get you into AI answers on its own. But accurate, consistent details on your site, your profiles and your markup all point the same way. Our guide to getting recommended by AI assistants covers the rest.

How to add schema markup

Google recommends JSON-LD: a block of code in your page that sits apart from the text your visitors read. Your web developer can add it to your page templates, and many website platforms and plugins add basic markup for you.

A few rules:

  • Only mark up what's on the page. Don't label content visitors can't see.
  • Keep it accurate. If your hours change, your markup should change too.
  • Use the most specific type that fits. A café is better described as a CafeOrCoffeeShop than as a general LocalBusiness.

How to test your markup

Google's old Structured Data Testing Tool has been retired. Use these instead:

  • Rich Results Test: shows which Google rich results your page is eligible for, and any errors.
  • Schema Markup Validator: checks any schema.org markup, including types Google doesn't show as rich results.

After your pages are live, Google Search Console reports on the structured data it finds across your site. Our guide to installing Google Analytics and Search Console shows how to set it up.

Checking your site

Structured data is one part of a healthy site. Search Intelligence runs a technical audit and checks whether AI engines can read your site, then gives you the fixes in order of impact, written as tasks.

Common questions