Schema Generator
News articles, blog posts, and editorial content.
Fields
JSON-LD Output
{
600">"@context": 600">"https://schema.org",
600">"@type": 600">"Article"
}HTML Script Tag
Validation
Added the markup? Check your whole site's schema and SEO.
DarnItSEO Audit scans your entire site and writes the fix instructions for every issue it finds. Included in every yearly plan.
Free JSON-LD Schema Markup Generator
Schema markup (structured data) tells Google and AI engines exactly what your page is about: an article, a product, an FAQ, a local business, an event or a recipe. Added correctly, it makes your pages eligible for rich results like star ratings, FAQ accordions, breadcrumbs and event listings, and it makes the facts on your page far easier for AI systems to extract, summarise and cite.
This generator produces clean, valid JSON-LD that you can copy straight into your page. There is no code knowledge required: pick a schema type, fill in the fields, and the tool builds the markup for you in real time. As you type, it flags required fields that are still empty and recommended fields that strengthen your eligibility, so you always know whether your markup is complete before you publish.
Supported types include Article, Product, FAQPage, LocalBusiness, Organization, Person, Event, HowTo, BreadcrumbList and Recipe, the schemas that drive the vast majority of rich results across the web. Everything runs in your browser, nothing is stored, and the output is free to use on any number of pages.
What is structured data and why does it matter?
Structured data is a standardised vocabulary, defined at Schema.org and supported jointly by Google, Microsoft, Yahoo and Yandex, that describes the meaning of your content in a machine-readable way. A normal web page tells a human "this is a $29 wireless mouse with 120 reviews". Structured data tells a machine the same thing in an unambiguous format: name, price, currency, availability, rating value and review count, each tagged with its exact role.
Google strongly recommends the JSON-LD format, which is what this generator produces. JSON-LD lives inside a single script tag and is kept completely separate from your visible HTML, so it never affects how your page looks or behaves. That separation makes it easy to add, easy to update, and easy to validate without touching your page layout.
The payoff is twofold. First, valid structured data makes you eligible for rich results: the enhanced search listings with stars, prices, FAQ dropdowns, recipe cards, event dates and breadcrumb trails that take up more space and earn more clicks. Second, and increasingly important, structured data feeds the AI systems behind Google AI Overviews, ChatGPT, Perplexity and other answer engines. When your facts are clearly labelled, those systems can quote your page accurately instead of guessing or skipping it.
Common schema types and when to use them
Article is for blog posts, news stories and editorial content; it captures the headline, author, publish date, image and publisher so your content can appear in news and Discover surfaces. Product is for any page selling a single item. It carries the name, price, currency, availability and aggregate rating that power price and star rich results.
FAQPage marks up a list of questions and answers and can produce expandable FAQ snippets directly in search. LocalBusiness describes a physical business with its address, phone number, opening hours and map coordinates, which supports local and map results. Organization and Person identify a company or an individual, including logos, contact points and linked social profiles via the sameAs property, a strong entity signal for both search and AI.
Event covers conferences, concerts and meetups with start and end times, venue and organiser. HowTo breaks a task into numbered steps. Recipe captures ingredients, prep and cook times, yield and ratings for recipe cards. BreadcrumbList describes the navigation trail to a page, which Google often displays in place of the raw URL. Pick the type that matches what the page actually is. Never mark a page up as something it is not.
How to add and validate your JSON-LD
Once the generator shows your finished markup, copy either the raw JSON-LD or the full HTML script tag. Paste the script tag into the head of your page (the body also works). If your site runs on WordPress, Webflow, Shopify or a similar platform, you can usually drop the script into a custom-code or header-injection field for the relevant template.
Before you rely on it, validate. Run the markup through Google's Rich Results Test to confirm your page is eligible for a specific rich result, and through the Schema.org Validator (formerly the Structured Data Testing Tool) to confirm the syntax and vocabulary are correct. Both tools accept either a live URL or a pasted code snippet, so you can check your markup even before the page is published.
The golden rule is that structured data must match what a visitor actually sees. If your markup claims a 4.8 rating, that rating must appear on the page. If it lists a price, that price must be real and current. Marking up content that is hidden, fabricated or inconsistent with the visible page is a policy violation that can trigger a manual action and remove all your rich results.
Common schema errors to avoid
The most frequent problems are missing required properties (for example a Product Offer with no price, or an Article with no headline), invalid value formats (dates that are not ISO 8601, or durations that are not ISO 8601 like PT30M), and broken or relative image and logo URLs where absolute https URLs are required. This generator highlights missing required and recommended fields as you go so you can catch most of these before you ever copy the code.
Other common mistakes include marking up content that is not visible on the page, using the wrong type for the content (tagging a category listing as a single Product, for instance), duplicating the same entity in multiple conflicting blocks, and forgetting the sameAs links that connect an Organization or Person to its official social and reference profiles. Keeping one clean, accurate block per entity per page is almost always better than stacking several overlapping ones.
After fixing errors, re-validate and then monitor. Google Search Console reports structured-data enhancements and warnings for your live pages, so it is the best place to confirm that your markup is being read correctly in production and to catch regressions if a template change quietly breaks it later.
Related DarnItSEO tools
This generator pairs well with the rest of the DarnItSEO toolkit. Use the JSON-LD validator workflow inside our schema analyzer to check existing markup that is already live on a page, and the FAQ schema generator pattern here to turn a support page into eligible FAQ rich results. If you write a lot of how-to or step-by-step content, the HowTo and Recipe builders save you from hand-writing nested step arrays.
For the bigger picture, run a full site audit to see which of your pages are missing structured data, then check the AI readiness and content quality reports to understand how your pages read to answer engines like AI Overviews, ChatGPT and Perplexity. Structured data is one signal among many. Combining clean markup with strong on-page SEO and genuinely helpful content is what consistently earns rich results and AI citations.
How it works
- 1Pick a schema type
Choose Article, Product, FAQ, LocalBusiness, Event, Recipe, Organization, Person, HowTo or Breadcrumb.
- 2Fill in the details
Enter your page's information in the form. Required and recommended fields are flagged as you type.
- 3Copy the JSON-LD
Copy the raw JSON-LD or the full HTML script tag with one click.
- 4Add and validate
Paste the script into your page's head, then test it in Google's Rich Results Test and the Schema.org Validator.
Related free tools and guides
- Schema Markup Tester
Check the structured data already live on any URL.
- JSON-LD Validator
Paste JSON-LD to catch syntax and property errors.
- Schema Auto-Detect
See which schema types suit a page.
- Schema markup guide
How structured data works and which types to use.
- AEO optimization guide
How schema helps AI answer engines cite you.
- SEO checklist
Where structured data fits in a full SEO review.
- LLM optimization checklist
Structured data and entities for AI models.
Frequently asked questions
What is schema markup?+
Schema markup is structured data in JSON-LD format that describes your page's content to search engines and AI, unlocking rich results and clearer machine understanding of your facts.
Which schema types can I generate?+
Ten common types: Article, Product, FAQPage, LocalBusiness, Organization, Person, Event, HowTo, BreadcrumbList and Recipe. These cover the majority of rich results across the web.
What is JSON-LD and why is it preferred?+
JSON-LD is a JavaScript-based format that places your structured data inside a single script tag, separate from your visible HTML. Google recommends it because it is easy to add, update and validate without changing how your page looks.
Where do I add the JSON-LD?+
Paste it inside a script tag of type application/ld+json in your page's head, or in the body. On most platforms you can drop it into a custom-code or header-injection field for the right template.
How do I validate my structured data?+
Run it through Google's Rich Results Test to check eligibility for a specific rich result, and through the Schema.org Validator to confirm the syntax. Both accept a live URL or a pasted snippet, and Google Search Console reports issues for your live pages.
What are the most common schema errors?+
Missing required properties, dates or durations that are not in ISO 8601 format, broken or relative image URLs, marking up content that is not visible on the page, and using the wrong type for the content. This tool flags missing required and recommended fields as you build.
Does schema guarantee rich results?+
No. Schema makes you eligible, but Google decides when to show rich results. Valid, accurate markup that matches your visible content gives you the best chance, while inaccurate or hidden markup can be penalised.
Does structured data help with AI search?+
Yes. Clearly labelled facts are easier for AI Overviews, ChatGPT, Perplexity and similar engines to extract and cite accurately, which improves your visibility in AI-generated answers.
Is the markup safe to copy onto multiple pages?+
Yes, but customise each block to its page. The markup must always reflect the specific content that visitors see on that exact page, so reuse the structure, not the same details everywhere.
Is it free?+
Yes, completely free with no signup required. Everything runs in your browser and nothing is stored.