Schema Markup Generator

By · Updated

Build valid Schema.org structured data in JSON-LD — the format Google recommends. Pick a type, fill in the form, and copy the markup with a live preview and validation as you type. Includes Product ratings and reviews. Everything runs in your browser.

Schema markup builder

JSON-LD

{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "How to write a robots.txt",
  "author": {
    "@type": "Person",
    "name": "Jane Doe"
  },
  "datePublished": "2026-01-15"
}

Add an image URL — Google's Article rich result needs one.

Paste the block inside a <script type="application/ld+json"> tag in your page's <head>.

Which type should I use?

The types this tool generates, and what each one needs to qualify for a rich result.

Type Use it for Rich-result note
Article / Blog post A news article, blog post, or editorial page. Needs headline, image, and datePublished for the Article rich result.
Product (with reviews) A product with price, availability, rating, and a review. Needs an offer, an aggregateRating, or a review to show the Product rich result (price and stars).
Local business A physical business with an address, hours, and reviews. Needs name and address; add aggregateRating or a review for star ratings.
Organization A company or organization, for the knowledge panel. Used for entity understanding and the knowledge panel; add logo and sameAs links.
Review (standalone) A single review of a product, business, or other item. Shows the review snippet; the reviewed item needs a name and the rating a value.
FAQ page A list of questions and answers. Parsed by AI search engines; Google's FAQ rich result is limited to gov/health sites.
Breadcrumb trail The navigation path to the current page. Shows the breadcrumb trail in place of the plain URL in search results.

Reviews and ratings, done right

Star ratings are the highest-impact rich result, and the easiest to get wrong. Two rules matter most. First, the ratings have to be real and visible on the same page — Google treats invented or hidden ratings as a structured-data violation.

Second, watch the self-serving review rule: a Review or aggregateRating about your own business or your own products, hosted on your own site, isn't eligible for stars. Ratings belong on pages where independent reviews appear — product pages, recipes, courses — not on your Organization or LocalBusiness markup as a way to rate yourself.

Use aggregateRating for the average and count, and a single review for a featured quote. The Product type here builds both.

Frequently asked

What is JSON-LD and where do I put it?
JSON-LD is a block of structured data describing the page, written as JSON inside a <script type="application/ld+json"> tag. Google recommends it over Microdata and RDFa because it sits in one place — usually the <head> — instead of being woven through your HTML. Generate the block here, then paste it into the head of the page it describes.
What are Google's rules for reviews and star ratings?
Ratings must come from genuine reviews that are visible to users on the same page — you can't invent them or pull them from another site. Google also bans self-serving reviews: a Review or aggregateRating about your own organization or your own products, hosted on your own site, isn't eligible. Stars are best used on Product, Recipe, Book, Course, and similar item pages where independent reviews appear.
What's the difference between aggregateRating and review?
An aggregateRating summarises many ratings into an average and a count (for example 4.6 from 128 ratings). A review is a single person's rating plus their text. A Product can carry both: the aggregate drives the star line in search, and one featured review adds detail. Add an aggregateRating when you have several ratings, and a review when you want to show a specific one.
Will this guarantee rich results or star ratings in Google?
No. Valid markup makes a page eligible for a rich result, but Google decides whether to show one based on quality, relevance, and policy. Each type also has its own requirements — a Product needs an offer, a rating, or a review; an Article needs a headline, image, and date. The validator on this page flags what's missing for the type you've chosen.
Why doesn't my FAQ markup show rich results anymore?
In 2023 Google restricted FAQ rich results to government and health authority sites, so most FAQ markup no longer produces the expandable Q&A in search. It's still worth adding: AI search engines like Perplexity and Google's AI Overviews parse FAQPage markup for passage-level answers and citations.
Can I use more than one schema type on a page?
Yes. A page can have several <script type="application/ld+json"> blocks, or you can combine types into a single @graph array. A common pattern is a BreadcrumbList plus the main type (Article or Product) on the same page. Generate each block here and paste them in together.
How do I test the markup after adding it?
Use Google's Rich Results Test to check eligibility for a specific rich result, and the Schema.org Markup Validator for general syntax and type validity. Paste the generated block or the live URL into either tool. This generator builds valid JSON-LD, but those testers confirm Google's view of your live page.
Does this generator send my data anywhere?
No. The JSON-LD is built by JavaScript in your browser as you type — nothing is uploaded or stored. Copy or download the markup and work offline once the page has loaded.
All tools →