JSON-LD FAQ Schema Builder

Build FAQ structured data to earn rich results in Google Search

Turn up to 20 question and answer pairs into a valid FAQPage JSON-LD block ready to paste into any page. Correctly escapes HTML and outputs a script tag that passes Google's Rich Results Test.

What is FAQPage structured data?

FAQPage is a schema.org type that marks up a list of questions and answers on a page. Google can use it to show an expandable FAQ directly under your search result, taking up more space on the results page.

FAQ structured data without the boilerplate

The JSON-LD FAQ Schema Builder converts your question and answer pairs into a valid schema.org/FAQPage block. When Google chooses to display it, your result can expand into a list of questions right in the search results, which both answers users instantly and pushes competitors further down the page.

How it works

The tool builds a single root object with @type set to FAQPage and a mainEntity array. Each non-empty pair becomes a Question object whose name holds the question text and whose acceptedAnswer is an Answer object holding the answer in its text property. Empty rows are skipped. Every value is serialised with JSON.stringify, which escapes quotes, backslashes and newlines so the output is always syntactically valid JSON even when your answers contain punctuation or markup.

Tips and example

Keep questions phrased the way people actually search, and keep answers self-contained — each answer should make sense on its own. Do not mark up promotional or ad content as an FAQ; Google reserves the feature for genuine questions. A single pair compiles to the shape below.

{
  "@type": "Question",
  "name": "Do you offer refunds?",
  "acceptedAnswer": { "@type": "Answer", "text": "Yes, within 30 days." }
}