How to use the schema markup generator
- 1Choose a Schema type, such as Article, Product or Local business.
- 2Fill in the fields. required marks what Google needs for a rich result; recommended marks what improves it. Use Add to add more questions, breadcrumb levels or opening hours.
- 3Read the JSON-LD panel as you type; empty fields are left out automatically.
- 4Press Copy or Download, paste the script into the page, then use Check it in the schema validator.
Example: Article
Headline: How to make a sourdough starter Description: Seven days, two ingredients, one jar. Page URL: https://www.example.com/baking/sourdough-starter/ Images: …/starter-16x9.jpg, …/starter-1x1.jpg Published: 2026-09-12 · Modified: 2026-09-20 Author (Person): Ana Baker, https://www.example.com/about/ana/ Publisher: Bread Notes, logo https://www.example.com/logo.png
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to make a sourdough starter",
"description": "Seven days, two ingredients, one jar.",
"mainEntityOfPage": "https://www.example.com/baking/sourdough-starter/",
"image": [
"https://www.example.com/images/starter-16x9.jpg",
"https://www.example.com/images/starter-1x1.jpg"
],
"datePublished": "2026-09-12",
"dateModified": "2026-09-20",
"author": {
"@type": "Person",
"name": "Ana Baker",
"url": "https://www.example.com/about/ana/"
},
"publisher": {
"@type": "Organization",
"name": "Bread Notes",
"logo": {
"@type": "ImageObject",
"url": "https://www.example.com/logo.png"
}
}
}
</script>This output passes the schema markup validator with no errors or warnings.
Supported schema types
| Type | Use it for |
|---|---|
| Article, BlogPosting | News, guides and blog posts |
| Product | A single product with price and availability |
| LocalBusiness (and subtypes such as Bakery or Dentist) | A business with a physical location |
| Organization | Your company: name, logo, profiles |
| Person | An author or team member page |
| Event | Concerts, workshops, webinars |
| BreadcrumbList | The trail from the homepage to the page |
| FAQPage | A page of questions and answers |
| WebSite | Your site name for Google's results |
Required vs recommended properties
Required properties are the minimum for a page to be eligible for a rich result. Without them, Google reports an error and shows no rich result. Recommended properties make the result more complete (an image, a rating, an end date) and missing ones are reported as warnings. For example, an Event needs name, startDate and location; a Product needs name plus at least one of offers, review or aggregateRating.
Everything you mark up must be visible on the page. For products, only add ratings that come from real reviews shown on the page.
Adding JSON-LD to your site
Paste the <script type="application/ld+json"> block anywhere in the page's HTML; <head> is usual. In WordPress, an SEO plugin already outputs Article, Organization and BreadcrumbList; add other types with the plugin's schema settings or a custom HTML block rather than duplicating what it writes. In Next.js, render the script in the page component with dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}. Markup added by Google Tag Manager works for Google but not for crawlers that don't run JavaScript.
Which types can earn rich results
Product, Event, LocalBusiness, Article, BreadcrumbList, Recipe, VideoObject, JobPosting and Review snippets can still change how a result looks. Organization and WebSite markup feed the knowledge panel, logo and site name rather than a visible snippet. FAQ rich results were first limited to government and health sites in 2023 and retired in 2026, and HowTo rich results were removed in 2023, so FAQPage markup is still valid but no longer changes the result. Eligibility never guarantees a rich result; Google decides per search.
Testing before you publish
Use Check it in the schema validator to send the code to our schema markup validator, which checks the JSON syntax, types and required properties in your browser. After publishing, test the live URL with Google's Rich Results Test to see which rich results Google considers the page eligible for, then watch the Enhancements reports in Search Console for errors at scale.
Is anything I enter stored?
This tool runs entirely in your browser. Your text is not uploaded to our servers.
Sources
- Google Search Central: Introduction to structured data markup
- Google Search Central: General structured data guidelines
- Google Search Central: Structured data markup that Google Search supports
- Google Search Central Blog: Changes to HowTo and FAQ rich results (2023)
- Google Search Central Blog: Sitelinks search box retirement (2024)
- Schema.org vocabulary
