Product Schema Generator - JSON-LD for Google Shopping
Import existing JSON-LD
Paste JSON-LD or a full <script> tag. Matching fields fill the form; properties the form doesn't cover are kept in the output as they are.
Product Details
Identifiers & Attributes
Manufacturer part number.
Pricing & Availability
AggregateOffer (a price range from several sellers) works for product snippets only. Merchant listings need a single Offer.
Shipping & Returns
Use 0 for free shipping.
Two-letter ISO 3166-1 code.
Required when returns are within a set number of days.
Ratings & Reviews
Defaults to 5 if omitted.
Defaults to 1 if omitted.
JSON-LD Output
What is Product schema?
Product schema is structured data, usually written as JSON-LD, that describes a product on its own page: its name, images, brand, identifiers such as GTIN or SKU, and the offer a shopper can buy. Google reads it to show prices, stock status, shipping and return details, and review stars next to your result. It uses the schema.org Product type with a nested Offer.
Product markup belongs on pages that sell or review one specific product. Category pages, search result pages, and pages listing many products should not use it as if each listing were the main item. The values in the markup must match what a visitor sees on the page, including the price and currency.
Product schema example (JSON-LD)
A complete example you can adapt. Paste it into the page's HTML, or build your own with the generator above.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Trailhead 28L Hiking Daypack",
"image": [
"https://example.com/images/trailhead-28-front.jpg",
"https://example.com/images/trailhead-28-side.jpg",
"https://example.com/images/trailhead-28-back.jpg"
],
"description": "A 28 litre daypack with a ventilated back panel, rain cover, and hydration sleeve.",
"brand": {
"@type": "Brand",
"name": "Ridgeline Outdoor"
},
"sku": "RL-TH28-GRN",
"gtin13": "9421903456781",
"color": "Forest Green",
"material": "Recycled nylon",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.6,
"reviewCount": 212,
"bestRating": 5,
"worstRating": 1
},
"offers": {
"@type": "Offer",
"url": "https://example.com/products/trailhead-28",
"price": 129,
"priceCurrency": "USD",
"priceValidUntil": "2026-12-31",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition",
"seller": {
"@type": "Organization",
"name": "Ridgeline Outdoor"
},
"shippingDetails": {
"@type": "OfferShippingDetails",
"shippingRate": {
"@type": "MonetaryAmount",
"value": 7.95,
"currency": "USD"
},
"shippingDestination": {
"@type": "DefinedRegion",
"addressCountry": "US"
},
"deliveryTime": {
"@type": "ShippingDeliveryTime",
"handlingTime": {
"@type": "QuantitativeValue",
"minValue": 0,
"maxValue": 1,
"unitCode": "DAY"
},
"transitTime": {
"@type": "QuantitativeValue",
"minValue": 2,
"maxValue": 5,
"unitCode": "DAY"
}
}
},
"hasMerchantReturnPolicy": {
"@type": "MerchantReturnPolicy",
"applicableCountry": "US",
"returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
"merchantReturnDays": 30,
"returnMethod": "https://schema.org/ReturnByMail",
"returnFees": "https://schema.org/FreeReturn"
}
}
}
</script> Which Google rich result does it enable?
Google has two kinds of product result. Product snippets add review stars, a price, or availability to an ordinary search listing, and they work for review sites as well as shops. Merchant listings are for pages where a shopper can buy the product. They can show in the Shopping tab, in product knowledge panels, and in Google Images, and they can display shipping cost, delivery time, and return terms.
Merchant listings need a single Offer with a price. An AggregateOffer (a low price, high price, and offer count) is accepted for product snippets only, so use it when you compare several sellers, not when you sell the item yourself. The generator lets you pick either. If you also use Google Merchant Center, shipping and return settings there take precedence over the markup.
Required and recommended properties
| Property | Status | Notes |
|---|---|---|
name | Required | The product name as shown on the page. |
image | Required | Required for merchant listings. Give several crawlable image URLs if you have them. |
offers | Required | An Offer for merchant listings. Product snippets need one of offers, review, or aggregateRating. |
offers.price / priceCurrency | Required | A number and a three letter ISO 4217 code, such as 129.00 and USD. |
offers.availability | Recommended | One value such as InStock, OutOfStock, PreOrder, BackOrder, or Discontinued. |
offers.itemCondition | Recommended | NewCondition, UsedCondition, or RefurbishedCondition. |
offers.shippingDetails | Recommended | OfferShippingDetails with a shipping rate, destination country, and handling and transit days. |
offers.hasMerchantReturnPolicy | Recommended | MerchantReturnPolicy with country, category, and (for a finite window) the number of days. |
brand.name | Recommended | A Brand object, not a plain string. |
gtin, mpn, sku | Recommended | Identifiers help Google match the product to other listings of the same item. |
aggregateRating, review | Recommended | Needed for review stars. Ratings must come from real customers. |
color, material, description | Recommended | Variant attributes and a short description of the product. |
Common Product schema mistakes
- Writing the price with a currency symbol or thousands separator (
"$1,299"). Use a plain number and put the currency inpriceCurrency. - Using
AggregateOfferon a shop's own product page. It disqualifies the page from merchant listings. - Giving
brandas a plain string instead of{"@type": "Brand", "name": "..."}. - Letting the markup price drift from the visible price after a sale ends. Generate the markup from the same data that renders the page, and set
priceValidUntilfor temporary prices. - Adding reviews with no author, or ratings that the business wrote itself. Google ignores them and may treat the markup as spam.
- Marking up category pages with one
Productper tile. Product markup is for a page about a single product.
What the generator does with your offer
Shipping and return fields sit in their own sections of the form, but
Google expects them inside the offer, so the output moves them into
offers.shippingDetails and
offers.hasMerchantReturnPolicy. The shipping rate takes the
offer's currency. Pick AggregateOffer and the single price is
dropped in favour of low price, high price and offer count. Pick a return
policy other than a fixed window and the days field is left out. Brand
and seller are written as typed objects even if you only type a name.
Related Tools
Local Business Schema Generator
Generate LocalBusiness JSON-LD for Google Maps and local search results.
Article Schema Generator
Generate Article JSON-LD for rich results with headline and thumbnail.
FAQ Schema Generator
Generate FAQPage JSON-LD. Rich results limited to government and health sites since August 2023.
Event Schema Generator
Generate Event JSON-LD with dates, location, and ticket details.