Schema markup generator
Structured data helps Google understand a page and can make it eligible for rich results. Fill in a short form and copy valid JSON-LD instead of writing it by hand.
Your data stays in your browser. Nothing is uploaded or stored.
How to use it: Schema markup generator
- Choose the schema type.
- Fill in the fields; those with * are needed for a valid result.
- Click Generate JSON-LD and read the warnings.
- Copy the code into the head or body of the page.
- Test the published page in the Rich Results Test.
Key facts
- Google recommends JSON-LD for structured data.
- Structured data must describe content that is visible on the page.
- Valid markup makes a page eligible for rich results but doesn't guarantee them.
- Since 2023 Google shows FAQ rich results only for well-known government and health websites.
Where to get the data
Lists
Breadcrumbs: one level per line as Name | URL. FAQ: one question per line as Question | Answer. sameAs and opening hours: one value per line.
Dates and numbers
Dates are written as YYYY-MM-DD, prices with a dot, currency as a three-letter code such as USD or EUR.
Images and links
Use full addresses starting with https://. Images should be crawlable and represent the content.
Which type to choose
Article for news and blog posts, BreadcrumbList for the path above the title, Organization for the home or about page, LocalBusiness for a place customers visit, Product for a page that sells one product.
Match the visible page
Every value in the markup should also appear on the page: the headline, the price, the address, the questions and answers. Markup that describes hidden content can lead to a manual action.
Test after publishing
The generator checks the shape of the data. Google's Rich Results Test and the Search Console enhancement reports show what Google actually reads on the live page.
Next step
Once the markup is live, check the pages' index status to see whether Google has indexed the updated pages.
Questions and answers
Where do I put the code?
Anywhere in the HTML, usually in the head. One page can have several JSON-LD blocks.
Will I get stars in search results?
Review stars need genuine reviews on the page and are limited to certain types. Self-serving reviews of your own business don't qualify for LocalBusiness and Organization.
Can I add more properties?
Yes. Edit the JSON after copying; schema.org lists every property for each type.
Is my data sent anywhere?
No. The markup is built in your browser.
Sources
- Introduction to structured data — Google Search Central: https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data
- Search gallery of structured data — Google Search Central: https://developers.google.com/search/docs/appearance/structured-data/search-gallery
- Rich Results Test — Google: https://search.google.com/test/rich-results
- Schema.org: https://schema.org/