Skip to content
Free web tool

FAQ schema generator

This FAQ schema generator converts a simple list of questions and answers into FAQPage structured data. Site owners and SEO writers use it to describe an on-page FAQ to search engines without writing JSON by hand.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

164 characters

Result

<!-- FAQPage structured data, 2 questions. The questions and answers must also be visible on the page. Google shows FAQ rich results only for well-known, authoritative government and health sites, but the markup is still valid structured data. -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "How long does shipping take?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Most orders arrive in 3 to 5 business days."
      }
    },
    {
      "@type": "Question",
      "name": "Can I return a mug?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. Return unused items within 30 days for a full refund."
      }
    }
  ]
}
</script>

The short answer

FAQ structured data is JSON-LD with a FAQPage type whose mainEntity lists Question items, each with an acceptedAnswer of type Answer. The questions and answers must also be visible on the page. Google shows FAQ rich results only for well-known government and health sites, but the markup is still valid schema.org data.

FormulaFAQPage > mainEntity [ Question { name, acceptedAnswer: Answer { text } } ]

Worked exampleThe two sample pairs, "How long does shipping take?" and "Can I return a mug?", become one FAQPage with two Question entries inside a single application/ld+json script.

Example

Input
Q: How long does shipping take?
A: Most orders arrive in 3 to 5 business days.

Q: Can I return a mug?
A: Yes. Return unused items within 30 days for a full refund.
Result
<!-- FAQPage structured data, 2 questions. The questions and answers must also be visible on the page. Google shows FAQ rich results only for well-known, authoritative government and health sites, but the markup is still valid structured data. -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "How long does shipping take?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Most orders arrive in 3 to 5 business days."
      }
    },
    {
      "@type": "Question",
      "name": "Can I return a mug?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. Return unused items within 30 days for a full refund."
      }
    }
  ]
}
</script>

How to use the faq schema generator

  1. Type each pair in the Questions and answers box as a line starting with Q: and a line starting with A:, with a blank line between pairs.
  2. The result updates as you type; Run also works.
  3. Use Copy result and paste the script tag into the page that shows the same questions and answers.

How it works

The output is a script tag of type application/ld+json holding a FAQPage with one Question and acceptedAnswer for each pair.

Text is JSON-escaped, and <, > and & are written as Unicode escapes so an answer cannot end the script tag early.

An answer may span several lines; the lines are joined with spaces. Up to 100 pairs are accepted.

Google shows FAQ rich results only for well-known, authoritative government and health websites, but the markup is still valid structured data.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

Will FAQ schema give my site rich results in Google?

Probably not. Since 2023 Google shows FAQ rich results only for well-known, authoritative government and health sites. The markup is still valid structured data.

Do the questions have to be visible on the page?

Yes. Structured data should describe content that visitors can see on the page.

Where do I put the JSON-LD script?

Anywhere in the page's HTML. Many sites place it in the head or at the end of the body.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools