Free Shopify Product JSON-LD Generator

47% of top Shopify DTC brands in our AI-Shopping Readiness Benchmark are missing valid Product JSON-LD. Generate a clean, zero-app-bloat Liquid snippet that exposes live prices, currency, and stock to Google, ChatGPT, Claude, and Perplexity.

1. Configure your Liquid schema fields

{%- comment -%}
  Save as snippets/product-jsonld.liquid and render in main-product.liquid:
  {% render 'product-jsonld', product: product %}
{%- endcomment -%}
{%- assign current_variant = product.selected_or_first_available_variant -%}
<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "Product",
  "name": {{ product.title | json }},
  "url": {{ shop.url | append: product.url | json }},
  "image": [{{ product.featured_image | image_url: width: 1200 | prepend: "https:" | json }}],
  "description": {{ product.description | strip_html | truncate: 500 | json }},
  "brand": { "@type": "Brand", "name": {{ product.vendor | json }} },
  "sku": {{ current_variant.sku | json }},
{%- if current_variant.barcode != blank -%}
  "gtin": {{ current_variant.barcode | json }},
{%- endif -%}
  "offers": [
    {%- for variant in product.variants -%}
    {
      "@type": "Offer",
      "sku": {{ variant.sku | json }},
      "price": "{{ variant.price | divided_by: 100.0 }}",
      "priceCurrency": {{ cart.currency.iso_code | json }},
      "availability": "https://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}",
      "url": {{ shop.url | append: variant.url | json }}
    }{% unless forloop.last %},{% endunless %}
    {%- endfor -%}
  ]
}
</script>

Validate your live product schema in 3 seconds

Paste your storefront URL to verify JSON-LD, /products.json, and all 5 AI shopping crawlers free.