Product Schema Markup Generator
This tool builds a schema.org Product structured-data snippet (JSON-LD) that you
This tool builds a schema.org Product structured-data snippet (JSON-LD) that you
How to use Product Schema Markup Generator
- Enter your product name, then fill in the description, image URLs, brand, price, currency and availability.
- Optionally add a SKU, GTIN, product URL and a rating value plus review count to enable star ratings.
- Copy the generated JSON-LD script or download the .json file and paste it into your product page's HTML.
About Product Schema Markup Generator
This tool builds a schema.org Product structured-data snippet (JSON-LD) that you paste into a product page so search engines can show rich results like price, availability and star ratings. You fill in the fields you have โ name, description, images, brand, SKU, MPN, GTIN, price, currency, availability, condition, product URL and an aggregate rating โ and it assembles a correctly nested, pretty-printed <script type="application/ld+json"> block in real time.
It follows Google's Product structured-data guidelines: a product name is required, images and a price are strongly recommended, and star ratings only render when you supply both a rating value (0-5) and a review count of at least one. The tool flags common mistakes โ missing images, an invalid price, malformed GTINs, non-http image URLs, or a rating with no count โ as inline warnings so you can fix them before publishing. It does not crawl your page, so the values you enter must match what shoppers actually see.
Everything runs entirely in your browser with plain JavaScript โ no data is uploaded, no account is needed, and nothing you type leaves your device. You can copy the finished snippet or download it as a .json file. Always run the result through Google's Rich Results Test before relying on it in production.
Frequently asked questions
- What is Product schema markup and why do I need it?
- Product schema is structured data (JSON-LD) that describes a product to search engines. Adding it to a product page makes you eligible for rich results in Google โ price, availability, and star ratings shown directly in search โ which can improve click-through. It does not guarantee those features appear; Google decides based on quality and policy.
- Where do I put the generated code?
- Copy the whole <script type="application/ld+json"> block and paste it into the HTML of the specific product page it describes. It can go in the <head> or anywhere in the <body>. Use one Product block per product page, and make sure every value matches what visitors actually see on that page.
- How do I get star ratings to show up?
- You must provide both a rating value between 0 and 5 and a review count of at least 1. If either is missing or invalid, the tool omits the AggregateRating block and warns you. Google also requires that these ratings come from genuine reviews visible on the page โ do not invent them, or the markup can be flagged as spam.
- Is my product data sent anywhere?
- No. The entire tool runs client-side in your browser using plain JavaScript. Nothing you type is uploaded, stored, or shared, and no sign-up is required. You can even use it offline once the page has loaded.
- Does this validate my markup?
- It builds syntactically valid JSON-LD and warns about common issues like a missing name, invalid price, malformed GTIN, or a rating without a count. It cannot check whether the values match your live page or confirm eligibility for rich results โ always run the output through Google's Rich Results Test and Schema.org validator before publishing.
- What GTIN lengths are supported?
- The GTIN / UPC / EAN field accepts standard 8, 12, 13, and 14-digit codes. If you enter a length outside those, the tool still includes the value but shows a warning so you can double-check it. Leave it blank if the product has no GTIN.