Generators
Schema Markup Generator
Fill in a simple form and get clean JSON-LD structured data for 8 common schema types, checked against Google's required and recommended properties as you type. Everything runs in your browser.
Drafts autosave in this browser.
Local Business details
* required · recommended by Google
Social and profile links (sameAs)
Facebook, Instagram, LinkedIn, Google Maps, directory profiles. Full URLs.
- Link 1
Only from real customer reviews you can show on the page.
JSON-LD output
66 characters{
"@context": "https://schema.org",
"@type": "LocalBusiness"
}Paste the script tag into the page's HTML (in the head or body), then run the test on the live URL or with the code snippet option.
Validation
3 errors, 7 warnings
- error: Business name is required.
- error: Street address is required.
- error: City is required.
- warning: Website URL is recommended.
- warning: Phone is recommended.
- warning: Image URL is recommended.
- warning: Price range is recommended.
- warning: Latitude is recommended.
- warning: Longitude is recommended.
- warning: Opening hours is recommended.
How it works
- 1
Pick a schema type
Choose LocalBusiness, Organization, Article, Product, FAQ, HowTo, Event or Breadcrumbs. Use "Load example" to see a filled-in sample.
- 2
Fill in the details
Required fields are marked with a red star and recommended ones with a gold diamond. The JSON-LD and the validation list update on every keystroke.
- 3
Copy, paste and test
Copy the ready-made script tag into your page, publish it, then run Google’s Rich Results Test on the live URL to confirm it is picked up.
What is schema markup?
Schema markup is structured data that describes what a page is about in a vocabulary search engines agree on, published at schema.org. Instead of guessing that “+92-42-35761234” is a phone number or that “4.6” is a rating, Google, Bing and AI assistants read it as a labelled fact: this business has this telephone, this address and these opening hours.
Markup does not directly raise rankings, but it makes a page eligible for rich results (stars, prices, event dates, breadcrumbs in the URL line) and helps search engines connect your website to your Google Business Profile and social profiles.
JSON-LD vs microdata
There are three ways to add schema: JSON-LD, microdata and RDFa. Microdata and RDFa are attributes woven into your visible HTML, so a theme change or a page builder can silently break them. JSON-LD is a single block of JSON inside a <script type="application/ld+json"> tag, separate from the layout.
Google recommends JSON-LD, it is easier to generate and review, and it can be added by a plugin, tag manager or developer without touching the design. That is why this tool outputs JSON-LD only.
Where to put the code
Paste the script tag into the HTML of the page it describes, either in the <head> or anywhere in the <body>. On WordPress, use a header/footer code plugin or your SEO plugin’s custom schema option; on Shopify or Wix, use the custom code or theme settings area.
Put each schema on the right page: LocalBusiness on your home or contact page, Product on each product page, Article on each post, FAQPage only where the questions are visible. The markup must match what visitors can see; marking up hidden or invented content breaks Google’s guidelines and can lead to a manual action.
Which types help local businesses most
For a shop, clinic, restaurant or service business, start with LocalBusiness (or a specific subtype like Restaurant, Dentist or AutoRepair) with your exact name, address and phone as shown on your Google Business Profile, map coordinates, opening hours and sameAs links to your social and directory profiles. Consistent NAP details across your site, Google and directories are a core local SEO signal.
Add Organization for your brand and logo, BreadcrumbList on deeper pages, Product if you sell online, and Event for workshops, sales or openings.
Rich result eligibility: what to expect
Valid markup makes a page eligible for rich results; it does not guarantee them. Google decides per query and per site. A few changes are worth knowing:
- Since August 2023, FAQ rich results are shown only for well-known, authoritative government and health websites.
- HowTo rich results were retired in 2023 on both mobile and desktop.
- Review stars are not shown for ratings a LocalBusiness or Organization publishes about itself (self-serving reviews).
The markup is still valid in all these cases and still helps search engines and AI tools understand your content, so it is worth keeping where it is accurate.
Frequently asked questions
Is this schema markup generator free?
Yes. It is free with no signup and no limits. The JSON-LD is built in your browser, and nothing you type is sent to a server. Drafts are saved only in your own browser’s local storage.
Will schema markup improve my Google rankings?
Not directly. Structured data is not a ranking factor on its own, but it can earn rich results that stand out and get more clicks, and it helps Google understand and trust details like your address, hours and products.
Which schema type should I use for my business?
Use LocalBusiness, or the most specific subtype available (Restaurant, Dentist, Store, ProfessionalService and so on), if customers visit you or you serve a local area. Use Organization for an online-only company or for your brand as a whole.
Can I use more than one schema type on a page?
Yes. You can add several script tags to one page, for example LocalBusiness plus BreadcrumbList, or Article plus FAQPage. Each must describe content that is actually on that page.
Why does the validator say a field is recommended but not required?
Google splits properties into required (the markup is invalid for rich results without them) and recommended (they improve eligibility and accuracy). Missing recommended fields are warnings: the code still works, but adding them makes it stronger.
How do I test my schema after adding it?
Use Google’s Rich Results Test to see which rich results the page is eligible for, and the Schema.org validator to check the markup against the full vocabulary. After publishing, the Enhancements reports in Google Search Console show errors across your whole site.
Is FAQ and HowTo schema still worth adding?
FAQ rich results are now limited to authoritative government and health sites, and HowTo rich results were retired in 2023. The markup is still valid and can help other search engines and AI answers read your content, but do not expect special display in Google.
Why should URLs be absolute?
Search engines read JSON-LD out of context, so relative paths like /logo.png can be misread. Use full URLs that start with https:// for your website, images, logo and profile links.
More free SEO tools
- Robots.txt GeneratorCreate a robots.txt with crawler and AI-bot rules.
- URL Slug GeneratorTurn any headline into a clean, SEO-friendly slug.
- Website Speed TestLighthouse scores and Core Web Vitals for any URL, mobile or desktop.
- Mobile-Friendly TestCheck viewport, tap targets, font sizes and mobile performance.