Stax
Tools

Schema Markup Generator

Generate JSON-LD schema markup for Article, Product, FAQ, and more.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "",
  "description": "",
  "author": {
    "@type": "Person",
    "name": ""
  },
  "datePublished": "",
  "dateModified": "",
  "url": ""
}
</script>

How the Schema Markup Generator works

The schema markup generator produces valid JSON-LD structured data for common schema.org types including Organization, Article, FAQPage, Product, BreadcrumbList, LocalBusiness, and Event. Fill in the form fields for your chosen type — the tool outputs the complete JSON-LD script block ready to paste into your page head, enabling Google to display rich results that increase click-through rate from search.

JSON-LD vs Microdata vs RDFa

Google supports three formats for schema markup: JSON-LD (embedded in a <script> tag), Microdata (attributes on HTML elements), and RDFa (similar to Microdata). Google recommends JSON-LD because it is decoupled from the visible HTML — you can inject it via a CMS tag manager without touching the page markup. JSON-LD is also the only format supported by Google Tag Manager's structured data variable, making it the practical default for most implementations.

FAQPage schema for featured snippets

FAQPage schema marks up a page that contains a list of questions and answers. When Google detects valid FAQPage markup, it may display the questions as expandable dropdowns directly in the search result, increasing the snippet height and occupying more SERP real estate. Each FAQ item requires a Question entity with a name (the question text) and an acceptedAnswer with text (the answer). Limit answers to 300 words for the best display results.

Product schema and review aggregation

Product schema enables star rating displays in search results when combined with AggregateRating. Required Product fields include name, image, description, and offers (with price, priceCurrency, and availability). Adding an AggregateRating with ratingValue and reviewCount unlocks the star display in SERPs. This significantly improves click-through rate for e-commerce product pages competing against other search listings.

Validating with Google Rich Results Test

After adding schema markup, validate it at search.google.com/test/rich-results. The Rich Results Test shows which rich result types your page is eligible for, lists any errors or warnings in the structured data, and displays a preview of how the rich result would appear in Google Search. Fix all errors before deploying — invalid markup is typically ignored by Google rather than penalised, but you miss all the CTR benefits.

Frequently asked questions

What is schema markup?
Schema markup (structured data) is code in JSON-LD format that you add to your web pages to help search engines understand the content. It can enable rich results (star ratings, FAQ dropdowns, recipe cards, event dates) in Google Search.
What is JSON-LD?
JSON-LD (JavaScript Object Notation for Linked Data) is the recommended format for structured data by Google. It is a script tag placed in the <head> section of your HTML. It does not affect visible page content.
Which schema type should I use?
Article for blog posts and news articles, Product for e-commerce items, FAQPage for FAQ sections (enables accordion in Google), LocalBusiness for physical businesses, BreadcrumbList for navigation, Event for events, Recipe for recipes.
Does schema markup directly improve rankings?
Schema markup does not directly improve rankings but can significantly increase click-through rate by enabling rich results — FAQ dropdowns, star ratings, event dates — that make your listing stand out in search results.
How do I test my schema markup?
Use Google's Rich Results Test (search.google.com/test/rich-results) to validate your JSON-LD and see which rich result types your markup qualifies for.

Related tools