Schema Markup Examples You Can Copy and Paste
Schema markup is a small piece of code that tells search engines exactly what your content means — not just what it says. Add it correctly and Google can display your pages as rich results: star ratings, FAQ dropdowns, recipe cards, event dates, and more. Those enhanced listings stand out in the search results and often earn a higher click-through rate.
This guide is a practical library of schema markup examples. For each of the 10 most useful structured data types, you get a plain-English explanation and a complete JSON-LD snippet you can copy, edit, and drop into your page's <head>. If you would rather not touch code at all, our free Schema Markup Generator builds any of these for you in seconds.
JSON-LD, Microdata & Schema Tags
All the examples below use JSON-LD (JavaScript Object Notation for Linked Data), the format Google officially recommends. Unlike older schema tags such as Microdata and RDFa — which weave attributes into your visible HTML — JSON-LD sits in a single <script> block, so it is far easier to add, read, and maintain. Every vocabulary term comes from schema.org, the shared standard supported by Google, Bing, and Yandex. To add any snippet, paste the whole <script type="application/ld+json"> block into the <head> of the relevant page.
1. FAQ Schema
FAQ schema marks up a list of questions and answers so Google can show them as expandable dropdowns beneath your listing. It is one of the highest-impact structured data types because it takes up more space in the results. Here is a copy-paste FAQ schema markup example:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "What is schema markup?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Schema markup is structured data code that helps search engines understand your content."
}
}, {
"@type": "Question",
"name": "Is schema markup a ranking factor?",
"acceptedAnswer": {
"@type": "Answer",
"text": "It is not a direct ranking factor, but the rich results it enables can improve click-through rate."
}
}]
}
</script>
2. Article & Blog Schema
Blog schema (the Article, BlogPosting, or NewsArticle type) tells Google the headline, author, publish date, and featured image of a post — details that power the article rich result and Top Stories. This is the Article schema that powers the page you are reading:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "Schema Markup Examples: 10 Types of Structured Data",
"datePublished": "2025-10-13",
"dateModified": "2025-10-13",
"author": { "@type": "Organization", "name": "All-WebTools Team" },
"image": "https://all-webtools.com/assets/images/og.png"
}
</script>
3. Author & sameAs Schema
Author schema connects content to the person or organization behind it, which supports Google's emphasis on expertise and trust (E-E-A-T). The sameAs property is the key ingredient — a sameAs schema array links an entity to its official profiles on other sites, helping Google confirm identity. Here is author schema with sameAs:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Person",
"name": "Jane Doe",
"jobTitle": "SEO Specialist",
"sameAs": [
"https://www.linkedin.com/in/janedoe",
"https://twitter.com/janedoe"
]
}
</script>
4. LocalBusiness & Restaurant Schema
Local schema is essential for any brick-and-mortar business. The LocalBusiness type (and its sub-types like Restaurant) gives Google your name, address, phone number, hours, and price range — feeding the local pack and knowledge panel. This restaurant schema example works for cafes, shops, and services alike:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Restaurant",
"name": "The Corner Bistro",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "Austin",
"addressRegion": "TX",
"postalCode": "78701"
},
"telephone": "+1-512-555-0100",
"openingHours": "Mo-Sa 11:00-22:00",
"priceRange": "$$",
"servesCuisine": "Italian"
}
</script>
5. Product & Ecommerce Schema
Ecommerce schema (the Product type) unlocks price, availability, and star-rating rich results — hugely valuable for online stores. Combine it with the Offer and AggregateRating types for the full treatment:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Wireless Headphones",
"image": "https://example.com/headphones.jpg",
"offers": {
"@type": "Offer",
"price": "79.99",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
}
}
</script>
6. AggregateRating & Review Schema
The star ratings you see in search results come from AggregateRating schema. It summarizes many reviews into an average score and count, and it nests inside a Product, Recipe, or LocalBusiness. Here is a standalone aggregaterating schema block:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "AggregateRating",
"itemReviewed": { "@type": "Product", "name": "Wireless Headphones" },
"ratingValue": "4.6",
"reviewCount": "218",
"bestRating": "5"
}
</script>
7. Organization & Logo Schema
Add organization schema to your homepage so Google knows your official brand name, logo, and social profiles for the knowledge panel. The logo property is what a schema logo search refers to — the image Google may show next to your brand:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "All-WebTools",
"url": "https://all-webtools.com",
"logo": "https://all-webtools.com/logo.png",
"sameAs": [
"https://twitter.com/allwebtools",
"https://www.linkedin.com/company/allwebtools"
]
}
</script>
8. WebPage & Breadcrumb Schema
WebPage schema describes a page as a whole, while BreadcrumbList gives Google the navigation trail it shows in place of a plain URL. Breadcrumb rich results improve how your listing reads and can lift click-through rate:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://all-webtools.com" },
{ "@type": "ListItem", "position": 2, "name": "Blog", "item": "https://all-webtools.com/blog/" }
]
}
</script>
9. How to Add Schema Markup to Your Site
Once you have your JSON-LD, adding it is simple. There are three common ways to add schema markup:
- Paste it into the page's HTML. Drop the full
<script type="application/ld+json">block anywhere inside the<head>(or before the closing</body>). This is the cleanest method for custom-built sites. - Use a CMS plugin. On WordPress, SEO plugins like Yoast and Rank Math add core schema automatically and let you configure types without code.
- Generate it with a tool. Fill in a short form and copy the output — no syntax errors, no guessing property names.
10. How to Validate & Test Schema Markup
Never publish schema without checking it. A single missing comma can break the whole block, so run every snippet through a schema markup validator before it goes live. Use these free checkers:
- Schema Markup Validator (validator.schema.org) — the official schema markup checker from schema.org; it flags syntax errors and unknown properties.
- Google Rich Results Test — shows whether your page is eligible for specific rich results and previews how they may appear.
- A JSON formatter — before validating, tidy and error-check your code with our JSON Formatter to catch missing brackets and commas.
After validating, preview how the enhanced listing will look with our SERP Preview tool, and make sure the rest of your on-page SEO is in order with the Meta Tag Generator.
Frequently Asked Questions
What is a schema markup example?
A schema markup example is a snippet of structured data — usually written in JSON-LD — that describes a specific type of content, such as an FAQ, product, article, or local business. You paste it into your page's HTML so search engines can understand the content and potentially display it as a rich result.
Which schema markup should I use?
Use the type that matches your content: FAQ schema for question-and-answer sections, Article or BlogPosting for posts, Product for store items, LocalBusiness or Restaurant for physical locations, and Organization on your homepage. Many pages combine several types, such as Product with AggregateRating.
Is JSON-LD better than Microdata?
Yes, for most sites. Google recommends JSON-LD because it lives in a single script block separate from your visible HTML, making it easier to add and maintain than Microdata or RDFa, which embed schema tags directly into page elements.
How do I validate my schema markup?
Run it through the official Schema Markup Validator at validator.schema.org and Google's Rich Results Test. Both flag syntax errors, missing required properties, and eligibility for rich results. Formatting your JSON first with a JSON formatter helps catch missing commas and brackets.
Does schema markup improve SEO rankings?
Schema markup is not a direct ranking factor, but it helps search engines understand your content and enables rich results like star ratings and FAQ dropdowns. Those richer listings often earn a higher click-through rate, which can indirectly benefit your SEO performance.
Conclusion
Structured data is one of the most reliable ways to make your listings stand out. Start with the schema types that fit your content — FAQ schema for support pages, Article schema for your blog, LocalBusiness for a physical store, and Product with AggregateRating for an online shop — then always run the result through a schema markup validator before publishing. Copy the examples above, swap in your own details, and you have valid JSON-LD ready to go.
To skip the hand-coding entirely, generate any type with our free Schema Markup Generator, preview the outcome with the SERP Preview tool, and round out your setup with the Meta Tag Generator. A few minutes of structured data can pay off in more visible, higher-clicked search results for months to come.