Skip to content
Koit Academy

Product schema generator

Your details

8, 12, 13 or 14 digits, from the barcode.

A number, with a point for decimals: 129.00, not $129.

The three-letter code: USD, EUR, GBP, CAD, AUD.

Only for a price that ends on a known date, as YYYY-MM-DD.

The details filled in are an example. Everything runs in this browser; nothing you type is sent anywhere or stored.

JSON-LD for the product page

Product markup with 7 properties and an offer at 129 USD.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Trailhead 40L Waterproof Hiking Backpack",
  "image": [
    "https://www.example.com/images/trailhead-40-1x1.jpg",
    "https://www.example.com/images/trailhead-40-4x3.jpg",
    "https://www.example.com/images/trailhead-40-16x9.jpg"
  ],
  "description": "A 40-litre hiking pack with a roll-top waterproof main compartment, a padded hip belt and a sleeve for a 3-litre water bladder.",
  "brand": {
    "@type": "Brand",
    "name": "Trailhead"
  },
  "sku": "TH-40-GRN",
  "gtin": "4006381333931",
  "offers": {
    "@type": "Offer",
    "url": "https://www.example.com/packs/trailhead-40/",
    "price": 129,
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  }
}
</script>
  • Note: Ratings and reviews are not part of this form. Add aggregateRating or review only for real reviews that visitors can read on this page.
  • Note: Shipping and return policies are best set once for the whole shop in Organization markup, which Google recommends over repeating them on every product.

How to use it · free, no signup

How to use the Product Schema Generator

Fill in the product and its price to get Product JSON-LD for a shop page, with the GTIN’s check digit tested and every value checked against Google’s rules. Runs in your browser.

  1. 01

    Describe the product

    Name, images, description and brand, as the page shows them.

  2. 02

    Add the identifiers

    SKU and the GTIN from the barcode, if it has one.

  3. 03

    Set the offer

    Price as a number, currency as a code, availability and condition.

What a product page needs

Product markup tells Google what is on sale, for how much and whether it is in stock. For a page where people can buy, Google’s merchant listing documentation sets out what is required and what is recommended:

PropertyStatus
nameRequired
imageRequired, at least one
offers: price above zero, priceCurrencyRequired
descriptionStrongly recommended
brand, gtin, availability, itemConditionRecommended

The starting example fills in all of them for a hiking pack. Pages that review products rather than sell them use a different set, built around the review.

Prices, currencies and barcodes

The price is a number, without a currency sign or thousands separator: 1299.00, not £1,299.00. The currency goes in its own field as the three-letter ISO 4217 code, so £ becomes GBP. A GTIN, the number under the barcode, ends in a check digit worked out from the others; if one digit is mistyped, the check fails, and this page says so before Google does.

What is left out, and why

  • Ratings and reviews. They may only describe real reviews that visitors can read on the page. Add aggregateRating or review only from those.
  • Shipping and returns. Google recommends declaring them once for the whole shop in Organization markup, rather than on every product.
  • Variants. A product sold in several sizes or colours can be marked up as a group; this form covers one product.

Checking and placing it

Put the script in the product page’s HTML and test the page with Google’s Rich Results Test. Every value should match what shoppers see: the same name, price and availability. For the shop-wide details, the Organization schema generator builds that markup, and the breadcrumb schema generator marks up the category path above the product.

Published by Koit Academy. Who runs it, how it is paid and how its tools are checked.

Questions

What people ask about the Product Schema Generator

What does Google require in Product markup?
For a page where the product can be bought: a name, at least one image, and an offer with a price above zero and a currency code.
How should I write the price?
As a plain number with a point for decimals, such as 129.00, and the currency in its own field as a three-letter code such as USD.
What is a GTIN?
The number under a product’s barcode: 8, 12, 13 or 14 digits, also called UPC, EAN or ISBN. Its last digit checks the others.
Why is there no rating field?
Ratings and reviews may only describe real reviews that visitors can read on the page, so they are not filled in from a form here.
Where do shipping and returns go?
Google recommends setting shipping and return policies once for the whole shop in Organization markup, and on a product only to override them.