What is schema markup
Schema markup and JSON-LD explained
Schema markup is structured data, written in the shared Schema.org vocabulary, that tells search engines exactly what a page contains: this is a product with this price, this is a recipe that takes 40 minutes, this business opens at 9am. Search engines use it to understand pages and to show rich results such as star ratings, prices, breadcrumbs, event dates and recipe cards.
JSON-LD is the format Google recommends for structured data. It sits in a single <script type="application/ld+json"> block, separate from your visible HTML, so it is easy to add, update and generate without touching your design. This JSON-LD schema generator writes that block for you and checks it against Google's required and recommended properties as you go.
Structured data must describe content that is actually visible on the page. Marking up information users cannot see, or inventing ratings, breaks Google's guidelines and can lead to a manual action.
Schema types
Which schema type should you use?
| Type | Use it on | Possible rich result |
| Article / BlogPosting | News, blog posts, guides | Top stories, article info |
| Product | Single product pages | Price, availability, review stars |
| LocalBusiness | Your contact or location page | Business details, hours, map |
| Organization | Home or About page | Logo and knowledge panel details |
| BreadcrumbList | Any page with a breadcrumb trail | Breadcrumb path instead of URL |
| Event | Concerts, webinars, classes | Event dates and location |
| Recipe | Recipe pages | Recipe card with time and calories |
| VideoObject | Pages built around a video | Video thumbnail and duration |
| FAQPage | Real FAQ sections | Limited by Google (see below) |
| WebSite, Person, Service, SoftwareApplication | Home page, author pages, service and app pages | Site name, entity understanding, app rating |
Advertisement
FAQ and local business schema
FAQ schema, local business and product schema tips
FAQ schema generator
Enter one question and answer per line, separated by |. Since 2023 Google shows FAQ rich results only for a small set of authoritative government and health sites, so most sites will not see the expandable FAQ in search. The markup is still valid, helps other search engines and AI assistants understand your answers, and costs nothing to add when you have a genuine FAQ.
Local business schema
Choose the most specific business type available (Restaurant, Dentist, AutoRepair and so on). Enter opening hours like Mo-Fr 09:00-17:00, one rule per line, and they are converted into proper OpeningHoursSpecification objects. Add latitude and longitude for better map matching, and keep the name, address and phone identical to your Google Business Profile.
Product schema
Price must be a plain number and currency a three-letter code such as USD or LKR. Only add a rating and review count when they come from real customer reviews displayed on the same page.
Adding schema
How to add JSON-LD to your site
- Any HTML site: paste the script block inside
<head> or anywhere in <body>.
- WordPress: use a header and footer code plugin, your theme's custom code area, or an SEO plugin's schema field for single pages.
- Tag managers: Google can read JSON-LD injected by Google Tag Manager, though adding it in the HTML is more reliable.
- Several types on one page: tick them under Combine with other types to output a single
@graph, which keeps everything in one block.
After publishing, test the URL with Google's Rich Results Test and the Schema.org validator, then watch the Enhancements reports in Search Console. Keep the markup up to date when prices, hours or dates change. To check the rest of the page, use the HTML validator, and format or debug the JSON with the JSON formatter.
Mistakes
Common structured data mistakes
The most frequent problems are marking up content that is not visible on the page, reusing the same review stars on every product, leaving placeholder values in required fields, and outdated prices or event dates. Validate after every template change, and remove markup for content you no longer show.
FAQ
Schema Markup Generator: frequently asked questions
What is a schema markup generator?
A tool that turns a simple form into structured data code in Schema.org vocabulary, usually JSON-LD, which you paste into a web page so search engines understand its content.
Is JSON-LD better than microdata?
Google recommends JSON-LD because it is kept separate from the visible HTML, which makes it easier to add and maintain. Both formats are supported.
Where do I put the JSON-LD code?
Paste the script block into the head or body of the page it describes. It does not need to be next to the visible content.
Will schema markup improve my rankings?
Structured data is not a direct ranking factor, but it can make pages eligible for rich results, which often improves click-through rate.
Does Google still show FAQ rich results?
Only for a limited set of well-known government and health websites since 2023. FAQ markup is still valid and understood, but most sites will not get the FAQ rich result.
Can I add more than one schema type to a page?
Yes. Tick the extra types under Combine with other types, fill in their tabs, and the generator outputs them together in one @graph.
How do I test my schema markup?
Use Google's Rich Results Test for rich result eligibility and the Schema.org validator for general correctness.
Is this schema generator free?
Yes. It is free with no sign-up, and nothing you enter is stored.