Build JSON-LD FAQPage markup for Google rich results — add Q&A pairs, preview the SERP accordion, validate, and copy the code.
The FAQ Schema Generator creates FAQPage structured data in JSON-LD format — the markup Google uses to display expandable question-and-answer accordion blocks directly in search results (called "rich results"). When your page includes this markup and Google indexes it, your FAQ items can appear as expanded snippets beneath your regular listing, occupying more SERP real estate and improving click-through rate.
This tool runs entirely in your browser. No data is sent to any server. The generated code is standards-compliant with Schema.org FAQPage and the Google Search rich results specification.
You can also import existing JSON-LD to edit it — useful when updating a live page's FAQ section.
<script type="application/ld+json"> block and paste it into your page's <head> section.The generator builds a valid FAQPage object following the Schema.org specification:
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [...] }{ "@type": "Question", "name": "...", "acceptedAnswer": { "@type": "Answer", "text": "..." } }<script> tags in answers.The import parser accepts raw FAQPage JSON or a @graph array containing a FAQPage node. It maps mainEntity[n].name → question and mainEntity[n].acceptedAnswer.text → answer.
The Copy JSON button copies the raw object (for embedding in existing scripts). The Copy HTML button wraps it in <script type="application/ld+json">…</script> tags ready to drop into your <head>.