FAQ Schema Generator

Add your questions and answers and get valid FAQPage JSON-LD you can paste straight into your page.

Your details

Then test the page with Google's Rich Results Test.

What is FAQ schema?

FAQ schema (the schema.org type FAQPage) is structured data that tells search engines a page contains a list of questions, each with one answer written by the site owner. Each question is a Question with a name, and its answer is an Answer with a text property.

Will Google show FAQ rich results? Since August 2023 Google shows FAQ rich results only for well-known, authoritative government and health websites. For other sites the markup is still valid schema.org and describes your page clearly, but don't expect the expandable questions to appear under your listing.

How to add FAQ schema to your page

  1. Enter each question and answer exactly as they appear on the page. The text must be visible to visitors.
  2. Copy the code. Keep “Include <script> tag” ticked if you are pasting into HTML.
  3. Paste it into the page, in the <head> or anywhere in the <body>. In WordPress, use a custom HTML block or your SEO plugin's schema field.
  4. Test it with Google's Rich Results Test or the RankInject validator.

FAQ schema rules to follow

  • Only use FAQPage when the page itself wrote both the question and the single answer. Forums and pages where users submit answers should use QAPage.
  • Don't use it for advertising, and don't mark up content that is hidden from visitors.
  • If the same FAQ appears on many pages of your site, mark up only one of them.
  • Answers can include a limited set of HTML: headings, <p>, <br>, lists, <a>, <b>, <strong>, <i> and <em>.

Frequently asked questions

Is FAQ schema still worth adding?

It no longer earns rich results for most sites, but it is harmless, valid markup that makes the question-and-answer structure of your page explicit. If you are short on time, prioritise markup types that still produce rich results for you, such as Product, Recipe or Event.

How many questions can I add?

There is no fixed limit. Mark up the questions that are actually visible on the page, in the same order.

Can I use links in the answers?

Yes. Answer text may contain simple HTML, including links, lists, paragraphs and bold or italic text.

Where should I paste the code?

Anywhere in the page HTML: the head or the body both work. Google reads JSON-LD wherever it appears.