JSON-LD generator

Product Schema Generator (JSON-LD)

Enter the product details shown on the product page. The JSON-LD updates as you work and stays in this browser.

01

Enter the details

Start with the page

Add the details that identify what this page describes.

ImagesRecommended for Google product snippetRequired for Google merchant listingAdd absolute URLs for representative business images.
Product identifiersAdd the codes printed on the product or its listing.
Price and availabilityAdd the price and availability shown on the page.
OfferRequired for Google merchant listingDescribe the price on this page.
Shipping and returnsAdd the shipping cost, delivery time, and return policy published for this product.
ShippingRecommended for Google merchant listingLeave blank when no shipping information is published.
Return policyRecommended for Google merchant listingLeave blank when no return policy is published.
Ratings and reviewsAdd ratings only when these reviews appear on this page.
Rating summaryRecommended for Google merchant listingUse the average and count shown on this page.
ReviewsAdd reviews that appear on this page.
Identity linkSet a stable @id to connect this node with others.
Advanced identity linkUse a stable @id to connect this node with other nodes.
What each engine usesReview the documented search feature requirements that apply to this business type.
Active feature ruleGoogle: product snippet

Required for Google product snippet: name

Recommended for Google product snippet: image

Documentation checked 2026-11-12
Active feature ruleGoogle: merchant listing

Required for Google merchant listing: name, image, offers

Recommended for Google merchant listing: aggregateRating, audience, brand.name, category, offers.availability, offers.hasMerchantReturnPolicy, offers.itemCondition, offers.priceValidUntil, offers.shippingDetails, offers.url

Documentation checked 2026-11-12
Jump to the generated code
02

Live JSON-LD output

This code still contains example values. Replace them with details that appear on your page.

Most plugins and code fields want the version with the script tag. Use JSON-LD only when a field asks for the JSON by itself.

schema-product
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Example Trail Backpack 30L",
  "description": "A fictional 30 liter backpack used to demonstrate Product JSON-LD fields.",
  "image": [
    "https://example.com/images/trail-backpack.jpg"
  ],
  "sku": "EX-PACK-30",
  "mpn": "EXP30",
  "brand": {
    "@type": "Brand",
    "name": "Example Outdoor"
  },
  "offers": {
    "@type": "Offer",
    "url": "https://example.com/products/trail-backpack-30l/",
    "price": 89,
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  }
}
</script>

How to add this code to WordPress, Shopify, Wix and other sites

Add the code to your site

Copying the code is half the job. Choose where your site is built to see where the code goes, which version to copy and what to check so you do not end up with two blocks describing the same thing.

Before you paste, on any platform

  1. Open the live page, view its source and search for application/ld+json. Many themes, plugins and site builders already add markup.
  2. If a block already describes the same thing, correct that block or turn it off instead of adding a second one.
  3. Make sure every value in the code is also visible on the page.
  4. After you publish, test the live URL with the Schema checker and Google's Rich Results Test.

Choose your platform. Use the arrow keys to move between platforms.

WordPress block editor

Copy the "With script tag" version.

  1. Open the page or post in the block editor.
  2. Add a Custom HTML block, paste the code and update the page.
  3. View the published page source to confirm the script element is there.
  4. For markup that belongs on every page, such as Organization, use a child theme or a site-specific plugin instead of a block on each page.

WordPress removes script elements from the Custom HTML block for users without the unfiltered_html capability. On a single site, Administrators and Editors have it; on a multisite network, only Super Admins do.

Read the WordPress schema guide

03

How to use this generator

  1. Replace every example value with details shown on the product page.
  2. Add the price, currency, and availability exactly as the page shows them.
  3. Add shipping, returns, and ratings only when the page publishes them.
  4. Run Check this code, then paste the script-tag version into the product page.

Where this code goes

Paste the script-tag version into the HTML of the page it describes, in the head or the body. Most site builders have a custom code or header field for this.

04

What this generator does

The form builds one Product JSON-LD node with one offer. The check compares it with the product snippet and merchant listing requirements Google documents. It cannot confirm indexing or promise a displayed search result.