Free SEO tool

Product schema generator for online stores

The product schema generator by AI for Marketing Ops writes Product structured data in JSON-LD for one product page. You type the facts that the page shows, such as name, price and stock, and copy the code. Google can use this data to show the price and stock in its results. Google decides when to show them.

Add only facts that your product page shows. Set the currency, availability and condition to match the page. For merchant listings, Google needs the product name, the image URL and the price.

How to use it

  1. Open the product page and check which facts it shows: name, brand, price, stock and the main image.
  2. Type those facts in the fields. Write the price without a thousands separator, such as 1299.90.
  3. Leave a text field empty if the page does not show it. The code skips empty text fields. Currency, availability and condition always appear in the code, so set them to match the page.
  4. Paste the code into the HTML of the product page. Then test the page in Google’s Rich Results Test.

Product structured data in Google Search

Product structured data is code that tells Google the facts of a product page, such as name, price and stock. Google can then show these facts in its results, including Google Images and Google Lens.

Google has two kinds of product results. Product snippets are for pages where people cannot buy the product directly, such as a product review. Merchant listings are for pages where customers can buy the product from you.

Product snippets need a name and one of review, aggregateRating or offers. The table shows what merchant listings need, and where each field of this tool goes in the code.

The full Product type is on schema.org/Product, for any product or service on offer. Google’s docs list the properties that Google uses.

Fields in this tool and Google’s rules for merchant listings
FieldProperty in the codeMerchant listings
Product namenameRequired
Image URLimageRequired
Priceoffers.priceRequired, above zero
Currencyoffers.priceCurrencyRequired
Availabilityoffers.availabilityRecommended
Conditionoffers.itemConditionRecommended
Brandbrand.nameRecommended
GTIN (EAN or UPC)gtin8, gtin12, gtin13, gtin14 or gtinRecommended
SKUskuRecommended
DescriptiondescriptionRecommended
Product page URLoffers.urlRecommended

Markup that matches the product page

Add markup only for facts that a visitor can see on the product page. Google’s guidelines say that structured data must be a true representation of the page content.

If the markup breaks Google’s rules, Google can take a manual action. The page then loses its rich results, but its ranking in web search does not change.

  • Use the same price and stock in the code as on the page.
  • Do not add reviews, ratings or offers that the page does not show.
  • Add the markup to product pages, and skip category pages. Google supports product rich results only on pages about one product or its variants.
  • Update the code when the price or stock changes. The code from this tool has fixed values.
  • Check first if your theme or SEO module already adds Product markup, so the page does not have two versions.

Testing your Product markup

Test the page in Google’s Rich Results Test after you add the code. The test shows errors and the rich results that the page can get.

Fix every critical error. Then use the URL Inspection tool in Search Console to see how Google sees the live page.

A test with no errors does not guarantee a rich result. Google chooses what to show for each search, based on things such as search history, location and device.

Questions

Common questions

What is Product schema markup?

Product schema markup is structured data that describes a product with the schema.org Product type. It tells search engines facts such as the name, brand, price and stock of a product page. Google recommends JSON-LD when your site allows it, and this generator writes JSON-LD.

Where do I add the JSON-LD code?

Add it to the HTML of the product page, in the head or the body. The generator gives you the full script tag. For a whole catalogue, use the code as a model for your product template. A developer then replaces the fixed values with your store’s product fields.

Does Product structured data guarantee rich results?

No. Google says it does not guarantee that structured data will show in search results. The same is true when the Rich Results Test finds no errors. The markup makes the page eligible. Google then decides for each search, based on things such as location and device.

Do I need a GTIN for Product schema?

No, but Google recommends a GTIN for merchant listings. A GTIN is the number on the barcode, such as a 13-digit EAN. The generator writes gtin8, gtin12, gtin13 or gtin14 from the number of digits you type. A GTIN has 8, 12, 13 or 14 digits. If you type another length, the code writes gtin, so check the number first.

Book a 30‑minute discovery call

Tell us what you sell and to whom. We check your business in Google and AI search before we talk. If we are not a fit, we tell you.

Book a discovery call

30 minutes · Free · Online