Home / Free tools / FAQPage JSON-LD generator
FAQPage schema (JSON-LD) generator
Write questions and answers as plain text and get a valid FAQPage block. The page also explains what changed for FAQ rich results, so you set expectations correctly.
How to use it
- Write Q and A lines. Start each question with Q: and each answer with A:. Answers can continue over several lines.
- Review the warnings. Duplicates, empty answers and HTML in answers are flagged.
- Copy the block. Paste it into the page that visibly shows the same questions and answers.
- Validate. Test with the JSON-LD validator here, then with a search engine rich results test.
What FAQPage markup is for in 2026
In 2023 Google limited the expandable FAQ rich result to well-known government and health sites, so most businesses will not see accordions under their listing any more. The markup remains valid schema.org and is still a clean, machine-readable statement of questions and answers, which is useful to any parser, but do not promise yourself a visual change in search results.
Write the answers for people first
The rule that has not changed: the questions and answers in the markup must match text visitors can read on the page. Hidden FAQ markup, or markup on a page whose real content is different, is spam. Write answers that stand alone in two to four sentences, put the direct answer first and add the condition after. Answers that begin with "It depends" and never resolve are poor for readers and for any system that quotes them.
Choosing which questions to include
Use real questions from support email and search queries rather than invented ones. Each should be answered nowhere else on the page more clearly. Keep the list to what the page is about: a returns FAQ on a returns page, not twenty unrelated questions.
Worked example
This is what the tool produces for the sample input, so you can see the result without running it.
Input
Q: Is the checker free? A: Yes, it is free and needs no account. Q: Is the checker free? A: Duplicate on purpose. Q: What does it store? A: <b>Nothing</b> about your input. Q: Short answer A: Yes.
Result
4 question(s) included.
- Question 2 repeats question 1: "Is the checker free?"
- Answer 3 contains HTML; only a limited set of tags is accepted. Plain text is safest.
- Answer 4 is very short (4 characters).
- Question 4 does not end with "?".
Output
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "Is the checker free?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes, it is free and needs no account."
}
},
{
"@type": "Question",
"name": "Is the checker free?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Duplicate on purpose."
}
},
{
"@type": "Question",
"name": "What does it store?",
"acceptedAnswer": {
"@type": "Answer",
"text": "<b>Nothing<\/b> about your input."
}
},
{
"@type": "Question",
"name": "Short answer",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes."
}
}
]
}
</script>Frequently asked questions
Will this give me FAQ rich results?
Probably not unless you are a government or health site, because Google restricted that display in 2023. The markup is still valid structured data.
Can answers contain links?
A limited set of HTML such as links is accepted, but plain text is safest and the tool flags HTML so you can decide.
How many questions should I include?
Only those genuinely answered on the page. Five to ten focused questions is typical.
Does the page need to show the FAQ?
Yes. Markup must reflect visible content.
More free tools
- Product JSON-LD generator: Generate valid schema.org Product JSON-LD with an Offer: name, image, SKU, brand, price, currency and availability. No fake review fields, by design.
- JSON-LD validator: Paste JSON-LD or a whole HTML page. Checks syntax and the commonly required properties for Product, Offer, Article, FAQPage, Organization and more.
- Title and meta description length checker: Check title and meta description length in characters and estimated pixels, with a search result preview and plain-language fixes. Free and private.