Skip to content
Utilboxes

Schema Markup Generator

Choose FAQ page or Product, fill in the questions and answers or the product's price, identifiers and rating, and fix anything flagged against Google's requirements. Then copy the JSON-LD script tag into your page and confirm it with the Rich Results Test. Since August 2023, FAQ rich results appear only for government and health sites.

Runs entirely in your browser

Updated

How to use the Schema Markup Generator

  1. 1Choose FAQ page or Product.
  2. 2Fill in the questions and answers, or the product's details, price and rating.
  3. 3Fix any errors listed under the form; notes are worth reading too.
  4. 4Copy the script tag into your page's HTML, then confirm it with Google's Rich Results Test.

How it works

Structured data is a block of JSON-LD in a page that describes its content in schema.org's vocabulary, so search engines do not have to infer it. An FAQPage lists Question items, each with an accepted Answer; a Product carries its name, images and identifiers, an Offer with price, currency and availability, and optionally an AggregateRating.

The checks follow Google's documentation. A product needs a name and at least one of an offer, a rating or a review before it can show product details in results. Prices must be plain numbers with a three-letter ISO 4217 currency code, availability and condition use schema.org's values, and a GTIN must have 8, 12, 13 or 14 digits with a correct check digit — the tool calculates it, because a mistyped barcode number is a common error.

Two rules decide whether markup helps. It must describe what visitors can actually see on the page — the same questions and answers, the same price. And ratings must come from genuine customer reviews shown on the page; marking up ratings you wrote yourself is against Google's guidelines.

Since August 2023 Google has shown FAQ rich results only for well-known, authoritative government and health websites. On other sites FAQPage markup is still valid and still read, but it will not produce expandable questions in search results. The code is escaped so that text such as </script> inside an answer cannot break your page.

Tips and common mistakes

  • Only mark up what visitors can see on the page — the same questions, answers, price and rating.
  • Use ratings only from genuine customer reviews shown on the page.
  • Test the finished code with Google's Rich Results Test before publishing.
  • Update the markup when prices or availability change, so it never contradicts the page.

Frequently asked questions

Where do I put the JSON-LD script?
Anywhere in the page's HTML — the head or the body; search engines read it either way. If your site builder has a custom code or header scripts setting for the page, paste it there.
Will FAQ schema give my site rich results?
Only if it is a well-known, authoritative government or health website. Google restricted FAQ rich results to those sites in August 2023. The markup remains valid elsewhere, but it will not change how the page appears in results.
Can a page have more than one schema block?
Yes. A page can contain several script tags, for example one for a Product and one for a BreadcrumbList. Describe each thing on the page only once.
Why is my price rejected?
Structured data needs a plain number such as 1299.99. Leave out currency symbols and thousands separators, and put the currency code in its own field.
Does structured data improve rankings?
Not directly. It helps search engines understand the page and can make it eligible for rich results, such as product prices and ratings, which can make a listing more noticeable.
What is a GTIN?
A Global Trade Item Number: the product number behind a retail barcode. It has 8, 12, 13 or 14 digits, and the last one is a check digit.
What happens if my markup has an error?
The page still works for visitors, but search engines may ignore the markup, so the page is not eligible for rich results until the error is fixed.

Guides