How to use this schema generator
Pick the type that matches your page, then fill the fields with the same facts the page itself shows — that correspondence is not optional, it is the rule that keeps schema honest and penalty-free. As you type, the generator assembles the JSON-LD block and immediately re-reads its own output: the status line above the code box confirms the JSON parses and names the type it found. That self-check catches the classic hand-written schema failures — a missing comma, an unescaped quote in a description — before they reach your site. Copy the whole block, script tags included, into the page's head or just before the closing body tag, then run the live page through Google's Rich Results Test as a final confirmation.
The form changes with the type. FAQ asks for question-and-answer pairs; Product asks for price, currency and availability and formats them as an Offer; Local Business builds the nested PostalAddress block that people most often get wrong by hand. Empty optional fields are simply left out of the output rather than emitted blank.
Example: FAQ schema
With the sample bakery questions pre-filled on this page, the generator produces:
That output is produced by this tool's own code, and the generator verified it parses as valid JSON with "@type":"FAQPage" before showing it — the same check described in the guide above. (The second and third questions are trimmed here for space; the real output includes all three.)
What schema can and cannot do
Structured data is a labelling system. It tells search engines, in a format they cannot misread, "this page is a recipe with these ingredients" or "this business is at this address with these hours". In return, labelled pages become eligible for richer search listings — prices, availability, breadcrumbs, sitelinks search boxes. What schema never does is improve the underlying page: marking up a thin page does not make it substantial, and marking up facts the page does not contain is treated as deception. The durable strategy is boring: publish accurate pages, then label them accurately. This generator handles the labelling mechanics — commas, brackets, nesting — so your attention stays on the accuracy.
Choosing between types
When a page could fit two types, choose by the visitor's intent. A product page with a questions section is still a Product page first; add the FAQ block as a second script if the questions are genuinely answered on the page. A bakery's homepage is a LocalBusiness; its blog post about starters is an Article; its "about" page is a WebPage. Stacking two or three truthful blocks on one page is normal and safe. What is not safe is the opposite habit — one glamorous type (usually Product with invented ratings) pasted across a whole site. Generate per page, from that page's real content, and the markup will always match what validators and reviewers expect to find.
Keeping schema maintained
Schema is not a set-and-forget decoration; it is a copy of facts that also live on the page, and copies drift. The price in your Product markup must change when the price on the page changes. Opening hours edited for a holiday must be edited in both places. A FAQ answer rewritten for clarity must be rewritten in the JSON too — search engines compare the two, and mismatches are treated as carelessness at best. The practical defence is process: whenever you edit a page's visible facts, search the same file for the schema block before you save. Sites that generate pages from a template or CMS should generate the schema from the same data as the visible content, which removes the drift entirely. If you maintain pages by hand, this generator is the quick way to rebuild a block from the new facts rather than editing JSON commas at midnight.
Frequently asked questions
Where do I paste the generated schema code?
Inside the page it describes — either in the <head> section or just before the closing </body> tag; Google reads JSON-LD in both places. One page can hold several schema blocks, so you can add a WebPage block alongside a Product or FAQ block if both genuinely describe the page.
Does adding schema guarantee rich results in Google?
No. Schema makes your page eligible for rich results — stars, FAQ dropdowns, prices in the listing — but Google decides whether to show them, and has reduced some types over time (FAQ rich results, for example, are now largely limited to government and health sites). The markup still helps search engines understand the page, so it is worth adding honestly either way.
What is JSON-LD and why is it the recommended format?
JSON-LD is structured data written as a small JSON script block, separate from your visible HTML. Google recommends it over microdata and RDFa because it is easy to add, easy to remove, and cannot break your page layout if something goes wrong. It is the format this generator produces.
Can I mark up content that is not visible on the page?
No — that is against Google's guidelines and can earn a manual penalty. Schema must describe content a visitor can actually see: the FAQ questions and answers must be printed on the page, the product price must match the price shown, and the business address must be the real one. Generate the markup from the same text you publish.
How do I test my schema after adding it?
Two free checks: this generator validates that the JSON itself parses correctly before you copy it, and after publishing, run the page through Google's Rich Results Test to confirm Google can read the block and which rich results the page is eligible for. Fix anything either tool flags before worrying about rankings.
Which schema type should my page use?
Match the page's main job: a page answering questions gets FAQPage, a blog post or news story gets Article, a shop or service with a physical location gets LocalBusiness, a page selling one item gets Product, and anything else can use the general WebPage type. When two apply, the more specific one wins — and you may include both blocks.
Do I need review stars or ratings in Product schema?
Only if the reviews are real. AggregateRating is what produces stars in search results, and inventing a rating is both against the guidelines and easy to spot. This generator deliberately leaves ratings out — add them yourself only when they come from genuine reviews displayed on the page.
What format should opening hours use in LocalBusiness schema?
Two-letter day codes and 24-hour times, like Mo-Fr 09:00-17:00, or Sa 10:00-14:00 for Saturday. Separate multiple ranges with a comma. It is one of the most commonly mistyped fields, so copy the pattern exactly — a malformed value is simply ignored by search engines.
Is schema a ranking factor?
Not directly — pages do not rank higher merely for having schema. Its value is eligibility and clarity: rich results take more space and earn more clicks when shown, and explicit data helps search engines match the page to the right queries. Think of it as labelling, not promotion.