Skip to content

FAQ schema generator. Q+A in JSON-LD.

Add Q+A pairs in the left panel; the right panel renders FAQPage JSON-LD live with inline validation. Pure browser code, no fetch, no log. Note: as of August 2023, Google restricts FAQ rich results to gov/health authority sites only, schema still helps AI search and content extraction.

Q+A pairs:
JSON-LD output · live

              
    policy

    Google restricts FAQ rich results to gov / well-known authoritative health sites since Aug 2023. The schema still helps Google AIO + Perplexity + ChatGPT cite passages, so ship it, just don't expect the SERP rich result.

    Sources used by this generator

    Privacy: form runs in-browser only.

    § · written guide

    How to use the FAQ Schema Generator

    This generator turns a list of questions and answers into a FAQPage block in JSON-LD, the structured data format search engines read. You edit the pairs on the left, and the right panel rebuilds the code and runs a short set of checks on every keystroke. It is for anyone adding FAQ markup to a page that already shows those questions and answers.

    Step by step

    1. Clear out the sample pairs

      The page opens with three sample questions about a Shopify Plus project so you can see the output. Press the cross at the end of a question row to remove it, or simply type over the text.

    2. Add your questions

      Press + Add Q+A for each new pair. Type the question in the Question field and the answer in the box below it. The answer box takes plain text or simple HTML, and the rows are numbered Q1, Q2 and so on.

    3. Watch the checks

      The JSON-LD output panel shows a one line summary above the code and a list of checks below the buttons. Fix anything marked with a red cross before you copy.

    4. Copy the code

      The first button copies the JSON wrapped in a script tag of type application/ld+json, ready to paste into your page. Copy JSON only copies the object without the tag, for a CMS field or a tag manager that adds the tag for you. Both buttons do nothing until at least one pair has a question and an answer.

    5. Paste it on the same page as the visible FAQ

      Add the code to the page where these exact questions and answers are shown to visitors, then test the page in Google's Rich Results Test or the Schema Markup Validator.

    Reading the checks

    • With the three sample pairs the summary reads 1 warning and 4 pass. That one warning, Visible-mirror policy, is always shown as a reminder, so a clean result is 1 warning with no fails.
    • No duplicate Question.name fails when two questions have exactly the same text.
    • Every Q has an acceptedAnswer fails when a question has no answer. That pair is left out of the code until you fill it in.
    • Question.name ≤ 220 chars is a warning, not a fail, for questions longer than 220 characters.

    Tips and common mistakes

    • Copy each question and answer from the page itself so the markup matches what visitors see, word for word.
    • A pair with an answer but no question is dropped from the code without a warning, so check the count in the first passing line.
    • The page notes that since August 2023 Google shows FAQ rich results mainly for government and health sites, so do not expect the expandable result on a commercial page.
    • Everything resets when you reload the page. Copy your code before you leave.

    Privacy and limits

    The JSON-LD is built by a script in your browser. Your questions and answers are not sent anywhere and are not saved, so a reload brings back the sample pairs. Copying uses your browser's clipboard.

    Back to the tool

    § 02 · FAQ rich result restriction

    FAQ schema after August 2023.

    Google announced in August 2023 that FAQ rich results are restricted to "well-known authoritative" gov and health-information sites. Commercial sites lost the visible expandable rich result on SERPs.

    Should you still ship FAQ schema? Yes, for three reasons. First, Google still ingests the data even when it doesn't render the rich result; it feeds AI Overviews and the search-Q+A extraction layer. Second, AI engines (ChatGPT, Perplexity, Claude) preferentially cite content with structured Q+A markup, Ahrefs Dec 2025 data shows FAQ-schemed pages get ~30% more citations than identical content without schema. Third, FAQ schema costs almost nothing to add; the upside is asymmetric.

    Visible-mirror policy is non-negotiable: every Question.name in the JSON-LD must match a visible heading or summary text on the page, and every acceptedAnswer.text must match the visible answer body. Mismatches violate Google's structured-data policy and risk a manual action.

    How many Q+A pairs? Match what's visible. Most service / product pages run 5-8. Comparison and pricing pages run 10-15. Long-form journal posts can run 20+ if the Q+A list is the page's main structure. The JSON-LD has no hard cap.

    § 03 · questions

    Six questions users ask.

    Will FAQ schema get me a rich result?

    Maybe. As of August 2023, Google restricts FAQ rich results to government and well-known authoritative health sites. Most commercial FAQ schema gets ingested but no longer renders the expandable rich result on SERPs. The data still helps with AI Overviews and Q+A passage extraction in ChatGPT and Perplexity, so the schema is still worth shipping.

    How many Q+A pairs should I include?

    Match what's actually visible on the page. The schema must mirror the rendered DOM 1:1. Most pages have 5-8 Q+A pairs; more is fine if they're all visible.

    Can I include HTML in the answer?

    Yes. The acceptedAnswer.text field accepts HTML. Keep it readable; Google parses the text content for indexing but the visible rich result strips most formatting.

    Why does Question.name need to match the visible heading?

    Google's verifier compares the JSON-LD Question.name to the visible question heading on the page. Mismatch (typo, abbreviation, casing diff) = the question gets dropped from the rich-result eligibility pool.

    Can I have an empty answer?

    No. Every Question must have a non-empty acceptedAnswer.text or the schema fails validation. The generator flags empty answers in red and refuses to include them in the output.

    Does this tool log my Q+A?

    No. The form runs entirely in JavaScript on your device. Nothing is sent to Digital Heroes servers.

    Published · Last updated .

    Priya sent you a message Online now

    Talk to a Developer Now

    Share your name and email to reply.

    Reply