Schema Markup Generator
Fill in a few details and get JSON-LD structured data to add to your page, checked as you type for missing or invalid values.
What schema markup does
Structured data is code that describes a page in a standard vocabulary (schema.org), so search engines can understand details like a product's price or a business's address. Google can use it to show rich results, such as prices in search results. Valid markup makes a page eligible for these features; it doesn't guarantee them. See Google's introduction to structured data.
This tool creates JSON-LD, the format Google recommends. Everything runs in your browser.
Which type to use
- Product for a product page. Google requires a name plus an offer, a review or a rating, and merchant listings need a price and currency (Google: product markup).
- Organization or online store for your home page or About page. Google recommends the more specific OnlineStore type for ecommerce (Google: organization markup).
- Article or blog post for blog content (Google: article markup).
- Breadcrumbs to show where a page sits in your store, such as Home, then Pillows, then the product (Google: breadcrumb markup).
- Local business only if customers can visit a physical location (Google: local business markup).
This tool doesn't generate reviews or star ratings. Rating markup has to reflect real reviews shown on the page.
Example: product markup
For a fictional product, the generator produces:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Linen Throw Pillow Cover",
"image": "https://example.com/images/linen-pillow.jpg",
"description": "Stonewashed linen pillow cover with a hidden zipper.",
"sku": "LPC-18",
"brand": {
"@type": "Brand",
"name": "Example Home Co."
},
"offers": {
"@type": "Offer",
"url": "https://example.com/products/linen-pillow-cover",
"price": "24.00",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
}
}How to add it to your store
- Check what's already there. Many Shopify themes and WooCommerce SEO plugins already add Product and Organization markup. Run the page through the SEO Page Checker to see which types it has, and avoid adding a duplicate.
- Paste the code into the page's HTML. On Shopify, that usually means a theme section or custom liquid block, or an app. On WordPress, use a plugin or a custom HTML block.
- Test the live page with the Rich Results Test or the Schema Markup Validator.
- Keep it accurate. Markup must match what's visible on the page, and prices and availability must stay current (Google's structured data guidelines).
Markup you paste by hand doesn't update itself. If prices change often, markup generated by your theme or an app is usually easier to keep correct.
More free SEO tools
SEO Page Checker
Check one page for common technical SEO issues: indexing, title, description, headings, images, links and structured data.
Meta Title and Description Generator
Get title and description ideas built from your own page details, with length checks and a search result preview.
Product Description SEO Helper
Check a product description for readability, natural keyword use and unsupported claims, and get title, outline and alt text ideas.
Ecommerce Keyword Brainstormer
Brainstorm keyword ideas for a product or category, grouped by intent: research, comparison, buying, how-to and questions.
Robots.txt Generator and Checker
Create a robots.txt for Shopify, WooCommerce or any site, or check an existing file and test which URLs crawlers may visit.
XML Sitemap Checker
Check that your XML sitemap loads and is valid, and test a sample of its URLs for errors, redirects, noindex and robots.txt blocks.
PageSpeed Checker
Test your store's speed with Google's free PageSpeed Insights, then get the results explained in plain English with next steps.
Guides for store owners
Articles from the Outpost Journal on getting found, product pages and marketing for independent stores.
