Product Schema Generator (JSON-LD)
Fill in your product details to build valid Product JSON-LD with a nested Offer, brand and aggregate rating. The structured data updates live in your browser, and you can copy or download the script in one click.
How to generate product schema
- Enter the product name, then add a description, image, brand, SKU and MPN.
- Set the price, currency, availability and condition, plus a rating if you have reviews.
- Copy the JSON-LD script and paste it into the <head> or body of your product page.
Examples
Product with price, availability and rating
name: Wireless Mouse, price: 19.99, currency: USD, availability: InStock, rating: 4.5
"offers": { "@type": "Offer", "price": 19.99, "priceCurrency": "USD", "availability": "https://schema.org/InStock" }Frequently asked questions
What is Product schema?
Product schema is structured data, written in the schema.org vocabulary, that describes an item for sale. It tells search engines the product name, price, availability, brand and review rating in a machine-readable form, separate from your visible page layout, so crawlers do not have to guess that detail from the raw HTML.
What is an Offer in Product schema?
The Offer is a nested object inside the Product that holds the commercial details: the price, the priceCurrency (an ISO code like USD), the availability and the product URL. Google reads price and availability from the Offer, so this generator always nests those fields under an offers object rather than placing them at the top level.
Why is availability written as a full URL?
Schema.org defines availability as an enumeration whose members are URLs, such as https://schema.org/InStock. Google expects that full URL, not the bare word InStock. This tool maps your choice (InStock, OutOfStock or PreOrder) to the correct schema.org URL automatically.
Will Product schema get me rich results?
It makes your page eligible for product rich results such as price, availability and review stars in search, but it is not a guarantee. Google requires accurate markup that matches the visible page, and for review stars it must see a real aggregateRating. Test the output and follow Google's product structured data guidelines.
How do I add review stars?
Fill in the rating value and review count fields. The generator adds an aggregateRating object to the Product, which is what search engines use to show star ratings. Only include ratings that reflect genuine reviews shown on the page, since fabricated ratings violate Google's guidelines and can trigger a manual action.
Where do I add the JSON-LD script?
Paste the full script tag into the <head> of your product page, or anywhere in the body. Google reads JSON-LD from either location. Keep one Product block per product and make sure the price, availability and rating match what shoppers actually see.
Is my product data sent anywhere?
No. The JSON-LD is built entirely in your browser. Nothing you type is uploaded, logged or stored on a server.
Related tools
Schema Markup Generator
Generate JSON-LD schema markup for Article, Product, FAQ, LocalBusiness, Organization and Breadcrumb. Fill in the fields and copy the script into your page.
Open Graph Generator
Generate Open Graph meta tags for rich link previews on Facebook, LinkedIn and Slack. Fill in title, description, URL and image, then copy the HTML.
Meta Tag Generator
Generate clean HTML meta tags for any page. Set title, description, keywords, author and robots, then copy the head block. Runs in your browser.
Article Schema Generator
Generate Article, NewsArticle or BlogPosting JSON-LD schema. Add headline, author, publisher and dates, then copy the script into your page.
Breadcrumb Schema Generator
Build BreadcrumbList JSON-LD structured data. Add your breadcrumb trail, reorder the steps, then copy or download the script for your page.
Bulk Hreflang Generator
Generate hreflang annotations for many languages at once. Add language and URL rows, pick HTML, XML sitemap, or HTTP header output. Runs in your browser.