A schema markup generator writes structured data for your web pages without hand-coding it. Choose a type, such as Article, FAQ page, Organization, Local business or Product, fill in the fields, and this schema markup generator builds a ready-to-paste JSON-LD script using schema.org vocabulary. Copy it into your page, and search engines get clear, machine-readable facts about your content.
How to use the schema markup generator
- Choose the schema type that matches the page.
- Fill in the fields. Required ones are marked by the hint under the form; optional ones can be left blank and are left out of the code.
- Copy the JSON-LD when it appears.
- Paste it into the page's HTML, in the head or the body.
- Test the page with Google's Rich Results Test.
What structured data does
Google's Search Central documentation describes structured data as a standardized format for providing information about a page and classifying its content, such as the ingredients, cooking time and calories on a recipe page. It gives Google explicit clues about the meaning of a page, and it can make a page eligible for rich results, which are more engaging search results. Google points to case studies such as Rotten Tomatoes, which measured a 25% higher click-through rate for pages with structured data compared with pages without it.
Why JSON-LD
Google Search supports three formats: JSON-LD, Microdata and RDFa. All three are equally fine for Google when the markup is valid, but Google recommends JSON-LD where your site allows it, because it's the easiest to implement and maintain. JSON-LD sits in a script tag, separate from the visible text, which makes nested items, such as the address of a business, easy to express, and Google can read it even when it's added to the page by JavaScript. This generator always outputs JSON-LD.
The types you can create
| Type | Use it for | Key fields |
|---|---|---|
| Article | News stories, blog posts, guides | Headline, author, dates, image |
| FAQ page | A page of questions and answers | Each question and its answer |
| Organization | A company or group's home or about page | Name, website, logo, social profiles |
| Local business | A shop, office or restaurant with an address | Name, address, phone, opening hours |
| Product | A product page | Name, image, brand, price, availability, rating |
Example
For a blog post, choose Article and enter the headline How to Repot a Houseplant, the author Jane Smith and the date published. The generator writes a script tag containing "@context": "https://schema.org", "@type": "Article", the headline, the date and an author object of type Person. Leave the publisher blank and it simply isn't included. For a page of questions, choose FAQ page and type one question per line, a vertical bar, then its answer.
Rules to follow
- Mark up what visitors can see. Structured data should describe content that's actually on the page.
- One topic per page. Use the type that matches the main content.
- Keep it accurate. Update prices, availability and hours when they change.
- Use full addresses for images, logos and profiles, starting with https://.
- Valid markup isn't a guarantee. Search engines decide whether to show a rich result.
Testing your markup
After you add the code, test the live page or paste the code into Google's Rich Results Test to see whether it's valid and which rich results it may qualify for. The Schema Markup Validator on schema.org checks the vocabulary in general. Fix any warnings about missing recommended fields where you have the information.
Your privacy
The markup is built in your browser from the details you type. Nothing is uploaded.
Tips for each type
- Article: use the exact headline shown on the page, the real publication date, and update the modified date when you make significant changes.
- FAQ page: include questions and answers exactly as they appear on the page, written by you rather than by visitors.
- Organization: add your logo and the profiles you actually control, such as your official social media pages.
- Local business: use the address and phone number customers see on your site, and list opening hours for each day you're open.
- Product: keep the price and availability in step with the page, and only include ratings that come from real customer reviews shown there.
Adding the code to common platforms
On a hand-coded site, paste the script tag into the page template. Most content management systems let you add code to a page's head through a setting or a plugin, and many themes and plugins can add structured data automatically. If your platform already adds schema markup, check it first, so you don't publish two conflicting blocks for the same page.
Updating markup later
Come back to the generator whenever page details change, regenerate the code and replace the old script.
Common mistakes
- Marking up hidden content that visitors can't see.
- Relative image links instead of full https addresses.
- Out-of-date prices or hours.
- Several unrelated types crammed onto one page.
What next
Use this often? Add Schema Marku to your Home screen.
Frequently asked questions
What does the schema markup generator create?
A JSON-LD script with schema.org structured data for an Article, FAQ page, Organization, Local business or Product, ready to paste into your page.
Why does the schema markup generator use JSON-LD?
Google recommends JSON-LD because it's the easiest format to implement and maintain, and it keeps the markup separate from the visible text.
Where do I put the schema markup?
Paste the script tag into the page's HTML, in the head or the body.
Does schema markup guarantee rich results?
No. It makes a page eligible, but search engines decide whether to show rich results.
Is my information uploaded?
No. The markup is built in your browser and nothing is sent anywhere.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.