Skip to content

Review schema generator. Star ratings in JSON-LD.

Switch mode (Review or AggregateRating), pick what's being reviewed, fill the rating + author. The right panel renders JSON-LD with the itemReviewed nested object. Pure browser code, no fetch, no log.

Mode:
review · single rating
JSON-LD output · live

              
    Sources used by this generator

    Privacy: form runs in-browser only.

    § · written guide

    How to use the Review Schema Generator

    This generator writes JSON-LD structured data for reviews, ready to paste into a page. It has two modes: one Review with its author, rating and text, or an AggregateRating that summarizes many reviews as a score and a count. The output and a short checklist update as you type. It is for site owners and developers who show real reviews on a page and want search engines to read them.

    Step by step

    1. Choose the mode

      Press Review (single) to mark up one review, or AggregateRating (summary) for an average score across many reviews. Review (single) is selected when the page opens, and the form below changes with the mode.

    2. Describe what is being reviewed

      Pick the itemReviewed @type, such as Product, LocalBusiness, Recipe or SoftwareApplication. Type the itemReviewed name, which is required, and the itemReviewed URL, which is optional. These fields are shared by both modes.

    3. Fill in a single review

      In Review (single) mode, enter the Rating (the default is 5), the Scale (best / worst) which starts at 5 and 1, the Author name and the Review body. Add Date published and Publisher (review host) if you have them, for example the site the review came from.

    4. Or fill in the summary

      In AggregateRating (summary) mode, enter the Rating value (default 4.7), the Review count (default 128) and the Best rating (default 5). The rating block is only written when both Rating value and Review count are filled in.

    5. Check the result

      Read the line above the JSON-LD output and the checklist under it. Fix any item marked as failed before you copy. Warnings are advice and do not block anything.

    6. Copy the code

      Press Copy JSON only for the bare JSON, or the button next to it to copy the same JSON already wrapped in a script tag of type application/ld+json. Paste the script tag into the page that shows the review.

    Reading the result

    • In Review (single) mode there are five checks. itemReviewed.name, author.name and reviewRating.ratingValue fail when empty; reviewBody and datePublished only warn. The sample values pass all five.
    • In AggregateRating (summary) mode the checks are the rating value, a review count above 0 and a rating between 0 and 5, plus a Self-serving check warning that always shows as a reminder of Google's policy. So the sample reads 1 warning and 3 pass.
    • A Review is written with the reviewed item nested inside it under itemReviewed. An AggregateRating is written the other way round: the item itself, such as a Product, with aggregateRating inside it.
    • Scores are written as text, for example "ratingValue": "4.7". schema.org allows ratingValue as either a number or text.

    Tips and common mistakes

    • Only mark up reviews that a visitor can read on the same page. The page's own notes say an AggregateRating without visible reviews behind it breaks Google's policy.
    • The 0 to 5 range check assumes a 5 point scale. A score of 8.6 out of 10 shows a warning even if you set Best rating to 10.
    • In AggregateRating mode the worst rating is always written as 1. Edit the copied code if your scale starts at 0.
    • Use the itemReviewed @type that matches the page, such as Recipe on a recipe page. The same review on the wrong type is less useful to search engines.
    • Run the finished page through a structured data testing tool after you publish, since this checklist only covers the fields in this form.

    Privacy and limits

    The JSON-LD is built by a script in your browser from what you type. Nothing you type is sent to a server, and the tool does not store it, so copy the code before you close the tab.

    Back to the tool

    § 02 · two modes · one decision

    Review vs AggregateRating.

    Review represents one user's rating + body + author + date. Use it when you publish individual reviews on the page (Trustpilot widget, Yotpo block, native review system). Each Review object cites the specific reviewer; the rich result can show the user's quote.

    AggregateRating represents the summary across many reviews, the "4.7 / 128 reviews" badge. The rich result shows star count + total. Required: ratingValue, reviewCount > 0, and on the page itself there must be visible reviews backing the aggregate.

    Most product pages use both. An AggregateRating block for the visible badge, plus several Review objects for the individual reviews shown on the page. They reference the same itemReviewed and Google honors both for the rich result.

    itemReviewed types: the schema.org spec accepts Product, LocalBusiness (and subtypes), Movie, Book, Recipe, Service, Event, CreativeWork, SoftwareApplication. Pick the right type so the review-rich-result eligibility evaluates correctly. A Movie review unlocks the IMDB-style box; a Recipe review unlocks the cooking-time + calorie carousel; a LocalBusiness review feeds the local pack.

    Self-serving aggregateRating without underlying visible reviews is prohibited by Google and risks a structured-data manual action. The rule: aggregateRating must reflect reviews actually rendered on the same page. Don't fabricate; don't aggregate from elsewhere.

    § 03 · questions

    Six questions users ask.

    Review or AggregateRating, which do I need?

    Review is for a single user-written review (one rating + body + author). AggregateRating is for the summarized rating across many reviews (the 4.7 / 128 reviews badge). Most product pages use both: an AggregateRating for the visible badge plus several Review objects for the individual reviews shown on the page. Google requires AggregateRating to be backed by visible reviews on the same page, fabricated aggregates risk a structured-data manual action.

    Why pick an itemReviewed type?

    Schema.org Review requires the itemReviewed property pointing at what's being rated. The valid types include Product, LocalBusiness (and subtypes), Movie, Book, Recipe, Service, Event, CreativeWork, and SoftwareApplication. Picking the right type tells Google what kind of review-rich-result eligibility to evaluate.

    What rating scale should I use?

    Schema.org defaults to 5-star (worstRating: 1, bestRating: 5). You can override (10-star like IMDB, 100-point like Wine Spectator), but Google's rich result normalizes to 5-star regardless. Stick with 5-star unless you have a strong category convention.

    Can I include reviews I didn't write?

    Yes if the reviews are real and visible on the page. The schema represents what's published; if you display third-party reviews on your page with attribution, you can mark them up. Faking reviews violates Google's structured-data policy and risks a manual action.

    Should reviewBody be the full text?

    Yes for individual Review schema, include the actual review text. Google will use reviewBody as the visible quote in the rich result.

    Does this tool log my reviews?

    No. The form runs entirely in JavaScript on your device. Nothing is sent to Digital Heroes servers.

    Published · Last updated .

    Priya sent you a message Online now

    Talk to a Developer Now

    Share your name and email to reply.

    Reply