JSON-LD generator

Review Schema Generator (JSON-LD)

Enter a review or a rating summary that appears on the 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.

RatingEnter the rating exactly as the page shows it.
Review detailsAdd who wrote the review, when, and what it says.
What each engine usesReview the documented search feature requirements that apply to this business type.
Active feature ruleGoogle: review snippet

Required for Google review snippet: author, itemReviewed, reviewRating, reviewRating.ratingValue

Recommended for Google review snippet: datePublished, reviewRating.bestRating, reviewRating.worstRating

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-review
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Review",
  "itemReviewed": {
    "@type": "Product",
    "name": "Example Trail Backpack 30L",
    "url": "https://example.com/products/trail-backpack-30l/"
  },
  "author": {
    "@type": "Person",
    "name": "Avery Example"
  },
  "reviewRating": {
    "@type": "Rating",
    "ratingValue": 4,
    "bestRating": 5,
    "worstRating": 1
  },
  "datePublished": "2026-05-18",
  "reviewBody": "A fictional review used to demonstrate Review JSON-LD fields."
}
</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. Choose one review or a rating summary.
  2. Name the item being reviewed and choose its type.
  3. Enter the rating, and the author or the count, exactly as the page shows them.
  4. Run Check this code, then paste the script-tag version into the page that shows the review.

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 Review node or one AggregateRating node. Use ratings and reviews that really exist and appear on the page. The check compares the code with the review snippet requirements Google documents. It cannot confirm indexing or promise a displayed search result.