Schema Markup Generator
Fill in the form and copy ready-to-paste JSON-LD structured data for your page.
All required fields are filled in.
Paste it into the <head> or <body> of the page it describes. Then test it with Google's Rich Results Test or the Schema Markup Validator.
What is structured data?
Structured data is a block of code that tells search engines exactly what a page is about: a recipe with its ingredients and cooking time, a product with a price, an FAQ with its questions. The most common format is JSON-LD using the vocabulary from schema.org. It sits in a script tag and is not visible to visitors.
Correct structured data can make a page eligible for rich results in search, such as star ratings, cooking times or expandable questions. It does not guarantee a rich result, and it does not directly raise your ranking, but it helps search engines understand the page.
Rules to follow so the markup is accepted
- Describe what is on the page. The marked-up content must be visible to visitors. Do not add ratings, prices or questions that the page does not show.
- Only use real reviews. Include a rating only if it comes from genuine reviews displayed on the page.
- One primary type per page. A recipe page should describe that recipe, not other things.
- Keep it current. Update prices, availability and dates when they change.
- Use full URLs for images and links, starting with https://.
- Check the guidelines. Google's eligibility for some types, such as FAQ rich results, has changed over time, so check the current documentation.
Which type should I use?
- FAQ page: a page of questions and answers written by you.
- Recipe: cooking instructions with ingredients and times.
- Product: one product with a price and availability.
- Article: a news story, blog post or guide with an author and dates.
- Event: something happening at a set time and place.
- How-to: step-by-step instructions to do something.
Related: format and check the output with the JSON formatter.
Frequently asked questions
Is my data uploaded?
No. The code is generated in your browser and nothing is sent anywhere.
Where do I paste the code?
Anywhere in the page's HTML, most often inside the <head>. If your site uses a CMS, look for a custom code or header scripts area.
Why is a field marked required?
Those are the fields that search engines need to understand the item. Recommended extras, such as images, make your page eligible for richer results.
Does it work for other types?
This tool covers six common types. Schema.org has many more, and the output here can be used as a starting point.