100% freeNo signupChecks Google's required fields

Product Schema Generator (Product JSON-LD)

Show price, stock and ratings under your product in Google. Fill the fields from your product page, add shipping and returns if you like, and copy JSON-LD that was checked against Google's product rules while you typed.

Optional. We read the page once to fill the fields and store nothing. You can also fill everything by hand.

Schema type

Product: Price, stock and star rating under the product result.

Google needs a price, a rating or a review to show a product result. Shipping and returns are optional, and Google can read them from Merchant Center instead.

Required

Google requires the product name.

Recommended

Required for merchant listings, and the result looks empty without it.

Recommended

What the product is, in the words of your product page.

Recommended

Helps Google match the product to its brand.

Recommended

Your own product code, so each item is told apart.

Recommended

The price Google shows. Use a dot for decimals, no currency sign.

Recommended

Three-letter code, for example USD or EUR.

Recommended

For example WebSite next to Organization on the homepage. The blocks are linked, so your company appears once.

Your JSON-LD

Fill the fields or read your page, and the code builds as you type.

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

The test buttons copy the code first. In the tab that opens, choose “Code” and paste it.

How to make product schema here

  1. Fill from the product page. We read the product name, image and description, and the price when the page states one in its code.
  2. Add price, currency and stock. Google needs a price, a rating or a review for a product result. A price always goes with its three-letter currency.
  3. Copy, test, paste. Run the code through the Rich Results Test, then put it on that product's page.

What product schema does in Google

Google has two kinds of product results. Product snippets show a price, stock or star rating under an ordinary result and work for any page about a product, reviews included. Merchant listings appear in Google's shopping results and need a page where people can buy, with an image and a price in its currency. Source: Google's product structured data guide.

The minimum for a product snippet is the name plus one of three things: an offer with a price, an aggregate rating, or a review. This generator flags a block that has none of them, and a price without its currency.

Product fields: required and recommended

The same fields the generator above marks as you type. The optional ones open under “Show optional fields” in the form.

FieldGoogleWhy it matters
Product nameRequiredGoogle requires the product name.
Image URLRecommendedRequired for merchant listings, and the result looks empty without it.
DescriptionRecommendedWhat the product is, in the words of your product page.
BrandRecommendedHelps Google match the product to its brand.
SKURecommendedYour own product code, so each item is told apart.
PriceRecommendedThe price Google shows. Use a dot for decimals, no currency sign.
CurrencyRecommendedThree-letter code, for example USD or EUR.
AvailabilityRecommendedShown under the result: in stock, sold out or pre-order.

Product schema example (JSON-LD)

Written by the generator above from sample values for a made-up business. Paste it inside a script tag of type application/ld+json, with your own details in place of the sample ones.

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Trail running shoe",
  "image": "https://example.com/shoe.jpg",
  "description": "Light trail shoe with a grippy sole, made for wet and rocky paths.",
  "brand": {
    "@type": "Brand",
    "name": "Acme"
  },
  "sku": "TRS-42-BLK",
  "offers": {
    "@type": "Offer",
    "price": 89.99,
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "url": "https://example.com/shoes/trail-runner",
    "shippingDetails": {
      "@type": "OfferShippingDetails",
      "shippingRate": {
        "@type": "MonetaryAmount",
        "value": 0,
        "currency": "USD"
      },
      "shippingDestination": {
        "@type": "DefinedRegion",
        "addressCountry": "US"
      },
      "deliveryTime": {
        "@type": "ShippingDeliveryTime",
        "handlingTime": {
          "@type": "QuantitativeValue",
          "maxValue": 1,
          "minValue": 0,
          "unitCode": "DAY"
        },
        "transitTime": {
          "@type": "QuantitativeValue",
          "maxValue": 5,
          "minValue": 0,
          "unitCode": "DAY"
        }
      }
    },
    "hasMerchantReturnPolicy": {
      "@type": "MerchantReturnPolicy",
      "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
      "merchantReturnDays": 30,
      "applicableCountry": "US"
    }
  }
}

Shipping and returns

Shipping cost, delivery time and the return policy can sit inside the offer, and Google shows them in merchant listings. You can also set them once in Google Merchant Center and leave them out of every product. Pick one place and keep it current.

Ratings only from real reviews

An aggregate rating needs the average score and the number of reviews, and both must come from reviews shoppers can read on the page. Ratings from a review app are fine when the app shows those reviews on the page. Invented ratings are spammy structured data under Google's rules and can earn a manual action.

Shopify, WooCommerce and variants

Most Shopify themes, and WooCommerce with an SEO plugin, already print Product markup on every product page. Press “Fill from my page” on a product address first. If it lists Product, fix the existing markup instead of adding a second block.

For sizes and colors, Google reads a ProductGroup with its variants, which shop platforms usually generate themselves. This generator writes one product per block.

Mistakes that cost the rich result

  • A price with a currency sign or a comma, such as $89,99. Write 89.99 and put USD in the currency field.
  • A price in the code that differs from the price on the page, often after a sale ends.
  • In stock in the code for a product that is sold out.
  • Ratings with no reviews visible on the page.
  • Two Product blocks for the same item, one from the theme and one pasted by hand.

Questions about product schema

What is product schema?

Product schema is structured data that describes a product in schema.org terms: its name, image, brand, price, currency, stock and ratings. Google uses it to show prices, availability and stars under the result and in its shopping results.

What is required for product schema?

For a product snippet, Google requires the product name and one of an offer with a price, an aggregate rating or a review. Merchant listings also need an image and the price with its currency.

Does Shopify add product schema automatically?

Most Shopify themes print Product markup on product pages already. Check one of your product pages with “Fill from my page” or the Rich Results Test before adding more.

Can I add star ratings to product schema?

Yes, when the ratings come from real customer reviews that are visible on the same page. Give the average rating and the number of reviews.

Do I need a GTIN in product schema?

It is not required. Google recommends a GTIN, MPN or other product identifier when the product has one, because it helps match your product to the same item elsewhere.

Other schema generators

One page fixed. How many are still missing markup?

The free SeoVision audit checks the structured data on your homepage, products and articles, and SeoVision can add the missing markup for you.

Get your free audit