Schema Markup Generator
Generate JSON-LD structured data for organisations, local businesses, people, websites, articles, products, events and recipes.
This guide is not yet available in your language and is shown in English.
Tool guide
What this tool does
Schema Markup Generator builds schema.org JSON-LD from a form that changes with the type you choose. It validates URLs, dates, prices, currency codes, GTINs, coordinates and opening hours, removes empty properties and adds notes on what Google needs for each rich result.
Structured data describes a page in a vocabulary machines understand: this is a bakery open from 7 am, this is a product costing £49 that is in stock, this is an event on 5 December. Search engines use it to show rich results such as star ratings, prices and event dates, and to connect a business to its knowledge panel. Writing JSON-LD by hand is fiddly, and one missing comma or a wrongly nested object makes the whole block unreadable.
This generator covers the eight schema.org types most sites need and outputs a JSON-LD script ready to paste into the page. It converts plain inputs into the formats the vocabulary expects: “Mo-Fr 09:00-17:30” becomes an OpeningHoursSpecification, minutes become ISO 8601 durations such as PT45M, and availability becomes a full schema.org URL. Empty fields are dropped so the output stays clean, and nothing is sent to a server.
How to use Schema Markup Generator
- Choose the Schema type; the form shows only the fields that type uses.
- Fill in the name or headline, URL, image and description.
- Complete the type-specific fields, such as address and opening hours for a local business or price and availability for a product.
- Add ratings only if real reviews are visible on the page.
- Copy or download the JSON-LD script and paste it into the page’s head or body.
- Test the live page with Google’s Rich Results Test and the Schema Markup Validator.
Tips for better results
- Use the most specific business type available, such as Dentist or Bakery, rather than the generic LocalBusiness.
- Write phone numbers in international format (+44 …) and country as a two-letter ISO code.
- Keep structured data in sync with visible content; prices or dates that differ from the page can lead to manual actions.
- One page can contain several JSON-LD blocks, for example Organization on every page plus Product on product pages.
Common use cases
- Adding LocalBusiness markup with hours and coordinates to a shop or clinic website.
- Marking up product pages on a custom-built store.
- Describing events, including online and hybrid ones, with status changes when plans move.
- Giving a recipe blog ingredient lists, times and nutrition in a machine-readable form.
Common mistakes to avoid
- Marking up reviews written by the business itself; self-serving review markup is not eligible for star ratings on LocalBusiness and Organization.
- Using relative image or page URLs instead of absolute https:// addresses.
- Writing prices with currency symbols or thousands separators (“£1,299”); use 1299.00 and a separate currency code.
- Deleting event markup when an event is cancelled instead of setting eventStatus to EventCancelled.
Frequently asked questions
Is JSON-LD better than microdata?
Google supports JSON-LD, microdata and RDFa equally but recommends JSON-LD because it sits in one script block, separate from the visible HTML, which makes it easier to add and maintain.
Will structured data guarantee rich results?
No. Valid markup makes a page eligible, but Google decides whether to show a rich result based on quality, relevance and the search. Some types are also limited to certain sites.
Why is there no sitelinks search box option?
Google retired the sitelinks search box in November 2024, so the WebSite type here only outputs name, alternate name and URL, which still help Google choose your site name.
How are opening hours written?
Write one rule per line with two-letter day codes and 24-hour times, for example “Mo-Fr 09:00-17:30” or “Sa,Su 10:00-16:00”. Each line becomes an OpeningHoursSpecification object.
Feedback & suggestions
Help us improve Schema Markup Generator. We read every message.