Skip to content
Schema Generator
Menu

Q&A Page schema generator

A page with one question and the answers users posted to it, as on a forum or support community.

Rich result availableQAPage · Q&A

Fields marked with an asterisk are required. Your input stays in this browser.

Required

Without these, Google won't use the markup.
Question (required)
Fill what applies. More complete markup gets richer results.
Accepted answer

A URL with a fragment, such as #answer-2.

Other answers

    Guide

    What Google does with QAPage markup

    Google can show the question with its top answers. Only for pages where users ask and answer one question; a page of questions the site wrote itself is an FAQ page instead.

    Google's q&a documentation

    Fields Google looks for

    PropertyStatusIn the form
    questionRequiredQuestion
    acceptedAnswerRecommendedAccepted answer
    suggestedAnswerRecommendedOther answers

    Example output

    This is what the builder produces from the example data. Paste it into the page's HTML, in the <head> or the body.

    {
      "@context": "https://schema.org",
      "@type": "QAPage",
      "mainEntity": {
        "@type": "Question",
        "name": "How do I add a line break in a chat message?",
        "text": "Enter sends the message. How do I start a new line instead?",
        "datePublished": "2026-03-01T09:30",
        "author": {
          "@type": "Person",
          "name": "Alex"
        },
        "answerCount": 2,
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Press Shift + Enter.",
          "url": "https://forum.example/q/42#answer-1",
          "upvoteCount": 12,
          "datePublished": "2026-03-01T09:42",
          "author": {
            "@type": "Person",
            "name": "Sam"
          }
        },
        "suggestedAnswer": [
          {
            "@type": "Answer",
            "text": "On mobile, the return key adds a new line; tap the arrow to send.",
            "url": "https://forum.example/q/42#answer-2",
            "upvoteCount": 3,
            "author": {
              "@type": "Person",
              "name": "Kim"
            }
          }
        ]
      }
    }