Schema Markup Generator

Generate valid JSON-LD or Microdata structured data for 16 schema types. Select a schema type, fill in the fields, and copy the markup to your site. Not sure where the code goes once you have it? Read how to add schema markup to your website for the exact steps on WordPress, Shopify, Wix, and custom sites.

Product Fields

Your entries for other schema types stay saved when you switch tabs.

Structured Data Output

Template incomplete: 2 fields need attention

  • - Product name is required
  • - Price is required

Google rich-result check

Google has a related rich-result feature for this type. Eligibility also depends on page content, type-specific policies and Google’s test; a rich result is never guaranteed.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "",
  "offers": {
    "@type": "Offer",
    "price": "",
    "priceCurrency": "GBP",
    "availability": "https://schema.org/InStock"
  }
}
</script>

Validate by copy, open and paste

Copy the markup, open a validator, choose its code option where shown, then paste. The validators do not support a reliable prefilled-code link.

How this could appear in Google

Simplified SERP preview

Example values

example.com

Wireless Headphones

Premium noise-cancelling headphones

4.5 (128)GBP 299.99In stock

Preview only. Google decides whether to show rich results; valid markup does not guarantee them.

Want schema added and validated across your whole site? Request a free SEO diagnosis.

What is Product schema?

Product schema describes an item for sale, its price, currency, availability, brand, and SKU, plus an optional aggregate rating built from a real ratingValue and reviewCount. Google lists a dedicated Product rich result that can show price, availability, and review ratings directly in search, which is one of the clearer commercial wins available from structured data.

The offers block below is required, since price and availability are what Google reads to decide whether your listing qualifies. Star ratings only appear when the aggregateRating figures are genuine, drawn from actual reviews rather than invented numbers, since fabricated ratings breach both schema.org guidance and Google's structured data policies. Fill in the fields and switch between JSON-LD and Microdata output with the toggle above the code block.

Frequently asked questions

Is the offers block required?

Yes. Price, currency, and availability inside the offers object are what make a Product listing eligible for the price and stock rich result. Leave any of them out and the code will still be valid schema, but incomplete for that feature.

Can I add a rating without real reviews?

No. Fabricated ratings and review counts break schema.org guidance and Google's structured data policies, and can lead to a manual action. Only add ratingValue and reviewCount when they reflect genuine reviews.

What availability values does Google accept?

InStock, OutOfStock, and PreOrder are the common ones and are included in the dropdown above. Keep this in sync with what is actually true on the page, since Google can penalise mismatched availability.

Does this work for affiliate or comparison pages?

Yes, Product schema is commonly used on affiliate and comparison content as well as direct ecommerce listings, as long as the price, availability, and any rating shown genuinely reflect what a visitor will find.

Want your structured data reviewed and validated by a human? The technical SEO audit includes a full schema markup review. Not sure where to paste the code above? Read how to add schema markup to your website.

Other schema types

Get Started

Want Your Schema Reviewed by a Human?

Tell me your site and CMS. The £495 audit reviews and validates your existing structured data against Google's Rich Results Test and gives you developer-ready fixes. Implementation is quoted separately or covered in a retainer.

  • Focus on your biggest search problem
  • Review the evidence you already have
  • Identify the most useful next step
  • Answer your priority SEO question
15+ years experienceFree 20-minute diagnosisNo contracts

Usually responds within a few hours

Currently accepting new clients

Tell me about your project

No obligation · Direct reply from Sunny · Reply within one working day

Prefer to talk? 07305 523333 · Hello@SunnyPatel.co.uk