Skip to content

Guide

FAQ schema example: copy-paste JSON-LD code for service pages, products and blogs

By · Updated

Short answer

A FAQ schema example is a block of JSON-LD code with the type FAQPage. Inside “mainEntity” you list each question as a Question with a “name”, and its answer as an acceptedAnswer with a “text”. You paste the block into the page’s HTML, and the same questions and answers must also be visible on that page.

Key points

  • FAQ schema uses the schema.org type FAQPage, written as JSON-LD inside a <script type="application/ld+json"> tag.
  • Each item needs three things: the Question, its name (the question text) and an acceptedAnswer with the answer text.
  • The questions and answers in the code must match text that visitors can read on the same page.
  • Since August 2023 Google shows FAQ rich results mainly for well-known government and health websites, but the code still labels your answers clearly for search engines and AI assistants.
  • Test the code with Google’s Rich Results Test or our free schema checker before you publish it.

What does a basic FAQ schema example look like?

Below is a complete FAQ schema example for a service page, here an AC repair business. It has two questions. Copy it, replace the questions and answers with your own, and keep the structure exactly as it is: the commas, brackets and quote marks all matter.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Do you offer same-day AC repair in Pune?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. Book before 1 pm and a technician visits the same day anywhere in Pune city. Bookings after 1 pm are visited the next morning."
      }
    },
    {
      "@type": "Question",
      "name": "How much does an AC service cost?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A standard split AC service costs ₹599. Gas refilling and spare parts are quoted on site before any work starts."
      }
    }
  ]
}
</script>

What does each part of the code mean?

Only a few fields are needed. Everything else in the example is the wrapper that tells search engines what kind of data this is.

FieldWhat it holdsRequired?
@contextAlways “https://schema.org”Yes
@type: FAQPageSays the page is a list of questions and answersYes
mainEntityThe list of questions, in square bracketsYes
Question → nameThe full question, word for word as it appears on the pageYes
acceptedAnswer → textThe full answer, word for word as it appears on the pageYes

FAQ schema example for a product page

On a product page, use questions about that product: care, sizing, delivery and returns. Don’t copy the same FAQ block onto every product; each page should answer questions about its own item.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Is this cotton kurta machine washable?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. Wash it in cold water on a gentle cycle and dry it in the shade. Do not bleach."
      }
    },
    {
      "@type": "Question",
      "name": "What is your return policy for this product?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "You can return it unused, with tags, within 7 days of delivery for a full refund."
      }
    }
  ]
}
</script>

FAQ schema example for a blog post

A blog post or guide can carry FAQ schema for the FAQ section at its end. One question is fine. Keep the answers short and factual, the way you would answer a customer.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What is llms.txt?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "llms.txt is a short text file at the root of a website that tells AI tools what the site is about and which pages to read first."
      }
    }
  ]
}
</script>

How do you add FAQ schema to your website?

Put the code anywhere in the page’s HTML, usually just before the closing </body> tag or inside the <head>. The page must also show the same questions and answers as normal text.

  1. Write the questions and answers on the page first, as visible text.
  2. Build the code: copy an example above, or type your questions into our free FAQ schema generator and copy what it makes.
  3. WordPress: add a “Custom HTML” block on that page and paste the code. Shopify: paste it into the page or product template. Next.js or React: render it in a <script type="application/ld+json"> tag.
  4. Test the page with our free schema checker or Google’s Rich Results Test, and fix any error it lists.

What are the most common FAQ schema mistakes?

Most broken FAQ code comes down to a handful of mistakes:

  • Questions in the code that don’t appear on the page. Google’s guidelines say the markup must match visible content.
  • Curly quotes (“ ”) instead of straight quotes (") around field names, often from copying through a word processor. JSON needs straight quotes.
  • A missing or extra comma between questions, which makes the whole block invalid.
  • The same FAQ block on every page of the site, or FAQ code used for adverts rather than real questions.
  • Answers that are out of date after prices, hours or service areas change.

Frequently asked questions

Where do I put FAQ schema code?

Anywhere in the page’s HTML, usually in the <head> or just before the closing </body> tag. On WordPress, a Custom HTML block on the page works. The same questions and answers must also be visible on that page.

Does FAQ schema still work in 2026?

The code is still valid and still read by search engines and AI assistants. Since August 2023, Google shows the drop-down FAQ rich result mainly for well-known government and health websites, so most sites should not expect that feature.

How many questions should a FAQ schema have?

As many as the page really answers, usually between 3 and 10. One is allowed. Quality matters more than number.

Is FAQ schema the same as FAQPage schema?

Yes. “FAQ schema” is the everyday name for the schema.org type FAQPage, usually written in JSON-LD.

Sources

Make your FAQ schema free

See your SEO, AEO and GEO scores.

Run the free website check — no sign-up — and get your top fixes in plain words.

7-day free trial. We can't promise a Google position — we measure honestly.