How to Generate Schema Markup for Rich Results
Create valid JSON-LD schema markup for your web pages with our free Schema Generator. Get rich results in Google for articles, FAQs, products, and more.
Steps
Choose your schema type
Select the schema type that matches your content. Common types: Article or BlogPosting for editorial content, Product for e-commerce, FAQ for pages with questions and answers, HowTo for instructional content, LocalBusiness for physical businesses, Recipe, Event, JobPosting, or Review. Each type enables specific rich result features in Google.
Fill in the required fields
Complete the mandatory fields for your chosen schema type. For Article: headline, author name, date published, date modified, image URL, and publisher. For Product: name, description, image, price, currency, and availability. For FAQ: each question and its answer. Required fields are clearly marked.
Add optional fields for richer data
Add as many additional properties as are accurate for your content. More complete schema gives Google more information to display in rich results. For LocalBusiness, add phone, address, opening hours, and geo-coordinates. For Product, add brand, SKU, and aggregate review rating.
Generate and validate
Click Generate to produce the JSON-LD code. Click Validate to open Google's Rich Results Test with your generated schema pre-loaded, or paste the schema into schema.org's validator. Fix any errors or warnings before implementing.
Implement in your HTML
Copy the generated JSON-LD and paste it inside a <script type='application/ld+json'> tag in the <head> or <body> of your page. For CMS platforms like WordPress, use an SEO plugin (Yoast, Rank Math) to add schema through the plugin interface instead of directly editing templates.
High-Impact Schema Types for Common Web Pages
Different schema types unlock different rich results features. FAQ schema is among the most impactful for content sites: it adds expandable question-and-answer dropdowns directly in the SERP, significantly increasing the space your result occupies. HowTo schema creates step-by-step instruction rich results with images for each step — highly effective for instructional content. Product schema enables review stars, price, and availability display in product search results. Article schema helps Google identify editorial content and enables Top Stories rich results for news sites. LocalBusiness schema enables the Knowledge Panel with business information, opening hours, and reviews. BreadcrumbList schema replaces the URL with a clean breadcrumb display. Implementing the most relevant schema for your primary content type is one of the highest-ROI technical SEO activities available.
Schema Markup Best Practices and Common Mistakes
The most important rule for schema markup is accuracy: only mark up content that is actually on the page and visible to users. Google's quality guidelines explicitly prohibit using schema to claim properties that are not reflected in the page content — marking a page as having 5-star reviews when there are no reviews, or using FAQ schema with questions that do not appear on the page. Other common mistakes: using the wrong schema type (using Recipe for a cooking blog post that is not a specific recipe), marking up pages that are blocked by robots.txt (Google cannot crawl them to verify the schema), implementing schema that contradicts the visible content, and using deprecated schema properties. Always validate with Google's Rich Results Test before and after implementation.
Frequently Asked Questions
Schema markup (structured data) is a vocabulary of tags you add to your HTML to help search engines understand your content contextually — not just the text, but what it means. When Google understands your content, it can display rich results: star ratings for products, FAQ dropdowns, recipe information with cooking times, event details, and HowTo step-by-step displays. These rich results are visually larger, more informative, and typically achieve 20–30% higher click-through rates than standard blue link results.
All three are ways to add structured data to HTML. JSON-LD is a separate <script> block containing the structured data as a JSON object — it is separate from the visible HTML content. Microdata and RDFa embed structured data attributes directly within the HTML elements. Google recommends JSON-LD because it is easy to add without modifying content markup, easy to validate, and less likely to cause rendering issues. Use JSON-LD unless you have a specific reason to use the others.
No. Implementing valid schema markup makes your page eligible for rich results, but Google decides whether to display them based on content quality, schema completeness, and other quality signals. Google will not show rich results for pages it considers low-quality, even with perfect schema. Additionally, Google only shows certain schema types for certain queries — FAQ rich results appear for some queries but not others.