Guide
Marking up an FAQ section as FAQPage structured data
Many pages end with a list of frequently asked questions. Marking that list up as structured data tells search engines which text is a question and which is its answer. This generator turns plain text into the JSON-LD for the FAQPage type, so that you can paste it into a page without writing brackets by hand.
How the text is read
Write each question on one line and put its answer on the lines directly under it. Leave one blank line between pairs. A question that begins with Q: or Q. has that label removed, so you can paste a list that uses it. The tool counts the pairs it finds and shows the count. A block with a question but no answer is ignored, and if nothing usable is found you see a message asking for at least one question with an answer under it.
What the markup contains
The output is an object of type FAQPage with a mainEntity list. Every entry is a Question with a name and an acceptedAnswer of type Answer holding the text. You get it twice: inside a script tag of type application/ld+json, ready to paste into the head or the body of the page, and as plain JSON for a template or a content management system that wraps the script tag for you.
The visibility rule
Structured data must match the page. Every question and answer you mark up has to be visible to visitors, in the same wording. Markup for content that is hidden, or that appears nowhere on the page, goes against Google’s guidelines and can lead to a manual action against structured data. The tool repeats this in a note under the result.
What to expect in search
Google reduced FAQ rich results in 2023 to a limited set of well-known, authoritative sites, mostly in government and health. For most pages, valid FAQ markup will not change how the listing looks. It is still harmless and machine-readable, and some other tools and assistants may read it. Treat it as tidy data, not as a way to win extra space on the results page.
A worked example
The sample FAQ has three pairs about running shoes: whether new shoes need breaking in, how often to replace them (roughly 500 to 800 km) and whether shoes can be returned after running (within 30 days). The result row says 3 questions. The JSON starts with the context and the FAQPage type, and its first question reads “Do I need to break in new running shoes?” with the answer about wearing them for a few short runs first. Change the second answer, and only that text value changes in the output.
Limits
The tool does not fetch your page, so it cannot compare the markup with what visitors see. It does not escape HTML for you inside answers: if you write a link, you write it as HTML. Very long answers are allowed, but search engines may not use them in full. Test the finished page with Google’s Rich Results Test or the Schema Markup Validator.
Related tools
- Schema Markup Generator writes article, product, event and other types.
- HowTo & Recipe Schema Builder marks up step-based pages.
- LocalBusiness Schema Generator covers business details.
- Heading Structure Extractor checks that the visible question headings form a clean outline.
Checked against the current version of the FAQ Schema Generator on .

