Schema Markup Generator (JSON-LD)
Generate valid structured data for 9 schema types — FAQ, Article, Product, How-To, Event, Local Business, Breadcrumb, Video, and Person. Copy and paste into your page's head.
Last updated August 13, 2026 · Reviewed by the Texterfly SEO Tools team
Pro Tip
Questions and answers must be visible on the page — Google will not show FAQ rich results for hidden or dynamically-loaded content.
Want the Full SEO Template System?
The Complete SEO Toolkit — 11 schema templates, a technical SEO playbook, and a priority-scored audit workbook. One-time download.
Support Our Free Tools
If you find this calculator helpful, please consider supporting our work. Your contribution helps us build and maintain these free tools for everyone.
Buy me a coffeeWhat Is Schema Markup?
Schema markup (also called structured data) is code you add to a webpage to help search engines understand its content — not just the words, but their meaning. Google uses it to display rich results: FAQ dropdowns, star ratings, event dates, recipe cards, and product prices directly in search results.
This generator outputs clean JSON-LD — Google's recommended format — which you paste into your page's <head> without touching any visible HTML.
Higher Click-Through Rates
Rich results for types like Product, Review, and Event are larger and more visual, often improving CTR versus a plain blue link.
More SERP Real Estate
Star ratings, prices, and event dates displayed directly in search results help your listing stand out from competitors.
Stronger Entity Understanding
Schema helps Google connect your content to real-world entities, improving topical authority — even for types that don't produce a visual rich result.
All 9 Schema Types — When to Use Each
FAQ Page
Marks up Q&A content for search engines and AI answer engines to parse. No longer produces the expandable dropdown in Google's SERP (retired May 2026), but still useful for content structure and AI-generated answers.
Article
Marks up blog posts, news articles, and editorial content. Enables Top Stories carousel placement and displays author and publish date in results.
Local Business
Displays business name, address, phone, hours, and price range in Knowledge Panels. Essential for any business with a physical location.
How-To
Marks up step-by-step instructions for search engines and AI answer engines to parse. No longer renders as an in-SERP rich result (Google deprecated How-To rich results in 2023), but still useful for content structure.
Product
Shows price, availability, and star ratings directly in search results and Google Shopping. Critical for e-commerce and product review pages.
Event
Displays event name, date, location, and attendance mode in search results. Includes virtual/hybrid event support.
Person
Establishes author entity connections. Strengthens E-E-A-T signals by linking content to a verified person with social profiles.
Breadcrumb
Replaces the raw URL with a readable path in search results. Improves CTR and helps users understand page hierarchy.
Video
Enables video thumbnails, duration, and upload date in search results. Makes video content significantly more visible in Google Video.
How to Use This Schema Generator
- 1
Select a schema type
Click one of the 9 type buttons. The form updates instantly to show the relevant fields.
- 2
Fill in the properties
Complete the form fields. The JSON-LD output updates live in the code panel on the right as you type.
- 3
Copy the generated JSON-LD
Click Copy when done. The full script block is copied to your clipboard — ready to paste.
- 4
Paste into your page
Add the script block inside the <head> of your page. In Next.js, use dangerouslySetInnerHTML in your layout. In WordPress, use RankMath, Yoast, or a header injection plugin.
- 5
Validate with Google
Click "Test with Google" to open the Rich Results Test. Confirm your page is eligible for rich results before publishing.
Where to Add JSON-LD in Different Platforms
Next.js
// layout.tsx or page.tsx
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>WordPress
// functions.php
add_action('wp_head', function() {
echo '<script type="application/ld+json">';
echo json_encode($schema);
echo '</script>';
});Plain HTML
<!-- Before </head> -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
...
}
</script>Complete Your Technical SEO Setup
Schema markup works best alongside these other on-page essentials.
Frequently Asked Questions
- What is schema markup?
- Schema markup (structured data) is code added to a webpage that helps search engines understand the content's meaning — not just its words. Google uses it to display rich results like star ratings, event dates, and product prices directly in search results, and to help AI answer engines parse page content accurately.
- Why does Google recommend JSON-LD?
- JSON-LD is injected as a single block of code in the <head> or <body> without touching your visible HTML. This makes it far easier to implement, update, and validate than older formats like Microdata or RDFa which require wrapping individual HTML elements.
- Where do I paste the generated code?
- Paste the <script type="application/ld+json"> block inside the <head> section of the specific page it applies to. In Next.js, use dangerouslySetInnerHTML inside a <script> tag in your layout or page component. In WordPress, use RankMath, Yoast, or paste via a header injection plugin.
- Does schema markup guarantee rich snippets?
- No. Valid schema makes your page eligible for rich results, but Google decides whether to display them based on query relevance, content quality, and user context. Correct implementation is the required first step — pages without schema are never eligible.
- What is the most important schema type for my site?
- It depends on your content. Blogs: Article + FAQPage. Local businesses: LocalBusiness. E-commerce: Product. Tutorial sites: HowTo. Any site benefits from BreadcrumbList. If unsure, start with FAQPage — it's one of the fastest ways to win more SERP real estate.
- Can I use multiple schema types on one page?
- Yes. Use a @graph array to combine multiple schema types on one page. For example, a product page might include Product, BreadcrumbList, and FAQPage schema in a single JSON-LD block.
- How do I validate my schema markup?
- Use the Google Rich Results Test (search.google.com/test/rich-results) to check rich result eligibility. For broader validation, use the Schema Markup Validator at validator.schema.org.
- Will adding schema improve my rankings?
- Schema is not a direct ranking factor, but it improves click-through rates by making your result more visually prominent. Higher CTR is a behavioural signal Google uses — and richer results drive more qualified traffic, both indirectly improving rankings over time.
Explore All Tools
134 free tools — no signup required
All 134 tools are free · No signup · No ads
