Turning a list of questions into FAQPage markup
This tool builds valid FAQPage structured data in JSON-LD format from a list of questions and answers. You type each question, paste its answer, and the generator assembles a spec-compliant script block with the correct nesting: an FAQPage wrapping a mainEntity array of Question objects, each holding a single acceptedAnswer. That nesting is exactly where hand-written FAQ markup goes wrong, so letting the generator handle the structure removes the most common source of validation errors. The result is markup that describes a genuine list of frequently asked questions and their official answers in a way search engines and AI systems can read directly.
It is important to understand what FAQPage markup is and is not for today. FAQPage describes a page that the publisher controls, where the site itself provides both the questions and the answers. It is not for question-and-answer pages where users submit answers; that is QAPage, a separate type. The distinction matters because Google enforces it, and marking a community forum thread as FAQPage, or marking your official help content as QAPage, leads to the markup being ignored. This generator produces FAQPage specifically, for publisher-authored questions and answers.
Question, acceptedAnswer, text: the only structure that validates
The structure is strict and the required pieces are few. The top-level object is an FAQPage with a mainEntity property that holds an array. Every item in that array must be a Question with a name, which is the question text, and an acceptedAnswer that is an Answer object with a text property holding the answer. Both the question name and the answer text are required; a Question with no acceptedAnswer, or an Answer with no text, is invalid and will be rejected. There is no concept of multiple competing answers in FAQPage as Google uses it, so each Question gets exactly one acceptedAnswer.
The answer text supports a limited set of inline HTML, so links, bold, lists, and basic formatting inside an answer are allowed and rendered, but the content still has to match what the visitor sees on the page. The single most important non-obvious rule is completeness and visibility: the full question and the full answer must both appear in the visible content of the page, word for word. FAQ markup is not a place to add hidden content that is not shown to users. The generator outputs the text you provide, so the responsibility to mirror the visible page sits with the input you give it.
There is no hard cap on how many questions an FAQPage can hold, but quality beats quantity. A focused set of five to ten genuinely common questions, each with a tight, complete answer, is far stronger than thirty padded or overlapping entries. Each Question name should be phrased the way a real person would ask it, in natural language rather than as a keyword fragment, and each answer should fully resolve that single question without bleeding into the next. Because the markup is only as trustworthy as its match to the page, the discipline of keeping the list tight also makes it far easier to keep the visible content and the structured data perfectly in sync over time as the page is edited.
How FAQ schema earns rich results, and how that changed
FAQ rich results were once among the most visible and most clicked enhancements in search, where a listing could expand into a stack of question rows that dominated the result. Google has since sharply restricted FAQ rich results, limiting their display to well-known authoritative government and health sites for most queries. That means for the typical commercial or content site, FAQPage markup no longer reliably produces the expandable FAQ snippet it used to. Anyone telling you to add FAQ schema purely to win that snippet is working from outdated advice.
The markup is still worth adding, but for different reasons. FAQPage data gives search engines and AI systems a clean, machine-readable map of the exact questions your page answers and the answers it provides. This is highly valuable for AI Overviews, chatbots, and voice assistants, which prefer content already structured as a direct question paired with a direct answer. A well-marked FAQ block is essentially pre-chunked for retrieval: each Question and acceptedAnswer is a self-contained unit a model can lift and attribute. In an AI-first search landscape, FAQ markup has shifted from a rich-result play to a citability and answer-engine play.
Checking each question against the visible page
The output is a single script block with an at-type of FAQPage and a mainEntity array. Walk down the array and confirm each Question name reads like a real question a person would ask, and each acceptedAnswer text actually answers it concisely. The order in the array should match the order on the page. If you provided ten questions, you should see ten Question objects, no more and no fewer, because a mismatch between the count in the markup and the count visible on the page is a red flag Google can act on. Read each answer and make sure it is complete on its own rather than trailing off into a link to read more.
Keep answers focused. A good FAQ answer is a few sentences that fully resolve the question, written so that it makes sense if lifted out of context. Bloated answers that wander into unrelated marketing copy are weaker for AI extraction and harder for users to scan. When you copy the block out, place it on the same page where those questions and answers are visibly displayed, not on a different page, and not duplicated across many pages with the same generic questions.
A complete two-question block looks like this. Note the escaped quotes around the link inside the second answer; an unescaped quote there is the most common reason pasted FAQ markup breaks.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "How long does standard shipping take?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Standard shipping takes 3 to 5 business days within the continental US. Orders placed before 2pm ET ship the same day."
}
},
{
"@type": "Question",
"name": "Can I return an item I have already worn?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes, within 30 days, as long as the item is clean and undamaged. Start a return from the <a href="https://www.example.com/returns">returns page</a>."
}
}
]
}
</script>Placing FAQ markup on WordPress, Shopify or via GTM
WordPress
The Yoast FAQ block and the Rank Math FAQ block in the block editor both show the questions on the page and output matching FAQPage markup automatically, which keeps the two in sync. Use them instead of pasting code when you can. For a custom layout, paste the generated block with a header plugin such as WPCode, limited to that one page.
Shopify
For an FAQ page, create a page template (for example page.faq.liquid) or a Custom Liquid section on that page and paste the script there, so it only prints where the questions are visible. For product FAQs, add it in the product template inside a condition such as {% if product.metafields.custom.faq != blank %} so products without FAQs do not carry empty markup.
Google Tag Manager
Add a Custom HTML tag with the script and fire it only on the page that shows those questions. Google can read JSON-LD that GTM injects once it renders the page, but markup in the server HTML is read more reliably, and other AI crawlers often do not run JavaScript at all, which matters here because answer engines are now the main audience for FAQ markup.
Hidden answers, ads and other FAQ markup violations
The most common mistake is marking up questions and answers that are not visibly present on the page. Google requires that every question and its full answer appear in the rendered content for users; FAQ markup added to a page that shows no FAQ is a clear violation. The second common mistake is using FAQPage for promotional or advertising content disguised as questions, such as a Question whose answer is really a sales pitch with a coupon code. Google explicitly disallows FAQ markup used for advertising, and it can lead to the markup being ignored or a manual action.
Other frequent errors include using FAQPage when the page is really a single question with user-submitted answers, which should be QAPage instead, and duplicating the exact same FAQ block across dozens of pages, which makes the questions look boilerplate rather than genuinely relevant to each page. Splitting one logical answer across multiple acceptedAnswer entries is invalid, since each Question takes exactly one acceptedAnswer. Finally, leaving an answer essentially empty, or stuffing keywords into the question name so it no longer reads like a natural question, both weaken the markup and the user experience.
Official answers, user answers or steps? FAQPage, QAPage, HowTo
FAQPage, QAPage, and HowTo are the three question-shaped schema types people most often mix up. FAQPage is for a list of questions where the site provides the official answers, such as a product FAQ or a help-center article. QAPage is for a page built around a single user-asked question with one or more user-provided answers, like a forum thread or a community help post; it allows a suggested answer and multiple competing answers, which FAQPage does not. HowTo is for step-by-step instructions to complete a task, which is a sequence of steps rather than a set of independent questions. Choosing the wrong one is a classic reason markup is silently ignored.
FAQPage pairs naturally with other markup on the same URL. A product page might carry Product markup plus an FAQPage for common buyer questions, and a guide might carry Article plus FAQPage for the questions it addresses. Keep each type in its own script tag. Resist the temptation to convert every heading on a page into an FAQ entry; only genuine questions with genuine answers belong in FAQPage, and forcing non-questions into the format produces markup that reads as manipulative to both Google and AI systems. For community threads, our QAPage Schema Generator builds the right type.
Validating the block and setting expectations
Paste the block into the page that visibly contains those questions and answers, then run the URL through Google's Rich Results Test. The test will confirm the FAQPage markup is valid and well-formed, though remember it may note that the FAQ rich result is restricted, which is expected given Google's current policy. Follow with the Schema Markup Validator for a pure syntax check, or paste the block into our FAQ Schema Validator. Then verify the questions and answers in the markup exactly match the ones a visitor reads on the page, since that match is what keeps the markup trustworthy and useful to answer engines.
Set expectations accordingly. For most sites, adding FAQPage markup today is about making your content machine-readable for AI Overviews, voice assistants, and chatbots rather than chasing the old expandable snippet. Write tight, self-contained answers, keep them genuinely helpful, mirror them exactly in the visible page, and avoid using the format for ads or filler. Treat the FAQ block as a set of citable answer units, and it will keep earning value in an AI search world even though the classic FAQ rich result has largely faded for the average site. Our schema markup guide covers which other types are still worth adding alongside it.